SSimpleIdentifier class

Inheritance

Constructors

SSimpleIdentifier({required int offset, required int length, required String name, bool inDeclarationContext = false})
SSimpleIdentifier.fromJson(Map<String, dynamic> json)
factory

Properties

end int
Get the end offset
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
identifierName String
The name of the identifier.
no setteroverride
inDeclarationContext bool
Whether this is a declaration (vs reference)
final
length int
Length of the source text
final
name String
final
nodeType String
Unique node type identifier for serialization
no setteroverride
offset int
Source offset of the node
final
resolvedDepth int?
S2 (perf plan_3 §4.3 step c): statically-resolved lexical coordinate of this identifier use — the number of enclosing Environment hops to the declaring scope (resolvedDepth) and the declaration index within that scope (resolvedSlot). Populated by the static scope resolver pre-pass (StaticResolver) and serialized, so the analyzer-free Flutter precompute path interprets with zero resolution cost. null = unresolved → the interpreter falls back to the name-keyed Environment.get path. Mutable because the resolver assigns them after construction. In S2 these are carried + validated by an assert only; S3 routes reads onto them.
getter/setter pair
resolvedSlot int?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

accept<T>(SAstVisitor<T> visitor) → T?
Accept a visitor and return the result.
override
equals(Object other, [List<String>? log]) bool
Compares this node with other. If log is provided, differences are appended in a human-readable format with JSON-style paths.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON-serializable map
override
toJsonString({bool pretty = false}) String
Serialize to JSON string
inherited
toString() String
A string representation of this object.
override
visitChildren(SAstVisitor visitor) → void
Visit all child nodes of this node.
override

Operators

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