ExecutionGetSuggestionsParams class
execution.getSuggestions params
{ "code": String "offset": int "contextFile": FilePath "contextOffset": int "variables": List
Clients may not extend, implement or mix-in this class.
Constructors
-
ExecutionGetSuggestionsParams(String code, int offset, String contextFile, int contextOffset, List<
RuntimeCompletionVariable> variables, {List<RuntimeCompletionExpression> ? expressions}) - ExecutionGetSuggestionsParams.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
-
factory
- ExecutionGetSuggestionsParams.fromRequest(Request request)
-
factory
Properties
- code ↔ String
-
The code to get suggestions in.
getter/setter pair
- contextFile ↔ String
-
The path of the context file, e.g. the file of the current debugger
frame. The combination of the context file and context offset can be used
to ensure that all variables of the context are available for completion
(with their static types).
getter/setter pair
- contextOffset ↔ int
-
The offset in the context file, e.g. the line offset in the current
debugger frame.
getter/setter pair
-
expressions
↔ List<
RuntimeCompletionExpression> ? -
The list of sub-expressions in the code for which the client wants to
provide runtime types. It does not have to be the full list of
expressions requested by the server, for missing expressions their static
types will be used.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- offset ↔ int
-
The offset within the code to get suggestions at.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
variables
↔ List<
RuntimeCompletionVariable> -
The runtime context variables that are potentially referenced in the
code.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Returns a JSON presentation of the object.
-
toRequest(
String id) → Request -
Return a request whose parameters are taken from this object and that has
the given
id
. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override