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

Unified Diff: pkg/analysis_server/lib/protocol/protocol_generated.dart

Issue 2991893002: Remove the uri from the ImportedElements object in the experimental spec API (Closed)
Patch Set: Created 3 years, 5 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/protocol/protocol_generated.dart
diff --git a/pkg/analysis_server/lib/protocol/protocol_generated.dart b/pkg/analysis_server/lib/protocol/protocol_generated.dart
index 6a4f6fced5479f5ad05f345dd96afb2b8549ba73..e7e264e66190d1857685fd8e0c408251ae8938d5 100644
--- a/pkg/analysis_server/lib/protocol/protocol_generated.dart
+++ b/pkg/analysis_server/lib/protocol/protocol_generated.dart
@@ -11025,7 +11025,6 @@ class ImplementedMember implements HasToJson {
*
* {
* "path": FilePath
- * "uri": String
* "prefix": String
* "elements": List<String>
* }
@@ -11035,8 +11034,6 @@ class ImplementedMember implements HasToJson {
class ImportedElements implements HasToJson {
String _path;
- String _uri;
-
String _prefix;
List<String> _elements;
@@ -11055,19 +11052,6 @@ class ImportedElements implements HasToJson {
}
/**
- * The URI that was used when importing the library into the original source.
- */
- String get uri => _uri;
-
- /**
- * The URI that was used when importing the library into the original source.
- */
- void set uri(String value) {
- assert(value != null);
- this._uri = value;
- }
-
- /**
* The prefix that was used when importing the library into the original
* source.
*/
@@ -11095,10 +11079,8 @@ class ImportedElements implements HasToJson {
this._elements = value;
}
- ImportedElements(
- String path, String uri, String prefix, List<String> elements) {
+ ImportedElements(String path, String prefix, List<String> elements) {
this.path = path;
- this.uri = uri;
this.prefix = prefix;
this.elements = elements;
}
@@ -11115,12 +11097,6 @@ class ImportedElements implements HasToJson {
} else {
throw jsonDecoder.mismatch(jsonPath, "path");
}
- String uri;
- if (json.containsKey("uri")) {
- uri = jsonDecoder.decodeString(jsonPath + ".uri", json["uri"]);
- } else {
- throw jsonDecoder.mismatch(jsonPath, "uri");
- }
String prefix;
if (json.containsKey("prefix")) {
prefix = jsonDecoder.decodeString(jsonPath + ".prefix", json["prefix"]);
@@ -11134,7 +11110,7 @@ class ImportedElements implements HasToJson {
} else {
throw jsonDecoder.mismatch(jsonPath, "elements");
}
- return new ImportedElements(path, uri, prefix, elements);
+ return new ImportedElements(path, prefix, elements);
} else {
throw jsonDecoder.mismatch(jsonPath, "ImportedElements", json);
}
@@ -11144,7 +11120,6 @@ class ImportedElements implements HasToJson {
Map<String, dynamic> toJson() {
Map<String, dynamic> result = {};
result["path"] = path;
- result["uri"] = uri;
result["prefix"] = prefix;
result["elements"] = elements;
return result;
@@ -11157,7 +11132,6 @@ class ImportedElements implements HasToJson {
bool operator ==(other) {
if (other is ImportedElements) {
return path == other.path &&
- uri == other.uri &&
prefix == other.prefix &&
listEqual(elements, other.elements, (String a, String b) => a == b);
}
@@ -11168,7 +11142,6 @@ class ImportedElements implements HasToJson {
int get hashCode {
int hash = 0;
hash = JenkinsSmiHash.combine(hash, path.hashCode);
- hash = JenkinsSmiHash.combine(hash, uri.hashCode);
hash = JenkinsSmiHash.combine(hash, prefix.hashCode);
hash = JenkinsSmiHash.combine(hash, elements.hashCode);
return JenkinsSmiHash.finish(hash);
« no previous file with comments | « pkg/analysis_server/doc/api.html ('k') | pkg/analysis_server/test/integration/support/protocol_matchers.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698