CodeSymbol class
Constructors
- CodeSymbol({String? detail, int? kind, String? name, Range? range})
- Returns a new CodeSymbol instance.
Properties
- detail ↔ String?
-
Detail is the server's short elaboration, typically the signature. Absent when it offered none.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind ↔ int?
-
Kind is the LSP SymbolKind number (5 class, 6 method, 12 function, 23 struct, …), passed through rather than translated to a word — these callers already speak LSP, and inventing a second vocabulary is how the two drift.
getter/setter pair
- name ↔ String?
-
Name is the declared identifier.
getter/setter pair
- range ↔ Range?
-
Range is the declaration's span in the file.
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) → CodeSymbol? -
Returns a new CodeSymbol instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< CodeSymbol> -
mapFromJson(
dynamic json) → Map< String, CodeSymbol> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< CodeSymbol> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.