Documentation
¶
Index ¶
- type Builder
- func (b *Builder) Define(name string, kind SymbolKind) *Symbol
- func (b *Builder) EnterScope(name string)
- func (b *Builder) ExitScope()
- func (b *Builder) Resolve(name string) *Symbol
- func (b *Builder) Visit(node ast.Node)
- func (b *Builder) VisitExpression(expr ast.Expression)
- func (b *Builder) VisitStatement(stmt ast.Statement)
- type Scope
- type Symbol
- type SymbolKind
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
func NewBuilder ¶
func NewBuilder() *Builder
func (*Builder) EnterScope ¶
func (*Builder) VisitExpression ¶
func (b *Builder) VisitExpression(expr ast.Expression)
func (*Builder) VisitStatement ¶
type Symbol ¶
type Symbol struct {
Name string
Kind SymbolKind
NestedScope *Scope
}
type SymbolKind ¶
type SymbolKind int
const ( VARIABLE SymbolKind = iota FUNCTION PARAMETER STRUCT_FIELD STRUCT CONSTANT MODULE )
func (SymbolKind) String ¶
func (k SymbolKind) String() string
Click to show internal directories.
Click to hide internal directories.