LspLocation class final

LSP location: a range inside a document.

Constructors

LspLocation({required String uri, required LspRange range})
Creates an LspLocation.
const
LspLocation.fromJson(Map<String, dynamic> json)
Parses a JSON {"uri": ..., "range": ...} map.
factory

Properties

hashCode → int
The hash code for this object.
no setterinherited
range → LspRange
Range inside the document.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
uri → String
Document URI.
final

Methods

format(String cwd) → String
file:line:col with 1-indexed coordinates, path relative to cwd (omp's formatLocation).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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