ASTFunctionDeclaration<T> class

An AST Function Declaration.

Inheritance
Implementers
Available Extensions

Constructors

ASTFunctionDeclaration(String name, ASTParametersDeclaration _parameters, ASTType<T> returnType, {ASTBlock? block, ASTModifiers? modifiers})

Properties

children Iterable<ASTNode>
The children nodes of this node.
no setterinherited
descendantChildren List<ASTNode>
Return the children and it's descendant children (unmodifiable).
no setterinherited
functions List<ASTFunctionSet>
no setterinherited
functionsNames List<String>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
modifiers ASTModifiers
Modifiers of this function.
final
name String
Name of this function.
final
parameters ASTParametersDeclaration
no setter
parametersSize int
no setter
parentBlock ASTBlock?
getter/setter pairinherited
parentNode ASTNode?
no setterinherited
returnType ASTType<T>
The return type of this function.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statements List<ASTStatement>
no setterinherited

Methods

addAllFunctions(Iterable<ASTFunctionDeclaration> fs) → void
inherited
addAllStatements(Iterable<ASTStatement> statements) → void
inherited
addFunction(ASTFunctionDeclaration f) → void
inherited
addStatement(ASTStatement statement) → void
inherited
associateToType(ASTTypedNode node) → void
inherited
cacheDescendantChildren() → void
Mark that this node can cache its descendantChildren.
inherited
call(VMContext parent, {List? positionalParameters, Map? namedParameters}) FutureOr<ASTValue<T>>
containsFunctionWithName(String name, {bool caseInsensitive = false}) bool
inherited
defineRunContext(VMContext parentContext) VMContext
override
getField(String name, {bool caseInsensitive = false}) ASTClassField?
inherited
getFunction(String fName, ASTFunctionSignature parametersSignature, VMContext context, {bool caseInsensitive = false}) ASTFunctionDeclaration?
inherited
getFunctionReturnType<T>(String name, ASTFunctionSignature parametersTypes, VMContext context) ASTType<T>?
inherited
getFunctionWithName(String name, {bool caseInsensitive = false}) ASTFunctionSet?
inherited
getNodeIdentifier(String name, {ASTNode? requester}) ASTNode?
override
getParameterByIndex(int index) ASTFunctionParameterDeclaration?
getParameterByName(String name) ASTFunctionParameterDeclaration?
getParameterValueByIndex(VMContext context, int index) FutureOr<ASTValue?>
getParameterValueByName(VMContext context, String name) FutureOr<ASTValue?>
initializeVariables(VMContext context, List? positionalParameters, Map? namedParameters) FutureOr<void>
matchesParametersTypes(ASTFunctionSignature signature, bool exactTypes) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveNode(ASTNode? parentNode) → void
override
resolveReturnValue(VMContext context, Object? returnValue) FutureOr<ASTValue<T>>
resolveType(VMContext? context) ASTType
override
run(VMContext parentContext, ASTRunStatus runStatus) ASTValue
override
set(ASTBlock? other) → void
inherited
toString() String
A string representation of this object.
override

Operators

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