DartBlockFunction class

Implemented types
Annotations
  • @JsonSerializable.new(explicitToJson: true)

Constructors

DartBlockFunction(String name, DartBlockDataType? returnType, List<DartBlockVariableDefinition> parameters, List<Statement> statements)
DartBlockFunction.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode → int
The hash code for this object.
no setteroverride
name ↔ String
getter/setter pair
parameters ↔ List<DartBlockVariableDefinition>
getter/setter pair
returnType ↔ DartBlockDataType?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statements ↔ List<Statement>
getter/setter pair

Methods

buildTree(DartBlockProgramTreeNode programTreeNode) → DartBlockProgramTreeNode
override
copy() → DartBlockFunction
getAsFunctionDefinition() → FunctionDefinition
isMainFunction() → bool
Whether it is the main function (entry point when executing DartBlockProgram).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shuffle({bool deep = false}) → DartBlockFunction
toJson() → Map<String, dynamic>
toScript({DartBlockTypedLanguage language = DartBlockTypedLanguage.java}) → String
toString() → String
A string representation of this object.
inherited
trim(int length) → DartBlockFunction

Operators

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