Resolver class

Implemented types

Constructors

Resolver(Interpreter interpreter)

Properties

currentClassType ClassType
getter/setter pair
currentFunctionType FunctionType
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interpreter Interpreter
latefinal
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes Stack<Map<String, bool>>
final

Methods

beginScope() → void
declare(Token name) → void
define(Token name) → void
endScope() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(List<Stmt> statements) → void
resolveExpr(Expr expr) → void
resolveFunction(Functional function, FunctionType type) → void
resolveLocal(Expr expr, Token name) int
resolveStmt(Stmt stmt) → void
toString() String
A string representation of this object.
inherited
visitAnonymousExpr(Anonymous expr) → void
override
visitArrayExpr(Array expr) → void
override
visitArrayifExpr(Arrayif expr) → void
override
visitAssignExpr(Assign expr) → void
override
visitAwaitExpr(Await expr) → void
override
visitBinaryExpr(Binary expr) → void
override
visitBlockStmt(Block stmt) → void
override
visitCallExpr(Call expr) → void
override
visitClassStmt(Class stmt) → void
override
visitConditionalExpr(Conditional expr) → void
override
visitDictExpr(Dict expr) → void
override
visitExpressionStmt(Expression stmt) → void
override
visitFunctionalStmt(Functional stmt) → void
override
visitGetExpr(Get expr) → void
override
visitGroupingExpr(Grouping expr) → void
override
visitIfStmt(If stmt) → void
override
visitIndexingExpr(Indexing expr) → void
override
visitIndexSetExpr(IndexSet expr) → void
override
visitLiteralExpr(Literal expr) → void
override
visitLogicalExpr(Logical expr) → void
override
visitMappingExpr(Mapping expr) → void
override
visitNamedArgsExpr(NamedArgs expr) → void
override
visitPrintStmt(Print stmt) → void
override
visitReturnStmt(Return stmt) → void
override
visitSetExpr(Set expr) → void
override
visitSuperExpr(Super expr) → void
override
visitThenExpr(Then expr) → void
override
visitThisExpr(This expr) → void
override
visitUnaryExpr(Unary expr) → void
override
visitVariableExpr(Variable expr) → void
override
visitVarStmt(Var stmt) → void
override
visitWhileStmt(While stmt) → void
override

Operators

operator ==(Object other) bool
The equality operator.
inherited