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

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

Issue 528053002: Rename ExecutableFile.offset to ExecutableFile.kind and fix documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b45b97bb89fa6bc509273c63e6531066c0a2ca3f..80f514cbb8767692d003e20f0886ddc0bc5b5eca 100644
--- a/pkg/analysis_server/lib/src/generated_protocol.dart
+++ b/pkg/analysis_server/lib/src/generated_protocol.dart
@@ -5864,7 +5864,7 @@ class ElementKind {
*
* {
* "file": FilePath
- * "offset": ExecutableKind
+ * "kind": ExecutableKind
* }
*/
class ExecutableFile implements HasToJson {
@@ -5874,11 +5874,11 @@ class ExecutableFile implements HasToJson {
String file;
/**
- * The offset of the region to be highlighted.
+ * The kind of the executable file.
*/
- ExecutableKind offset;
+ ExecutableKind kind;
- ExecutableFile(this.file, this.offset);
+ ExecutableFile(this.file, this.kind);
factory ExecutableFile.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
if (json == null) {
@@ -5891,13 +5891,13 @@ class ExecutableFile implements HasToJson {
} else {
throw jsonDecoder.missingKey(jsonPath, "file");
}
- ExecutableKind offset;
- if (json.containsKey("offset")) {
- offset = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".offset", json["offset"]);
+ ExecutableKind kind;
+ if (json.containsKey("kind")) {
+ kind = new ExecutableKind.fromJson(jsonDecoder, jsonPath + ".kind", json["kind"]);
} else {
- throw jsonDecoder.missingKey(jsonPath, "offset");
+ throw jsonDecoder.missingKey(jsonPath, "kind");
}
- return new ExecutableFile(file, offset);
+ return new ExecutableFile(file, kind);
} else {
throw jsonDecoder.mismatch(jsonPath, "ExecutableFile");
}
@@ -5906,7 +5906,7 @@ class ExecutableFile implements HasToJson {
Map<String, dynamic> toJson() {
Map<String, dynamic> result = {};
result["file"] = file;
- result["offset"] = offset.toJson();
+ result["kind"] = kind.toJson();
return result;
}
@@ -5917,7 +5917,7 @@ class ExecutableFile implements HasToJson {
bool operator==(other) {
if (other is ExecutableFile) {
return file == other.file &&
- offset == other.offset;
+ kind == other.kind;
}
return false;
}
@@ -5926,7 +5926,7 @@ class ExecutableFile implements HasToJson {
int get hashCode {
int hash = 0;
hash = _JenkinsSmiHash.combine(hash, file.hashCode);
- hash = _JenkinsSmiHash.combine(hash, offset.hashCode);
+ hash = _JenkinsSmiHash.combine(hash, kind.hashCode);
return _JenkinsSmiHash.finish(hash);
}
}
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/test/integration/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698