SnapshotIndex class
Precomputed lookups over a SemanticsSnapshot that rules and the engine share.
Building this once per audit avoids every rule re-walking the tree to find a node's parent or its structural path.
Constructors
- SnapshotIndex.build(SemanticsSnapshot snapshot)
-
Builds an index for
snapshotby walking the tree once.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
-
parentOf(
SemanticsNodeData node) → SemanticsNodeData? -
The parent of
node, ornullif it is the root or absent from the index. -
pathOf(
SemanticsNodeData node) → String -
The structural path of
nodefrom the root, e.g.node/button:0/text:1. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited