Documentation
¶
Index ¶
- type Context
- func (c *Context) AddError(err error)
- func (c *Context) BindVariable(name string, typ VarType, offset int)
- func (c *Context) CurrentScope() *Scope
- func (c *Context) EnterScope()
- func (c *Context) Errors() []error
- func (c *Context) ExitScope()
- func (c *Context) GetState() ParseState
- func (c *Context) HasErrors() bool
- func (c *Context) InClauseState() bool
- func (c *Context) IsVariableDeclared(name string) bool
- func (c *Context) LookupVariable(name string) *VarBinding
- func (c *Context) MarkVariableUsed(name string)
- func (c *Context) SetState(state ParseState)
- type ParseState
- type Scope
- type VarBinding
- type VarType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) CurrentScope ¶
func (*Context) EnterScope ¶
func (c *Context) EnterScope()
func (*Context) GetState ¶
func (c *Context) GetState() ParseState
func (*Context) InClauseState ¶
func (*Context) IsVariableDeclared ¶
func (*Context) LookupVariable ¶
func (c *Context) LookupVariable(name string) *VarBinding
func (*Context) MarkVariableUsed ¶
func (*Context) SetState ¶
func (c *Context) SetState(state ParseState)
type ParseState ¶
type ParseState int
const ( StateInitial ParseState = iota StateInMatch StateInCreate StateInMerge StateInWhere StateInReturn StateInWith StateInSet StateInDelete StateInRemove StateInPattern StateInExpression StateInListComprehension StateInPatternComprehension )
func (ParseState) String ¶
func (s ParseState) String() string
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) Lookup ¶
func (s *Scope) Lookup(name string) *VarBinding
type VarBinding ¶
Click to show internal directories.
Click to hide internal directories.