Query class

Constructors

Query({int? character, int? line, String? path, String? relation, String? repo, String? rev})
Returns a new Query instance.

Properties

character ↔ int?
Character is a 0-based UTF-16 code-unit offset within Line, per the LSP specification — not a byte offset and not a rune index.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
line ↔ int?
Line is 0-based, per the LSP specification.
getter/setter pair
path ↔ String?
Path is the repo-relative file, e.g. "apps/lsp/lsp.go".
getter/setter pair
relation ↔ String?
Relation refines locate: definition, reference, type or implementation. Empty means definition. Every other op ignores it.
getter/setter pair
repo ↔ String?
Repo is the repository NAME within the caller's own org, e.g. "cloud". Not a URL and not an owner/name pair: the owner is the validated principal's org, so this names a repository the caller already owns.
getter/setter pair
rev ↔ String?
Rev is a branch, tag or commit sha. Empty means the default branch. It is resolved to a commit before anything else happens, so an answer is always about one immutable tree.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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

Static Methods

fromJson(dynamic value) → Query?
Returns a new Query instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Query>
mapFromJson(dynamic json) → Map<String, Query>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Query>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.