Documentation
¶
Index ¶
- type Scope
- func (s *Scope) Depth() int
- func (s *Scope) Get(n string, p bool) object.Object
- func (s *Scope) IsBreak() bool
- func (s *Scope) IsContinue() bool
- func (s *Scope) IsFunc() bool
- func (s *Scope) IsGlobal() bool
- func (s *Scope) IsInFunc() bool
- func (s *Scope) IsInLoop() bool
- func (s *Scope) Parent() *Scope
- func (s *Scope) Put(n string, o object.Object)
- func (s *Scope) SetLoopBreak()
- func (s *Scope) SetLoopContinue()
- func (s *Scope) UnsetLoopBreak()
- func (s *Scope) UnsetLoopContinue()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
var CurrentScope *Scope
current scope
var GlobalScope *Scope
global scope
func NewScope ¶
func NewScope( parent *Scope, depth int, isFunc bool, isLoop bool, objects map[string]object.Object, ) *Scope
NewScope creates new scope
func (*Scope) IsContinue ¶
IsContinue returns true if continue necessary
func (*Scope) SetLoopBreak ¶
func (s *Scope) SetLoopBreak()
SetLoopBreak sets flag for break necessity
func (*Scope) SetLoopContinue ¶
func (s *Scope) SetLoopContinue()
SetLoopContinue sets flag for continue necessity
func (*Scope) UnsetLoopBreak ¶
func (s *Scope) UnsetLoopBreak()
UnsetLoopBreak unsets flag for break necessity
func (*Scope) UnsetLoopContinue ¶
func (s *Scope) UnsetLoopContinue()
UnsetLoopContinue unsets flag for continue necessity
Click to show internal directories.
Click to hide internal directories.