Documentation ¶
Index ¶
- Constants
- type DeclKind
- type Hoister
- func (h *Hoister) VisitArrowFunctionLiteral(n *ast.ArrowFunctionLiteral)
- func (h *Hoister) VisitBindingTarget(n *ast.BindingTarget)
- func (h *Hoister) VisitBlockStatement(n *ast.BlockStatement)
- func (h *Hoister) VisitCatchStatement(n *ast.CatchStatement)
- func (h *Hoister) VisitExpression(n *ast.Expression)
- func (h *Hoister) VisitFunctionDeclaration(n *ast.FunctionDeclaration)
- func (h *Hoister) VisitFunctionLiteral(n *ast.FunctionLiteral)
- func (h *Hoister) VisitStatements(n *ast.Statements)
- func (h *Hoister) VisitSwitchStatement(n *ast.SwitchStatement)
- func (h *Hoister) VisitVariableDeclaration(n *ast.VariableDeclaration)
- type IdentType
- type Resolver
- func (r *Resolver) VisitArrowFunctionLiteral(n *ast.ArrowFunctionLiteral)
- func (r *Resolver) VisitBlockStatement(n *ast.BlockStatement)
- func (r *Resolver) VisitExpression(expr *ast.Expression)
- func (r *Resolver) VisitForOfStatement(n *ast.ForOfStatement)
- func (r *Resolver) VisitForStatement(n *ast.ForStatement)
- func (r *Resolver) VisitFunctionDeclaration(n *ast.FunctionDeclaration)
- func (r *Resolver) VisitFunctionLiteral(n *ast.FunctionLiteral)
- func (r *Resolver) VisitIdentifier(n *ast.Identifier)
- func (r *Resolver) VisitProgram(n *ast.Program)
- func (r *Resolver) VisitStatements(n *ast.Statements)
- func (r *Resolver) VisitVariableDeclaration(n *ast.VariableDeclaration)
- type Scope
- type ScopeKind
Constants ¶
View Source
const ( UnresolvedMark ast.ScopeContext = 0 TopLevelMark ast.ScopeContext = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hoister ¶
type Hoister struct { ast.NoopVisitor // contains filtered or unexported fields }
func NewHoister ¶
func (*Hoister) VisitArrowFunctionLiteral ¶
func (h *Hoister) VisitArrowFunctionLiteral(n *ast.ArrowFunctionLiteral)
func (*Hoister) VisitBindingTarget ¶
func (h *Hoister) VisitBindingTarget(n *ast.BindingTarget)
func (*Hoister) VisitBlockStatement ¶
func (h *Hoister) VisitBlockStatement(n *ast.BlockStatement)
func (*Hoister) VisitCatchStatement ¶
func (h *Hoister) VisitCatchStatement(n *ast.CatchStatement)
func (*Hoister) VisitExpression ¶
func (h *Hoister) VisitExpression(n *ast.Expression)
func (*Hoister) VisitFunctionDeclaration ¶
func (h *Hoister) VisitFunctionDeclaration(n *ast.FunctionDeclaration)
func (*Hoister) VisitFunctionLiteral ¶
func (h *Hoister) VisitFunctionLiteral(n *ast.FunctionLiteral)
func (*Hoister) VisitStatements ¶
func (h *Hoister) VisitStatements(n *ast.Statements)
func (*Hoister) VisitSwitchStatement ¶
func (h *Hoister) VisitSwitchStatement(n *ast.SwitchStatement)
func (*Hoister) VisitVariableDeclaration ¶
func (h *Hoister) VisitVariableDeclaration(n *ast.VariableDeclaration)
type Resolver ¶
type Resolver struct { ast.NoopVisitor // contains filtered or unexported fields }
func (*Resolver) VisitArrowFunctionLiteral ¶
func (r *Resolver) VisitArrowFunctionLiteral(n *ast.ArrowFunctionLiteral)
func (*Resolver) VisitBlockStatement ¶
func (r *Resolver) VisitBlockStatement(n *ast.BlockStatement)
func (*Resolver) VisitExpression ¶
func (r *Resolver) VisitExpression(expr *ast.Expression)
func (*Resolver) VisitForOfStatement ¶
func (r *Resolver) VisitForOfStatement(n *ast.ForOfStatement)
func (*Resolver) VisitForStatement ¶
func (r *Resolver) VisitForStatement(n *ast.ForStatement)
func (*Resolver) VisitFunctionDeclaration ¶
func (r *Resolver) VisitFunctionDeclaration(n *ast.FunctionDeclaration)
func (*Resolver) VisitFunctionLiteral ¶
func (r *Resolver) VisitFunctionLiteral(n *ast.FunctionLiteral)
func (*Resolver) VisitIdentifier ¶
func (r *Resolver) VisitIdentifier(n *ast.Identifier)
func (*Resolver) VisitProgram ¶
func (*Resolver) VisitStatements ¶
func (r *Resolver) VisitStatements(n *ast.Statements)
func (*Resolver) VisitVariableDeclaration ¶
func (r *Resolver) VisitVariableDeclaration(n *ast.VariableDeclaration)
Click to show internal directories.
Click to hide internal directories.