blob: db3d7f86028bfe4829045b32e178b19f72c310fb [file] [log] [blame]
Russ Cox2b1c9b42012-02-16 23:49:30 -05001// compile
Robert Griesemer08b59932008-07-14 16:26:41 -07002
3// Copyright 2009 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
Brad Fitzpatrick040fe322012-02-03 11:43:24 -08007package bug066
Robert Griesemer08b59932008-07-14 16:26:41 -07008
Russ Cox839a6842009-01-20 14:40:40 -08009type Scope struct {
Russ Cox08ca30b2008-12-19 03:05:37 -080010 entries map[string] *Object;
Robert Griesemer08b59932008-07-14 16:26:41 -070011}
12
13
Russ Cox839a6842009-01-20 14:40:40 -080014type Type struct {
Robert Griesemer08b59932008-07-14 16:26:41 -070015 scope *Scope;
16}
17
18
Russ Cox839a6842009-01-20 14:40:40 -080019type Object struct {
Robert Griesemer08b59932008-07-14 16:26:41 -070020 typ *Type;
21}
22
23
Russ Cox839a6842009-01-20 14:40:40 -080024func Lookup(scope *Scope) *Object {
Robert Griesemer08b59932008-07-14 16:26:41 -070025 return scope.entries["foo"];
26}