diff options
Diffstat (limited to 'usr/austin/eval/decls.go')
-rw-r--r-- | usr/austin/eval/decls.go | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/usr/austin/eval/decls.go b/usr/austin/eval/decls.go index c34baed87..44a7e0402 100644 --- a/usr/austin/eval/decls.go +++ b/usr/austin/eval/decls.go @@ -13,8 +13,6 @@ import ( * Types */ -type Value interface - type Type interface { // compat returns whether this type is compatible with another // type. If conv is false, this is normal compatibility, @@ -128,7 +126,6 @@ type PtrValue interface { Set(Value); } -type Func interface type FuncValue interface { Value; Get() Func; @@ -158,8 +155,6 @@ type Constant struct { Value Value; } -type Scope struct - // A block represents a definition block in which a name may not be // defined more than once. type block struct { @@ -192,15 +187,6 @@ type Scope struct { maxVars int; } -func (b *block) enterChild() *block -func (b *block) exit() -func (b *block) ChildScope() *Scope -func (b *block) DefineVar(name string, pos token.Position, t Type) (*Variable, Def) -func (b *block) DefineSlot(t Type) *Variable -func (b *block) DefineConst(name string, pos token.Position, t Type, v Value) *Constant -func (b *block) DefineType(name string, pos token.Position, t Type) Type -func (b *block) Lookup(name string) (level int, def Def) - // The universal scope func newUniverse() *Scope { sc := &Scope{nil, 0}; @@ -221,11 +207,6 @@ type Frame struct { Vars []Value; } -func (f *Frame) Get(level int, index int) Value -func (f *Frame) child(numVars int) *Frame - -func (s *Scope) NewFrame(outer *Frame) *Frame - /* * Functions */ |