resolver

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UnresolvedMark ast.ScopeContext = 0
	TopLevelMark   ast.ScopeContext = 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeclKind

type DeclKind int
const (
	DeclKindVar DeclKind = iota
	DeclKindFunction
)

type IdentType

type IdentType int
const (
	IdentTypeRef     IdentType = iota // Reference (read)
	IdentTypeBinding                  // Binding (declaration)
)

type Resolver

type Resolver struct {
	ast.NoopVisitor
	// contains filtered or unexported fields
}

func Resolve

func Resolve(p ast.VisitableNode) *Resolver

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) VisitForInStatement

func (r *Resolver) VisitForInStatement(n *ast.ForInStatement)

func (*Resolver) VisitForOfStatement

func (r *Resolver) VisitForOfStatement(n *ast.ForOfStatement)

func (*Resolver) VisitForStatement

func (r *Resolver) VisitForStatement(n *ast.ForStatement)

func (*Resolver) VisitFunctionLiteral

func (r *Resolver) VisitFunctionLiteral(n *ast.FunctionLiteral)

func (*Resolver) VisitIdentifier

func (r *Resolver) VisitIdentifier(n *ast.Identifier)

func (*Resolver) VisitMemberProperty

func (r *Resolver) VisitMemberProperty(n *ast.MemberProperty)

func (*Resolver) VisitProgram

func (r *Resolver) VisitProgram(n *ast.Program)

func (*Resolver) VisitStatements

func (r *Resolver) VisitStatements(n *ast.Statements)

func (*Resolver) VisitVariableDeclaration

func (r *Resolver) VisitVariableDeclaration(n *ast.VariableDeclaration)

type Scope

type Scope struct {
	// contains filtered or unexported fields
}

type ScopeKind

type ScopeKind int
const (
	ScopeKindBlock ScopeKind = iota
	ScopeKindFunction
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL