SourceLocation class Null safety

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.
optional">@optionalread / write
endTokenPos int?
The last token of the location if this is a range.
optional">@optionalread / write
hashCode int
The hash code for this object.
read-onlyinherited
json Map<String, dynamic>?
read / writeinherited
line int?
The line associated with this location. Only provided for non-synthetic token positions.
optional">@optionalread / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
script ScriptRef?
The script containing the source location.
read / write
tokenPos int?
The first token of the location.
read / write
type String
read-onlyoverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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