ASTNotSerializableException class
An AST node cannot be represented in a binary AST file.
Thrown by the writer for nodes that hold live Dart state — external functions and getters (which carry a Dart closure), and runtime-only values such as a class instance, a pending future or a bound runtime variable. These are injected by the VM at run time rather than produced by a parser, and are re-injected the same way after a binary load, so a parsed AST never contains them.
- Implemented types
Constructors
- ASTNotSerializableException(Object node, String reason, {String? declarationPath})
-
const
Properties
- declarationPath → String?
-
Where in the program the node lives, e.g.
ASTRoot > class Foo > bar.final - hashCode → int
-
The hash code for this object.
no setterinherited
- node → Object
-
The node that could not be encoded.
final
- reason → String
-
Why it could not be encoded.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited