EditGetRefactoringResult class

edit.getRefactoring result

{ "initialProblems": List

Clients may not extend, implement or mix-in this class.

Constructors

EditGetRefactoringResult(List<RefactoringProblem> initialProblems, List<RefactoringProblem> optionsProblems, List<RefactoringProblem> finalProblems, {RefactoringFeedback? feedback, SourceChange? change, List<String>? potentialEdits})
EditGetRefactoringResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
factory
EditGetRefactoringResult.fromResponse(Response response)
factory

Properties

change SourceChange?
The changes that are to be applied to affect the refactoring. This field can be omitted if there are problems that prevent a set of changes from being computed, such as having no options specified for a refactoring that requires them, or if only validation was requested.
getter/setter pair
feedback RefactoringFeedback?
Data used to provide feedback to the user. The structure of the data is dependent on the kind of refactoring being created. The data that is returned is documented in the section titled Refactorings, labeled as "Feedback".
getter/setter pair
finalProblems List<RefactoringProblem>
The final status of the refactoring, that is, problems identified in the result of a full, potentially expensive validation and / or change creation. The list should be empty if there are no known problems.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
initialProblems List<RefactoringProblem>
The initial status of the refactoring, that is, problems related to the context in which the refactoring is requested. The list should be empty if there are no known problems.
getter/setter pair
optionsProblems List<RefactoringProblem>
The options validation status, that is, problems in the given options, such as light-weight validation of a new name, flags compatibility, etc. The list should be empty if there are no known problems.
getter/setter pair
potentialEdits List<String>?
The ids of source edits that are not known to be valid. An edit is not known to be valid if there was insufficient type information for the plugin to be able to determine whether or not the code needs to be modified, such as when a member is being renamed and there is a reference to a member from an unknown type. This field can be omitted if the change field is omitted or if there are no potential edits for the refactoring.
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, Object>
Returns a JSON presentation of the object.
toResponse(String id, int requestTime) Response
Return a response whose result data is this object for the request with the given id, where the request was received at the given requestTime.
toString() String
A string representation of this object.
override

Operators

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