summaryrefslogtreecommitdiff
path: root/src/pkg/reflect
AgeCommit message (Collapse)AuthorFilesLines
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
2009-06-24style police: parens in if, for, switch, rangeRuss Cox2-3/+3
R=r DELTA=32 (0 added, 3 deleted, 29 changed) OCL=30718 CL=30725
2009-06-15Fix a proto encoding crasher whereby a nil in a repeated group field would ↵David Symonds3-4/+20
crash the server. Also fix the reflect bug that was exposed by this bug. R=r APPROVED=rsc DELTA=162 (103 added, 32 deleted, 27 changed) OCL=30125 CL=30319
2009-06-09mv src/lib to src/pkgRob Pike7-0/+3088
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102