ProgramInfo class Null safety

Represents information about compiled program.

Constructors

ProgramInfo()
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
root ProgramInfoNode
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
snapshotInfo SnapshotInfo?
V8 snapshot profile if this ProgramInfo object was created from an output of --write-v8-snapshot-profile-to=... flag.
read / write
stubs ProgramInfoNode
final
totalSize int
Total size of all the nodes in the program.
read-only
unknown ProgramInfoNode
final

Methods

lookup(List<String> path) ProgramInfoNode?
Lookup a node in the program given a path to it.
makeNode({required String name, required ProgramInfoNode parent, required NodeType type}) ProgramInfoNode
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Convert this program info to a JSON map using infoToJson to convert data attached to nodes into its JSON representation.
toString() String
A string representation of this object. [...]
inherited
visit(void callback(String? pkg, String lib, String? cls, String? fun, ProgramInfoNode n)) → void
Recursively visit all function nodes, which have FunctionInfo.info populated.

Operators

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

Constants

rootId → const int
0
stubsId → const int
1
unknownId → const int
2