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

Unified Diff: pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart

Issue 2719083003: New Completion defaultArgumentListString protocol. (Closed)
Patch Set: Created 3 years, 10 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/plugin/protocol/generated_protocol.dart
diff --git a/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart b/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
index f3c299d7035204ac92338f4ad139a516efad19a9..5fafc984c4b8c3a678c38923a02d87da50e77144 100644
--- a/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
+++ b/pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart
@@ -8970,6 +8970,7 @@ class ChangeContentOverlay implements HasToJson {
* "docSummary": optional String
* "docComplete": optional String
* "declaringType": optional String
+ * "defaultArgumentListString": optional String
* "element": optional Element
* "returnType": optional String
* "parameterNames": optional List<String>
@@ -9004,6 +9005,8 @@ class CompletionSuggestion implements HasToJson {
String _declaringType;
+ String _defaultArgumentListString;
+
Element _element;
String _returnType;
@@ -9170,6 +9173,20 @@ class CompletionSuggestion implements HasToJson {
}
/**
+ * A default String for use in generating argument list source contents on
+ * the client side.
+ */
+ String get defaultArgumentListString => _defaultArgumentListString;
+
+ /**
+ * A default String for use in generating argument list source contents on
+ * the client side.
+ */
+ void set defaultArgumentListString(String value) {
+ this._defaultArgumentListString = value;
+ }
+
+ /**
* Information about the element reference being suggested.
*/
Element get element => _element;
@@ -9299,7 +9316,7 @@ class CompletionSuggestion implements HasToJson {
this._importUri = value;
}
- CompletionSuggestion(CompletionSuggestionKind kind, int relevance, String completion, int selectionOffset, int selectionLength, bool isDeprecated, bool isPotential, {String docSummary, String docComplete, String declaringType, Element element, String returnType, List<String> parameterNames, List<String> parameterTypes, int requiredParameterCount, bool hasNamedParameters, String parameterName, String parameterType, String importUri}) {
+ CompletionSuggestion(CompletionSuggestionKind kind, int relevance, String completion, int selectionOffset, int selectionLength, bool isDeprecated, bool isPotential, {String docSummary, String docComplete, String declaringType, String defaultArgumentListString, Element element, String returnType, List<String> parameterNames, List<String> parameterTypes, int requiredParameterCount, bool hasNamedParameters, String parameterName, String parameterType, String importUri}) {
this.kind = kind;
this.relevance = relevance;
this.completion = completion;
@@ -9310,6 +9327,7 @@ class CompletionSuggestion implements HasToJson {
this.docSummary = docSummary;
this.docComplete = docComplete;
this.declaringType = declaringType;
+ this.defaultArgumentListString = defaultArgumentListString;
this.element = element;
this.returnType = returnType;
this.parameterNames = parameterNames;
@@ -9380,6 +9398,10 @@ class CompletionSuggestion implements HasToJson {
if (json.containsKey("declaringType")) {
declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", json["declaringType"]);
}
+ String defaultArgumentListString;
+ if (json.containsKey("defaultArgumentListString")) {
+ defaultArgumentListString = jsonDecoder.decodeString(jsonPath + ".defaultArgumentListString", json["defaultArgumentListString"]);
+ }
Element element;
if (json.containsKey("element")) {
element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json["element"]);
@@ -9416,7 +9438,7 @@ class CompletionSuggestion implements HasToJson {
if (json.containsKey("importUri")) {
importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["importUri"]);
}
- return new CompletionSuggestion(kind, relevance, completion, selectionOffset, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docComplete: docComplete, declaringType: declaringType, element: element, returnType: returnType, parameterNames: parameterNames, parameterTypes: parameterTypes, requiredParameterCount: requiredParameterCount, hasNamedParameters: hasNamedParameters, parameterName: parameterName, parameterType: parameterType, importUri: importUri);
+ return new CompletionSuggestion(kind, relevance, completion, selectionOffset, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docComplete: docComplete, declaringType: declaringType, defaultArgumentListString: defaultArgumentListString, element: element, returnType: returnType, parameterNames: parameterNames, parameterTypes: parameterTypes, requiredParameterCount: requiredParameterCount, hasNamedParameters: hasNamedParameters, parameterName: parameterName, parameterType: parameterType, importUri: importUri);
} else {
throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json);
}
@@ -9440,6 +9462,9 @@ class CompletionSuggestion implements HasToJson {
if (declaringType != null) {
result["declaringType"] = declaringType;
}
+ if (defaultArgumentListString != null) {
+ result["defaultArgumentListString"] = defaultArgumentListString;
+ }
if (element != null) {
result["element"] = element.toJson();
}
@@ -9486,6 +9511,7 @@ class CompletionSuggestion implements HasToJson {
docSummary == other.docSummary &&
docComplete == other.docComplete &&
declaringType == other.declaringType &&
+ defaultArgumentListString == other.defaultArgumentListString &&
element == other.element &&
returnType == other.returnType &&
listEqual(parameterNames, other.parameterNames, (String a, String b) => a == b) &&
@@ -9512,6 +9538,7 @@ class CompletionSuggestion implements HasToJson {
hash = JenkinsSmiHash.combine(hash, docSummary.hashCode);
hash = JenkinsSmiHash.combine(hash, docComplete.hashCode);
hash = JenkinsSmiHash.combine(hash, declaringType.hashCode);
+ hash = JenkinsSmiHash.combine(hash, defaultArgumentListString.hashCode);
hash = JenkinsSmiHash.combine(hash, element.hashCode);
hash = JenkinsSmiHash.combine(hash, returnType.hashCode);
hash = JenkinsSmiHash.combine(hash, parameterNames.hashCode);
« 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