FunctionBody class

Inheritance
Implemented types

Constructors

FunctionBody(List<Identifier>? parameters, List<AstNode> body, bool isVararg, {Identifier? varargName, bool implicitSelf = false})

Properties

body → List<AstNode>
final
cachedDebugHookLine ↔ int
Cached line selected for statement debug hooks.
getter/setter pairinherited
cachedEndLine ↔ int
Cached end line (0-based) from span, set once in setSpan.
getter/setter pairinherited
cachedStartLine ↔ int
Cached start line (0-based) from span, set once in setSpan.
getter/setter pairinherited
cachedTraceLine ↔ int
Cached line selected for error-trace frames.
getter/setter pairinherited
hashCode → int
The hash code for this object.
no setterinherited
implicitSelf ↔ bool
getter/setter pair
isVararg → bool
final
parameters ↔ List<Identifier>?
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
span ↔ SourceSpan?
getter/setter pairinherited
varargName → Identifier?
final

Methods

accept<T>(AstVisitor<T> visitor) → Future<T>
Dispatches this node to visitor.
override
dump() → Map<String, dynamic>
Returns a JSON-serializable representation of this AST node. Implementations should include a 'type' field to assist decoding.
override
dumpSpan() → Map<String, dynamic>?
Dumps span information to a serializable map
inherited
getSpan() → SourceSpan?
inherited
inferSpanFromChildren() → void
Attempts to infer span information from child nodes
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restoreSpan(Map<String, dynamic>? spanData, String? fallbackSourceUrl) → void
Restores span information from a serialized map
inherited
setSpan(SourceSpan span) → void
inherited
toSource() → String
override
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

fromDump(Map<String, dynamic> data) → FunctionBody