| Index: pkg/analysis_server/lib/src/generated_protocol.dart
|
| diff --git a/pkg/analysis_server/lib/src/generated_protocol.dart b/pkg/analysis_server/lib/src/generated_protocol.dart
|
| index 400856e77103e5aed56900625236634566a61c4d..aa200d30d1ae90d462e77a71d5e8b231fabb8d9a 100644
|
| --- a/pkg/analysis_server/lib/src/generated_protocol.dart
|
| +++ b/pkg/analysis_server/lib/src/generated_protocol.dart
|
| @@ -51,6 +51,10 @@ class ServerGetVersionResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -402,6 +406,10 @@ class AnalysisGetErrorsResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -549,6 +557,10 @@ class AnalysisGetHoverResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -1650,6 +1662,10 @@ class CompletionGetSuggestionsResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -1958,6 +1974,10 @@ class SearchFindElementReferencesResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -2088,6 +2108,10 @@ class SearchFindMemberDeclarationsResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -2216,6 +2240,10 @@ class SearchFindMemberReferencesResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -2345,6 +2373,10 @@ class SearchFindTopLevelDeclarationsResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -2497,6 +2529,10 @@ class SearchGetTypeHierarchyResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -2748,6 +2784,10 @@ class EditGetAssistsResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -2906,6 +2946,10 @@ class EditGetAvailableRefactoringsResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -3054,6 +3098,10 @@ class EditGetFixesResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -3313,6 +3361,10 @@ class EditGetRefactoringResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -3447,6 +3499,10 @@ class DebugCreateContextResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -3686,6 +3742,10 @@ class DebugMapUriResult implements HasToJson {
|
| return result;
|
| }
|
|
|
| + Response toResponse(String id) {
|
| + return new Response(id, result: toJson());
|
| + }
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
| @@ -5032,6 +5092,12 @@ class Element implements HasToJson {
|
| }
|
| }
|
|
|
| + /**
|
| + * Construct based on a value from the analyzer engine.
|
| + */
|
| + factory Element.fromEngine(engine.Element element) =>
|
| + elementFromEngine(element);
|
| +
|
| bool get isAbstract => (flags & FLAG_ABSTRACT) != 0;
|
| bool get isConst => (flags & FLAG_CONST) != 0;
|
| bool get isFinal => (flags & FLAG_FINAL) != 0;
|
| @@ -6555,6 +6621,18 @@ class Location implements HasToJson {
|
| }
|
| }
|
|
|
| + /**
|
| + * Construct based on an element from the analyzer engine.
|
| + */
|
| + factory Location.fromElement(engine.Element element) =>
|
| + _locationFromElement(element);
|
| +
|
| + /**
|
| + * Create a Location based on an element and offset from the analyzer engine.
|
| + */
|
| + factory Location.fromOffset(engine.Element element, int offset, int length) =>
|
| + _locationFromOffset(element, offset, length);
|
| +
|
| Map<String, dynamic> toJson() {
|
| Map<String, dynamic> result = {};
|
| result["file"] = file;
|
| @@ -7023,6 +7101,12 @@ class OverriddenMember implements HasToJson {
|
| }
|
| }
|
|
|
| + /**
|
| + * Construct based on an element from the analyzer engine.
|
| + */
|
| + factory OverriddenMember.fromEngine(engine.Element member) =>
|
| + _overriddenMemberFromEngine(member);
|
| +
|
| Map<String, dynamic> toJson() {
|
| Map<String, dynamic> result = {};
|
| result["element"] = element.toJson();
|
| @@ -7625,6 +7709,12 @@ class SearchResult implements HasToJson {
|
| }
|
| }
|
|
|
| + /**
|
| + * Construct based on a value from the search engine.
|
| + */
|
| + factory SearchResult.fromMatch(engine.SearchMatch match) =>
|
| + searchResultFromMatch(match);
|
| +
|
| Map<String, dynamic> toJson() {
|
| Map<String, dynamic> result = {};
|
| result["location"] = location.toJson();
|
| @@ -7744,6 +7834,12 @@ class SearchResultKind {
|
| throw jsonDecoder.mismatch(jsonPath, "SearchResultKind");
|
| }
|
|
|
| + /**
|
| + * Construct based on a value from the search engine.
|
| + */
|
| + factory SearchResultKind.fromEngine(engine.MatchKind kind) =>
|
| + _searchResultKindFromEngine(kind);
|
| +
|
| @override
|
| String toString() => "SearchResultKind.$name";
|
|
|
| @@ -8075,6 +8171,17 @@ class SourceFileEdit implements HasToJson {
|
| return result;
|
| }
|
|
|
| + /**
|
| + * Adds the given [Edit] to the list.
|
| + */
|
| + void add(SourceEdit edit) => _addEditForSource(this, edit);
|
| +
|
| + /**
|
| + * Adds the given [Edit]s.
|
| + */
|
| + void addAll(Iterable<SourceEdit> edits) =>
|
| + _addAllEditsForSource(this, edits);
|
| +
|
| @override
|
| String toString() => JSON.encode(toJson());
|
|
|
|
|