diff options
Diffstat (limited to 'src/go/ast/scope.go')
-rw-r--r-- | src/go/ast/scope.go | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/go/ast/scope.go b/src/go/ast/scope.go index d24a5f0e00..02691f8e54 100644 --- a/src/go/ast/scope.go +++ b/src/go/ast/scope.go @@ -15,7 +15,6 @@ import ( // A Scope maintains the set of named language entities declared // in the scope and a link to the immediately surrounding (outer) // scope. -// type Scope struct { Outer *Scope Objects map[string]*Object @@ -30,7 +29,6 @@ func NewScope(outer *Scope) *Scope { // Lookup returns the object with the given name if it is // found in scope s, otherwise it returns nil. Outer scopes // are ignored. -// func (s *Scope) Lookup(name string) *Object { return s.Objects[name] } @@ -39,7 +37,6 @@ func (s *Scope) Lookup(name string) *Object { // If the scope already contains an object alt with the same name, // Insert leaves the scope unchanged and returns alt. Otherwise // it inserts obj and returns nil. -// func (s *Scope) Insert(obj *Object) (alt *Object) { if alt = s.Objects[obj.Name]; alt == nil { s.Objects[obj.Name] = obj @@ -72,7 +69,6 @@ func (s *Scope) String() string { // Kind Data type Data value // Pkg *Scope package scope // Con int iota for the respective declaration -// type Object struct { Kind ObjKind Name string // declared name |