summaryrefslogtreecommitdiff
path: root/src/pkg/reflect
AgeCommit message (Collapse)AuthorFilesLines
2009-11-08delete a pointless todo in all_test.go.Rob Pike1-1/+1
address one in rpc/client.go R=rsc CC=go-dev http://go/go-review/1026030
2009-11-08delete TODO now that compiler is better at %Rob Pike1-1/+1
adjust an inconsistency in reflect/type.go's package comment R=rsc http://go/go-review/1026029
2009-11-08add top-level package comments for net, reflect, malloc.Rob Pike1-0/+11
reflect is a little more detailed than some because it affords an opportunity to explain how to approach the library. R=gri, rsc CC=go-dev http://go/go-review/1026026
2009-11-06- application of gofmt with one-line composite literal structs enabledRobert Griesemer2-132/+30
- this CL is dependent on CL 1025008 R=r, rsc http://go/go-review/1025009
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer3-267/+89
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05missing piece gofmt'ed in reflectRobert Griesemer1-36/+108
R=r, rsc http://go/go-review/1025001
2009-11-05gofmt-ify reflectRobert Griesemer4-241/+417
- the single line structs can be fixed in another round R=rsc http://go/go-review/1016052
2009-11-01misc cleanupRuss Cox1-1/+1
R=r http://go/go-review/1016017
2009-10-21Add SetValue(Value) to the Value interface.Adam Langley2-2/+172
R=rsc APPROVED=rsc DELTA=172 (170 added, 0 deleted, 2 changed) OCL=35969 CL=35980
2009-10-07apply gofmt to rand reflect regexp rpc runtime sort strconv strings sync ↵Russ Cox3-96/+94
syscall testing time unicode unsafe utf8 R=gri DELTA=1409 (79 added, 24 deleted, 1306 changed) OCL=35415 CL=35437
2009-09-29undo 35108 (disallow parens around type in struct literal).Russ Cox1-5/+5
allow parens around [...]int in struct literal. R=ken OCL=35112 CL=35130
2009-09-29disallow parens around type in struct literal syntax,Russ Cox1-5/+5
per discussion with gri. R=ken OCL=35108 CL=35108
2009-09-17unused importsRuss Cox1-1/+0
R=r OCL=34731 CL=34731
2009-09-15more "declared and not used".Russ Cox3-10/+10
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-09-14fix "declared and not used" errors in non-test code.Russ Cox2-3/+0
R=r DELTA=112 (6 added, 57 deleted, 49 changed) OCL=34610 CL=34610
2009-09-03nil in DeepEqualRuss Cox2-8/+7
R=r DELTA=13 (5 added, 6 deleted, 2 changed) OCL=34337 CL=34343
2009-08-26Restore comment line accidentally dropped in CL 33097.Ian Lance Taylor1-0/+1
R=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=33891 CL=33891
2009-08-26finish ChanValue: Len and Cap.Russ Cox2-0/+23
R=r DELTA=45 (45 added, 0 deleted, 0 changed) OCL=33873 CL=33881
2009-08-26add Close() and Closed() to ChanValueRuss Cox2-0/+33
R=r DELTA=60 (56 added, 3 deleted, 1 changed) OCL=33868 CL=33872
2009-08-24change reflect test to avoid bug132Russ Cox1-3/+20
R=gri DELTA=20 (17 added, 0 deleted, 3 changed) OCL=33793 CL=33802
2009-08-24- fix for multiple fields at same depth errorRobert Griesemer1-4/+9
R=rsc DELTA=9 (5 added, 0 deleted, 4 changed) OCL=33768 CL=33785
2009-08-12delete forward type declarationsRuss Cox1-2/+0
R=r DELTA=163 (1 added, 149 deleted, 13 changed) OCL=33106 CL=33111
2009-08-12convert low-level (used by testing) packages toRuss Cox6-125/+39
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
2009-08-10remove unnecessary pkg. referencesRuss Cox1-1/+1
R=r DELTA=95 (0 added, 0 deleted, 95 changed) OCL=33012 CL=33012
2009-08-05- FieldByName lookup through anonymous fieldsRobert Griesemer3-11/+267
- FieldByIndex - changed StructField.Index type from int -> []int - adjustments to reflect clients R=rsc,r DELTA=336 (263 added, 47 deleted, 26 changed) OCL=32731 CL=32802
2009-08-03don't crash printing a nil mapRob Pike1-1/+5
R=rsc DELTA=19 (18 added, 0 deleted, 1 changed) OCL=32656 CL=32670
2009-07-28bug177: anonymous struct fields in reflectRuss Cox1-16/+12
(reported by iant) R=r DELTA=50 (32 added, 12 deleted, 6 changed) OCL=32263 CL=32385
2009-07-27fix build - broke with uint32 -> int change in reflect SliceHeaderRuss Cox1-5/+5
TBR=r OCL=32225 CL=32225
2009-07-27fix SliceHeader: len and cap are int, not uint32Russ Cox1-2/+2
R=r,iant DELTA=2 (0 added, 0 deleted, 2 changed) OCL=32215 CL=32222
2009-07-21Don't cast nil to a fixed array type.Ian Lance Taylor1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=31916 CL=31937
2009-07-20Make struct field names unique.Ian Lance Taylor1-5/+5
R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=31900 CL=31900
2009-07-17change reflect.Type.Name() into two functions: Name() and PkgPath() for ease ↵Rob Pike1-15/+22
of use. R=rsc DELTA=31 (8 added, 2 deleted, 21 changed) OCL=31778 CL=31792
2009-07-16add FieldByName to the interface of reflect.StructTypeRob Pike2-1/+34
R=rsc DELTA=34 (33 added, 0 deleted, 1 changed) OCL=31752 CL=31754
2009-07-16fix some bad testing printsRob Pike1-1/+1
R=rsc DELTA=5 (0 added, 0 deleted, 5 changed) OCL=31740 CL=31742
2009-07-10reflection for interface setRuss Cox3-14/+44
rename map access methods to Elem, SetElem. R=r DELTA=95 (66 added, 7 deleted, 22 changed) OCL=31456 CL=31469
2009-07-10DeepEqual for mapsRob Pike2-17/+31
R=rsc DELTA=47 (30 added, 16 deleted, 1 changed) OCL=31455 CL=31455
2009-07-09reflection for methodsRuss Cox3-22/+138
R=r DELTA=156 (135 added, 8 deleted, 13 changed) OCL=31407 CL=31428
2009-07-08reflection for functionsRuss Cox3-11/+110
add channel send type check (thanks austin). fix type mismatch message. R=r DELTA=241 (225 added, 5 deleted, 11 changed) OCL=31370 CL=31375
2009-07-08reflection for channelsRuss Cox2-6/+129
R=r DELTA=188 (171 added, 6 deleted, 11 changed) OCL=31352 CL=31361
2009-07-08reflection for mapsRuss Cox3-7/+127
R=r DELTA=304 (248 added, 34 deleted, 22 changed) OCL=31345 CL=31347
2009-07-07typestring.c is no longer needed.Ian Lance Taylor2-39/+1
R=rsc DELTA=35 (0 added, 34 deleted, 1 changed) OCL=31301 CL=31303
2009-07-07update reflect supporting functions,Russ Cox3-512/+374
tests to use new reflect interface. also make tests a real gotest. depends on CL 31107 R=r DELTA=582 (56 added, 194 deleted, 332 changed) OCL=31108 CL=31279
2009-07-07install new reflect:Russ Cox4-3139/+1079
rename ntype.go and nvalue.go to type.go and value.go R=r DELTA=4295 (761 added, 2819 deleted, 715 changed) OCL=31238 CL=31276
2009-07-06new reflect Value implementations.Russ Cox1-0/+419
for now, canSet stays. i will look into getting rid of it in a future CL. R=r DELTA=420 (419 added, 0 deleted, 1 changed) OCL=31231 CL=31235
2009-07-06new reflect type.go implementationRuss Cox1-7/+173
R=r DELTA=179 (172 added, 6 deleted, 1 changed) OCL=31215 CL=31220
2009-07-06new reflect library data structures and code declarationsRuss Cox2-0/+926
* use structs instead of interfaces * compiler lays out data structures ahead of time, so no more parsing of strings. * unified reflect data structures with interface runtime data structures. * richer data structures should enable reflection on chans and maps, but not implemented here. R=r,iant DELTA=1179 (1179 added, 0 deleted, 0 changed) OCL=31107 CL=31213
2009-07-02make a description of the slice header publicRob Pike1-15/+18
R=rsc DELTA=18 (3 added, 0 deleted, 15 changed) OCL=31086 CL=31094
2009-07-01add test, fix bug: structs that differ in theirRuss Cox3-10/+37
first field were not being handled correctly because the visited map did not include the type. R=r OCL=31006 CL=31006
2009-06-25fix buildRuss Cox1-2/+2
TBR=r OCL=30757 CL=30757
2009-06-25add reflect.Typeof; test for and fix nil interface bug in DeepEqualRuss Cox3-10/+38
R=r DELTA=40 (30 added, 2 deleted, 8 changed) OCL=30742 CL=30753