Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1247)

Unified Diff: pkg/analysis_server/lib/src/generated_protocol.dart

Issue 868893003: update analysis server spec and regen files (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 5d8f0fff980222b122671297bc47ef2815066067..dec7e5e2d424f9e4de53a9dc53dcdd44e5a97809 100644
--- a/pkg/analysis_server/lib/src/generated_protocol.dart
+++ b/pkg/analysis_server/lib/src/generated_protocol.dart
@@ -1405,15 +1405,45 @@ class AnalysisUpdateContentParams implements HasToJson {
return _JenkinsSmiHash.finish(hash);
}
}
+
/**
* analysis.updateContent result
+ *
+ * {
+ * }
*/
-class AnalysisUpdateContentResult {
+class AnalysisUpdateContentResult implements HasToJson {
+ AnalysisUpdateContentResult();
+
+ factory AnalysisUpdateContentResult.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
+ if (json == null) {
+ json = {};
+ }
+ if (json is Map) {
+ return new AnalysisUpdateContentResult();
+ } else {
+ throw jsonDecoder.mismatch(jsonPath, "analysis.updateContent result");
+ }
+ }
+
+ factory AnalysisUpdateContentResult.fromResponse(Response response) {
+ return new AnalysisUpdateContentResult.fromJson(
+ new ResponseDecoder(REQUEST_ID_REFACTORING_KINDS.remove(response.id)), "result", response._result);
+ }
+
+ Map<String, dynamic> toJson() {
+ Map<String, dynamic> result = {};
+ return result;
+ }
+
Response toResponse(String id) {
- return new Response(id, result: null);
+ return new Response(id, result: toJson());
}
@override
+ String toString() => JSON.encode(toJson());
+
+ @override
bool operator==(other) {
if (other is AnalysisUpdateContentResult) {
return true;
@@ -1423,7 +1453,8 @@ class AnalysisUpdateContentResult {
@override
int get hashCode {
- return 468798730;
+ int hash = 0;
+ return _JenkinsSmiHash.finish(hash);
}
}
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/test/integration/integration_test_methods.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698