gri | 15 Jun 2012 23:09
Favicon

code review 6303086: go/ast: minor comment maps API change (issue 6303086)

Reviewers: rsc,

Message:
Hello rsc@... (cc: golang-dev@...),

I'd like you to review this change to
https://code.google.com/p/go

Description:
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 String method for debugging

Please review this at http://codereview.appspot.com/6303086/

Affected files:
   M src/cmd/godoc/godoc.go
   M src/cmd/godoc/main.go
   M src/pkg/go/ast/commentmap.go
   M src/pkg/go/ast/commentmap_test.go

Index: src/cmd/godoc/godoc.go
===================================================================
--- a/src/cmd/godoc/godoc.go
(Continue reading)


Gmane