diff options
author | Hironao OTSUBO <motemen@gmail.com> | 2017-01-12 23:21:53 +0900 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2017-01-19 04:55:19 +0000 |
commit | 6593d8650da5d19787bea9383dabe94f36fa04be (patch) | |
tree | 223279b97d7d564eb776a976eedcb2f199afd2d2 | |
parent | c1730ae424449f38ea4523207a56c23b2536a5de (diff) | |
download | go-6593d8650da5d19787bea9383dabe94f36fa04be.tar.gz go-6593d8650da5d19787bea9383dabe94f36fa04be.zip |
go/ast: fix Object's doc comment about Data
The doc comment about the Data field of go/ast.Object reflects its old
behavior, from when the go/types typechecker depended on ast.Objects.
Since when the doc was written, the behavior has changed in
https://golang.org/cl/7058060 and https://golang.org/cl/7096048 .
Fixes #18631
Change-Id: I10fc3e31cfbf7b303eec44150df917f6eb285f90
Reviewed-on: https://go-review.googlesource.com/35075
Reviewed-by: Robert Griesemer <gri@golang.org>
-rw-r--r-- | src/go/ast/scope.go | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/go/ast/scope.go b/src/go/ast/scope.go index 1ce5e2e84b..a400c7152a 100644 --- a/src/go/ast/scope.go +++ b/src/go/ast/scope.go @@ -70,10 +70,8 @@ func (s *Scope) String() string { // The Data fields contains object-specific data: // // Kind Data type Data value -// Pkg *types.Package package scope +// Pkg *Scope package scope // Con int iota for the respective declaration -// Con != nil constant value -// Typ *Scope (used as method scope during type checking - transient) // type Object struct { Kind ObjKind |