Documentation ¶
Index ¶
- type CaptureSymbol
- func (b *CaptureSymbol) Lift()
- func (b *CaptureSymbol) Liftable() bool
- func (b *CaptureSymbol) Lifted() bool
- func (b *CaptureSymbol) Name() string
- func (b *CaptureSymbol) Pos() token.Pos
- func (b *CaptureSymbol) ReadOnly() bool
- func (b *CaptureSymbol) SetName(name string)
- func (b *CaptureSymbol) SetPos(pos token.Pos)
- func (b *CaptureSymbol) SetReadOnly(ro bool)
- type ConstSymbol
- func (b *ConstSymbol) Lift()
- func (b *ConstSymbol) Liftable() bool
- func (b *ConstSymbol) Lifted() bool
- func (b *ConstSymbol) Name() string
- func (b *ConstSymbol) Pos() token.Pos
- func (b *ConstSymbol) ReadOnly() bool
- func (b *ConstSymbol) SetName(name string)
- func (b *ConstSymbol) SetPos(pos token.Pos)
- func (b *ConstSymbol) SetReadOnly(ro bool)
- type FuncSymbol
- func (b *FuncSymbol) Lift()
- func (b *FuncSymbol) Liftable() bool
- func (b *FuncSymbol) Lifted() bool
- func (b *FuncSymbol) Name() string
- func (b *FuncSymbol) Pos() token.Pos
- func (b *FuncSymbol) ReadOnly() bool
- func (b *FuncSymbol) SetName(name string)
- func (b *FuncSymbol) SetPos(pos token.Pos)
- func (b *FuncSymbol) SetReadOnly(ro bool)
- type GlobalVarSymbol
- func (b *GlobalVarSymbol) Lift()
- func (b *GlobalVarSymbol) Liftable() bool
- func (b *GlobalVarSymbol) Lifted() bool
- func (b *GlobalVarSymbol) Name() string
- func (b *GlobalVarSymbol) Pos() token.Pos
- func (b *GlobalVarSymbol) ReadOnly() bool
- func (b *GlobalVarSymbol) SetName(name string)
- func (b *GlobalVarSymbol) SetPos(pos token.Pos)
- func (b *GlobalVarSymbol) SetReadOnly(ro bool)
- type LocalVarSymbol
- func (b *LocalVarSymbol) Lift()
- func (b *LocalVarSymbol) Liftable() bool
- func (b *LocalVarSymbol) Lifted() bool
- func (b *LocalVarSymbol) Name() string
- func (b *LocalVarSymbol) Pos() token.Pos
- func (b *LocalVarSymbol) ReadOnly() bool
- func (b *LocalVarSymbol) SetName(name string)
- func (b *LocalVarSymbol) SetPos(pos token.Pos)
- func (b *LocalVarSymbol) SetReadOnly(ro bool)
- type Package
- func (b *Package) Lift()
- func (b *Package) Liftable() bool
- func (b *Package) Lifted() bool
- func (b *Package) Name() string
- func (b *Package) Pos() token.Pos
- func (b *Package) ReadOnly() bool
- func (b *Package) SetName(name string)
- func (b *Package) SetPos(pos token.Pos)
- func (b *Package) SetReadOnly(ro bool)
- type ParamSymbol
- func (b *ParamSymbol) Lift()
- func (b *ParamSymbol) Liftable() bool
- func (b *ParamSymbol) Lifted() bool
- func (b *ParamSymbol) Name() string
- func (b *ParamSymbol) Pos() token.Pos
- func (b *ParamSymbol) ReadOnly() bool
- func (b *ParamSymbol) SetName(name string)
- func (b *ParamSymbol) SetPos(pos token.Pos)
- func (b *ParamSymbol) SetReadOnly(ro bool)
- type Scope
- type ScopeStack
- type SimpleScope
- type Symbol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaptureSymbol ¶
type CaptureSymbol struct { Capture Symbol CaptureNdx int // contains filtered or unexported fields }
func (*CaptureSymbol) SetReadOnly ¶ added in v0.2.0
func (b *CaptureSymbol) SetReadOnly(ro bool)
type ConstSymbol ¶ added in v0.3.0
type ConstSymbol struct { LiteralNdx int // contains filtered or unexported fields }
func (*ConstSymbol) SetReadOnly ¶ added in v0.3.0
func (b *ConstSymbol) SetReadOnly(ro bool)
type FuncSymbol ¶
func (*FuncSymbol) SetReadOnly ¶ added in v0.2.0
func (b *FuncSymbol) SetReadOnly(ro bool)
type GlobalVarSymbol ¶
type GlobalVarSymbol struct { GlobalNdx int // contains filtered or unexported fields }
func (*GlobalVarSymbol) SetReadOnly ¶ added in v0.2.0
func (b *GlobalVarSymbol) SetReadOnly(ro bool)
type LocalVarSymbol ¶
type LocalVarSymbol struct { LocalNdx int // contains filtered or unexported fields }
func (*LocalVarSymbol) SetReadOnly ¶ added in v0.2.0
func (b *LocalVarSymbol) SetReadOnly(ro bool)
type Package ¶ added in v0.3.0
type Package struct { Scope Scope // contains filtered or unexported fields }
func (*Package) SetReadOnly ¶ added in v0.3.0
func (b *Package) SetReadOnly(ro bool)
type ParamSymbol ¶
type ParamSymbol struct { ParamNdx int // contains filtered or unexported fields }
func (*ParamSymbol) SetReadOnly ¶ added in v0.2.0
func (b *ParamSymbol) SetReadOnly(ro bool)
type ScopeStack ¶
type ScopeStack struct {
// contains filtered or unexported fields
}
func NewScopeStack ¶
func NewScopeStack() *ScopeStack
func (*ScopeStack) Current ¶
func (s *ScopeStack) Current() Scope
func (*ScopeStack) FindSymbol ¶
func (s *ScopeStack) FindSymbol(name string) (Symbol, Scope)
func (*ScopeStack) Pop ¶
func (s *ScopeStack) Pop()
func (*ScopeStack) Push ¶
func (s *ScopeStack) Push(scope Scope)
type SimpleScope ¶ added in v0.3.0
type SimpleScope struct {
// contains filtered or unexported fields
}
func NewScope ¶
func NewScope() *SimpleScope
func (*SimpleScope) ForEachSymbol ¶ added in v0.3.0
func (s *SimpleScope) ForEachSymbol(fn func(sym Symbol))
func (*SimpleScope) GetSymbol ¶ added in v0.3.0
func (s *SimpleScope) GetSymbol(name string) Symbol
Click to show internal directories.
Click to hide internal directories.