ASTClassFunctionDeclaration<T> class

An AST Class Function Declaration.

Inheritance
Implementers
Available Extensions

Constructors

ASTClassFunctionDeclaration(ASTClass? clazz, String name, ASTParametersDeclaration parameters, ASTType<T> returnType, {ASTBlock? block, ASTModifiers? modifiers})

Properties

children Iterable<ASTNode>
The children nodes of this node.
no setterinherited
classType ASTType?
no setter
clazz ASTClass?
The class type of this function.
getter/setter pair
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.
finalinherited
name String
Name of this function.
finalinherited
parameters ASTParametersDeclaration
no setterinherited
parametersSize int
no setterinherited
parentBlock ASTBlock?
getter/setter pairinherited
parentNode ASTNode?
no setterinherited
returnType ASTType<T>
The return type of this function.
finalinherited
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>>
inherited
containsFunctionWithName(String name, {bool caseInsensitive = false}) bool
inherited
defineRunContext(VMContext parentContext) VMContext
inherited
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?
inherited
getParameterByIndex(int index) ASTFunctionParameterDeclaration?
inherited
getParameterByName(String name) ASTFunctionParameterDeclaration?
inherited
getParameterValueByIndex(VMContext context, int index) FutureOr<ASTValue?>
inherited
getParameterValueByName(VMContext context, String name) FutureOr<ASTValue?>
inherited
initializeVariables(VMContext context, List? positionalParameters, Map? namedParameters) FutureOr<void>
inherited
matchesParametersTypes(ASTFunctionSignature signature, bool exactTypes) bool
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
objectCall(VMContext parent, ASTValue classInstance, {List? positionalParameters, Map? namedParameters}) FutureOr<ASTValue<T>>
resolveNode(ASTNode? parentNode) → void
inherited
resolveReturnValue(VMContext context, Object? returnValue) FutureOr<ASTValue<T>>
inherited
resolveType(VMContext? context) ASTType
inherited
run(VMContext parentContext, ASTRunStatus runStatus) ASTValue
inherited
set(ASTBlock? other) → void
inherited
toString() String
A string representation of this object.
inherited

Operators

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