summaryrefslogtreecommitdiff
path: root/src/pkg/go/ast
AgeCommit message (Collapse)AuthorFilesLines
2009-07-07- ast.FilterExports: filter non-exported anonymous fieldsRobert Griesemer1-2/+23
- fixed typo in parser.go - removed test w/ syntax errors from gofmt test script R=rsc DELTA=25 (21 added, 0 deleted, 4 changed) OCL=31296 CL=31298
2009-07-06- bug fix: do not strip lower-case parameter and result names in signaturesRobert Griesemer1-5/+41
- display: show '...' if a struct/interface has fields/methods removed; show struct/interface w/o {}'s if all fields/methods were removed; and show the {}'s if the struct/interface was empty to begin with R=rsc DELTA=41 (36 added, 0 deleted, 5 changed) OCL=31201 CL=31204
2009-07-06- ast.FilterExports: strips all non-exported nodes from an ASTRobert Griesemer2-3/+146
- use FilterExports instead of the various predicates in printer.go and doc.go which simplifies a lot of code and makes it easier to deal with complex cases R=rsc DELTA=445 (197 added, 190 deleted, 58 changed) OCL=31110 CL=31196
2009-06-15gofmt (final resting place TBD):Robert Griesemer2-132/+1
- replacement for pretty; app to format a single .go file printer.go (pkg/go/printer): - replacement for astprinter.go; implements AST printing - also replaces pkg/go/ast/format.go for now cleanups: - removed/saved away old code R=r,rsc,iant DELTA=2833 (1183 added, 1628 deleted, 22 changed) OCL=30226 CL=30306
2009-06-15Support for line comments trailing a field or declaration:Robert Griesemer1-3/+7
- ast: added extra fields - parser: extended comment parsing to capture potential trailing comments Cleanups: - parser: more documentation, changed various identifiers from _-style to camelCase R=r,rsc DELTA=214 (84 added, 13 deleted, 117 changed) OCL=30259 CL=30299
2009-06-09mv src/lib to src/pkgRob Pike3-0/+963
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102