LoxFunction class

Implemented types

Constructors

LoxFunction(Functional declaration, Environment closure, bool isInitializer)

Properties

closure → Environment
final
declaration → Functional
final
hashCode → int
The hash code for this object.
no setterinherited
isInitializer → bool
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

arity() → int
override
bind(LoxInstance instance) → LoxFunction
call(Interpreter interpreter, List<Object?> arguments, Map<Symbol, Object?> namedArguments) → Object?
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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