]> Cypherpunks repositories - gostls13.git/commitdiff
go/ast: document use of Data field for method objects
authorRobert Griesemer <gri@golang.org>
Thu, 1 Nov 2012 23:27:43 +0000 (16:27 -0700)
committerRobert Griesemer <gri@golang.org>
Thu, 1 Nov 2012 23:27:43 +0000 (16:27 -0700)
R=iant
CC=golang-dev
https://golang.org/cl/6775093

src/pkg/go/ast/scope.go

index 11e6b13f169b807095b0ee40abe76a7b296c66d5..6edb31016e03d47f406369a15c2beff243ce99d3 100644 (file)
@@ -76,6 +76,7 @@ func (s *Scope) String() string {
 //     Pkg     *Scope       package scope
 //     Con     int          iota for the respective declaration
 //     Con     != nil       constant value
+//     Typ     *Scope       method scope; nil if no methods
 //
 type Object struct {
        Kind ObjKind