SBlock class

Inheritance

Constructors

SBlock({required int offset, required int length, List<SStatement> statements = const []})
SBlock.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
length int
Length of the source text
final
nodeType String
Unique node type identifier for serialization
no setteroverride
offset int
Source offset of the node
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
slotCount int?
S3 (perf plan_3 §4.6): number of slot-eligible locals this block frame declares directly — the size of the per-frame _slots array the interpreter pre-allocates on entry. Populated by StaticResolver (a block-local is slot-eligible iff every occurrence is a depth-0, non-escaped, non-assignment access; ineligible locals stay name-based in _values and are not counted). null = not yet resolved → no slot array. Mutable because the resolver assigns it on block exit. Emitted into toJson only when non-null, so an unresolved block serializes identically to the pre-S3 format.
getter/setter pair
statements List<SStatement>
final

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.
inherited
visitChildren(SAstVisitor visitor) → void
Visit all child nodes of this node.
override

Operators

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