]> Cypherpunks repositories - gostls13.git/commit
go/ast: minor comment maps API change
authorRobert Griesemer <gri@golang.org>
Mon, 25 Jun 2012 18:27:54 +0000 (11:27 -0700)
committerRobert Griesemer <gri@golang.org>
Mon, 25 Jun 2012 18:27:54 +0000 (11:27 -0700)
commit277e7e57cadc08a2e82885b423308627e9e5c786
tree297297cac136ab517924fba1f4d79e904d462ac1
parentb3382ec9e9cfbb20efd7bf7d6a369071a46c8dfe
go/ast: minor comment maps API change

This is a new, not yet committed API.

- Changed NewCommentMap to be independent of
  *File nodes and more symmetric with the
  Filter and Comments methods.

- Implemented Update method for use in
  AST modifications.

- Implemented String method for debugging

R=rsc
CC=golang-dev
https://golang.org/cl/6303086
src/cmd/godoc/godoc.go
src/cmd/godoc/main.go
src/pkg/go/ast/commentmap.go
src/pkg/go/ast/commentmap_test.go