SDartPattern class abstract

Base class for Dart patterns (Dart 3 pattern matching). Mirrors analyzer's DartPattern.

Inheritance

Constructors

SDartPattern()

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
no setterinherited
nodeType → String
Unique node type identifier for serialization
no setterinherited
offset → int
Source offset of the node
no setterinherited
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.
inherited
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
inherited
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.
inherited

Operators

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