dump method
Returns a JSON-serializable representation of this AST node. Implementations should include a 'type' field to assist decoding.
Implementation
@override
Map<String, dynamic> dump() => {
'type': 'FunctionBody',
'params': (parameters ?? const <Identifier>[]).map((p) => p.name).toList(),
'vararg': isVararg,
if (varargName != null) 'varargName': varargName!.name,
'body': body
.map(
(s) => s is Dumpable ? (s as Dumpable).dump() : {'type': 'Unknown'},
)
.toList(),
'span': dumpSpan(),
};