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

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

Issue 990343002: Add an optional 'typeParameters' to Element. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update version. Created 5 years, 9 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 844635f8f86ebdff8a1c235bb9eb828bc64bdfaf..5e7ec1a1745a919147bba752ca4e25b980297196 100644
--- a/pkg/analysis_server/lib/src/generated_protocol.dart
+++ b/pkg/analysis_server/lib/src/generated_protocol.dart
@@ -6432,6 +6432,7 @@ class CompletionSuggestionKind implements Enum {
* "flags": int
* "parameters": optional String
* "returnType": optional String
+ * "typeParameters": optional String
* }
*/
class Element implements HasToJson {
@@ -6497,7 +6498,13 @@ class Element implements HasToJson {
*/
String returnType;
- Element(this.kind, this.name, this.flags, {this.location, this.parameters, this.returnType});
+ /**
+ * The type parameter list for the element. If the element doesn't have type
+ * parameters, this field will not be defined.
+ */
+ String typeParameters;
+
+ Element(this.kind, this.name, this.flags, {this.location, this.parameters, this.returnType, this.typeParameters});
factory Element.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object json) {
if (json == null) {
@@ -6534,7 +6541,11 @@ class Element implements HasToJson {
if (json.containsKey("returnType")) {
returnType = jsonDecoder._decodeString(jsonPath + ".returnType", json["returnType"]);
}
- return new Element(kind, name, flags, location: location, parameters: parameters, returnType: returnType);
+ String typeParameters;
+ if (json.containsKey("typeParameters")) {
+ typeParameters = jsonDecoder._decodeString(jsonPath + ".typeParameters", json["typeParameters"]);
+ }
+ return new Element(kind, name, flags, location: location, parameters: parameters, returnType: returnType, typeParameters: typeParameters);
} else {
throw jsonDecoder.mismatch(jsonPath, "Element");
}
@@ -6561,6 +6572,9 @@ class Element implements HasToJson {
if (returnType != null) {
result["returnType"] = returnType;
}
+ if (typeParameters != null) {
+ result["typeParameters"] = typeParameters;
+ }
return result;
}
@@ -6575,7 +6589,8 @@ class Element implements HasToJson {
location == other.location &&
flags == other.flags &&
parameters == other.parameters &&
- returnType == other.returnType;
+ returnType == other.returnType &&
+ typeParameters == other.typeParameters;
}
return false;
}
@@ -6589,6 +6604,7 @@ class Element implements HasToJson {
hash = _JenkinsSmiHash.combine(hash, flags.hashCode);
hash = _JenkinsSmiHash.combine(hash, parameters.hashCode);
hash = _JenkinsSmiHash.combine(hash, returnType.hashCode);
+ hash = _JenkinsSmiHash.combine(hash, typeParameters.hashCode);
return _JenkinsSmiHash.finish(hash);
}
}
« no previous file with comments | « pkg/analysis_server/lib/src/computer/computer_outline.dart ('k') | pkg/analysis_server/lib/src/protocol_server.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698