SourceLocation class

The SourceLocation class is used to designate a position or range in some script.

Inheritance

Constructors

SourceLocation({ScriptRef? script, int? tokenPos, int? endTokenPos, int? line, int? column})

Properties

column int?
The column associated with this location. Only provided for non-synthetic token positions.
getter/setter pair
endTokenPos int?
The last token of the location if this is a range.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
json Map<String, dynamic>?
getter/setter pairinherited
line int?
The line associated with this location. Only provided for non-synthetic token positions.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
script ScriptRef?
The script containing the source location.
getter/setter pair
tokenPos int?
The first token of the location.
getter/setter pair
type String
no setteroverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
override

Operators

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

Static Methods

parse(Map<String, dynamic>? json) SourceLocation?
override