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

Side by Side Diff: pkg/analysis_server/lib/plugin/protocol/generated_protocol.dart

Issue 2719083003: New Completion defaultArgumentListString protocol. (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // This file has been automatically generated. Please do not edit it manually. 5 // This file has been automatically generated. Please do not edit it manually.
6 // To regenerate the file, use the script 6 // To regenerate the file, use the script
7 // "pkg/analysis_server/tool/spec/generate_files". 7 // "pkg/analysis_server/tool/spec/generate_files".
8 8
9 part of analysis_server.plugin.protocol.protocol; 9 part of analysis_server.plugin.protocol.protocol;
10 10
(...skipping 8952 matching lines...) Expand 10 before | Expand all | Expand 10 after
8963 * "kind": CompletionSuggestionKind 8963 * "kind": CompletionSuggestionKind
8964 * "relevance": int 8964 * "relevance": int
8965 * "completion": String 8965 * "completion": String
8966 * "selectionOffset": int 8966 * "selectionOffset": int
8967 * "selectionLength": int 8967 * "selectionLength": int
8968 * "isDeprecated": bool 8968 * "isDeprecated": bool
8969 * "isPotential": bool 8969 * "isPotential": bool
8970 * "docSummary": optional String 8970 * "docSummary": optional String
8971 * "docComplete": optional String 8971 * "docComplete": optional String
8972 * "declaringType": optional String 8972 * "declaringType": optional String
8973 * "defaultArgumentListString": optional String
8973 * "element": optional Element 8974 * "element": optional Element
8974 * "returnType": optional String 8975 * "returnType": optional String
8975 * "parameterNames": optional List<String> 8976 * "parameterNames": optional List<String>
8976 * "parameterTypes": optional List<String> 8977 * "parameterTypes": optional List<String>
8977 * "requiredParameterCount": optional int 8978 * "requiredParameterCount": optional int
8978 * "hasNamedParameters": optional bool 8979 * "hasNamedParameters": optional bool
8979 * "parameterName": optional String 8980 * "parameterName": optional String
8980 * "parameterType": optional String 8981 * "parameterType": optional String
8981 * "importUri": optional String 8982 * "importUri": optional String
8982 * } 8983 * }
(...skipping 14 matching lines...) Expand all
8997 bool _isDeprecated; 8998 bool _isDeprecated;
8998 8999
8999 bool _isPotential; 9000 bool _isPotential;
9000 9001
9001 String _docSummary; 9002 String _docSummary;
9002 9003
9003 String _docComplete; 9004 String _docComplete;
9004 9005
9005 String _declaringType; 9006 String _declaringType;
9006 9007
9008 String _defaultArgumentListString;
9009
9007 Element _element; 9010 Element _element;
9008 9011
9009 String _returnType; 9012 String _returnType;
9010 9013
9011 List<String> _parameterNames; 9014 List<String> _parameterNames;
9012 9015
9013 List<String> _parameterTypes; 9016 List<String> _parameterTypes;
9014 9017
9015 int _requiredParameterCount; 9018 int _requiredParameterCount;
9016 9019
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
9163 9166
9164 /** 9167 /**
9165 * The class that declares the element being suggested. This field is omitted 9168 * The class that declares the element being suggested. This field is omitted
9166 * if the suggested element is not a member of a class. 9169 * if the suggested element is not a member of a class.
9167 */ 9170 */
9168 void set declaringType(String value) { 9171 void set declaringType(String value) {
9169 this._declaringType = value; 9172 this._declaringType = value;
9170 } 9173 }
9171 9174
9172 /** 9175 /**
9176 * A default String for use in generating argument list source contents on
9177 * the client side.
9178 */
9179 String get defaultArgumentListString => _defaultArgumentListString;
9180
9181 /**
9182 * A default String for use in generating argument list source contents on
9183 * the client side.
9184 */
9185 void set defaultArgumentListString(String value) {
9186 this._defaultArgumentListString = value;
9187 }
9188
9189 /**
9173 * Information about the element reference being suggested. 9190 * Information about the element reference being suggested.
9174 */ 9191 */
9175 Element get element => _element; 9192 Element get element => _element;
9176 9193
9177 /** 9194 /**
9178 * Information about the element reference being suggested. 9195 * Information about the element reference being suggested.
9179 */ 9196 */
9180 void set element(Element value) { 9197 void set element(Element value) {
9181 this._element = value; 9198 this._element = value;
9182 } 9199 }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
9292 String get importUri => _importUri; 9309 String get importUri => _importUri;
9293 9310
9294 /** 9311 /**
9295 * The import to be added if the suggestion is out of scope and needs an 9312 * The import to be added if the suggestion is out of scope and needs an
9296 * import to be added to be in scope. 9313 * import to be added to be in scope.
9297 */ 9314 */
9298 void set importUri(String value) { 9315 void set importUri(String value) {
9299 this._importUri = value; 9316 this._importUri = value;
9300 } 9317 }
9301 9318
9302 CompletionSuggestion(CompletionSuggestionKind kind, int relevance, String comp letion, int selectionOffset, int selectionLength, bool isDeprecated, bool isPote ntial, {String docSummary, String docComplete, String declaringType, Element ele ment, String returnType, List<String> parameterNames, List<String> parameterType s, int requiredParameterCount, bool hasNamedParameters, String parameterName, St ring parameterType, String importUri}) { 9319 CompletionSuggestion(CompletionSuggestionKind kind, int relevance, String comp letion, int selectionOffset, int selectionLength, bool isDeprecated, bool isPote ntial, {String docSummary, String docComplete, String declaringType, String defa ultArgumentListString, Element element, String returnType, List<String> paramete rNames, List<String> parameterTypes, int requiredParameterCount, bool hasNamedPa rameters, String parameterName, String parameterType, String importUri}) {
9303 this.kind = kind; 9320 this.kind = kind;
9304 this.relevance = relevance; 9321 this.relevance = relevance;
9305 this.completion = completion; 9322 this.completion = completion;
9306 this.selectionOffset = selectionOffset; 9323 this.selectionOffset = selectionOffset;
9307 this.selectionLength = selectionLength; 9324 this.selectionLength = selectionLength;
9308 this.isDeprecated = isDeprecated; 9325 this.isDeprecated = isDeprecated;
9309 this.isPotential = isPotential; 9326 this.isPotential = isPotential;
9310 this.docSummary = docSummary; 9327 this.docSummary = docSummary;
9311 this.docComplete = docComplete; 9328 this.docComplete = docComplete;
9312 this.declaringType = declaringType; 9329 this.declaringType = declaringType;
9330 this.defaultArgumentListString = defaultArgumentListString;
9313 this.element = element; 9331 this.element = element;
9314 this.returnType = returnType; 9332 this.returnType = returnType;
9315 this.parameterNames = parameterNames; 9333 this.parameterNames = parameterNames;
9316 this.parameterTypes = parameterTypes; 9334 this.parameterTypes = parameterTypes;
9317 this.requiredParameterCount = requiredParameterCount; 9335 this.requiredParameterCount = requiredParameterCount;
9318 this.hasNamedParameters = hasNamedParameters; 9336 this.hasNamedParameters = hasNamedParameters;
9319 this.parameterName = parameterName; 9337 this.parameterName = parameterName;
9320 this.parameterType = parameterType; 9338 this.parameterType = parameterType;
9321 this.importUri = importUri; 9339 this.importUri = importUri;
9322 } 9340 }
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
9373 docSummary = jsonDecoder.decodeString(jsonPath + ".docSummary", json["do cSummary"]); 9391 docSummary = jsonDecoder.decodeString(jsonPath + ".docSummary", json["do cSummary"]);
9374 } 9392 }
9375 String docComplete; 9393 String docComplete;
9376 if (json.containsKey("docComplete")) { 9394 if (json.containsKey("docComplete")) {
9377 docComplete = jsonDecoder.decodeString(jsonPath + ".docComplete", json[" docComplete"]); 9395 docComplete = jsonDecoder.decodeString(jsonPath + ".docComplete", json[" docComplete"]);
9378 } 9396 }
9379 String declaringType; 9397 String declaringType;
9380 if (json.containsKey("declaringType")) { 9398 if (json.containsKey("declaringType")) {
9381 declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", js on["declaringType"]); 9399 declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", js on["declaringType"]);
9382 } 9400 }
9401 String defaultArgumentListString;
9402 if (json.containsKey("defaultArgumentListString")) {
9403 defaultArgumentListString = jsonDecoder.decodeString(jsonPath + ".defaul tArgumentListString", json["defaultArgumentListString"]);
9404 }
9383 Element element; 9405 Element element;
9384 if (json.containsKey("element")) { 9406 if (json.containsKey("element")) {
9385 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]); 9407 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]);
9386 } 9408 }
9387 String returnType; 9409 String returnType;
9388 if (json.containsKey("returnType")) { 9410 if (json.containsKey("returnType")) {
9389 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re turnType"]); 9411 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re turnType"]);
9390 } 9412 }
9391 List<String> parameterNames; 9413 List<String> parameterNames;
9392 if (json.containsKey("parameterNames")) { 9414 if (json.containsKey("parameterNames")) {
(...skipping 16 matching lines...) Expand all
9409 parameterName = jsonDecoder.decodeString(jsonPath + ".parameterName", js on["parameterName"]); 9431 parameterName = jsonDecoder.decodeString(jsonPath + ".parameterName", js on["parameterName"]);
9410 } 9432 }
9411 String parameterType; 9433 String parameterType;
9412 if (json.containsKey("parameterType")) { 9434 if (json.containsKey("parameterType")) {
9413 parameterType = jsonDecoder.decodeString(jsonPath + ".parameterType", js on["parameterType"]); 9435 parameterType = jsonDecoder.decodeString(jsonPath + ".parameterType", js on["parameterType"]);
9414 } 9436 }
9415 String importUri; 9437 String importUri;
9416 if (json.containsKey("importUri")) { 9438 if (json.containsKey("importUri")) {
9417 importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["impo rtUri"]); 9439 importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["impo rtUri"]);
9418 } 9440 }
9419 return new CompletionSuggestion(kind, relevance, completion, selectionOffs et, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docCompl ete: docComplete, declaringType: declaringType, element: element, returnType: re turnType, parameterNames: parameterNames, parameterTypes: parameterTypes, requir edParameterCount: requiredParameterCount, hasNamedParameters: hasNamedParameters , parameterName: parameterName, parameterType: parameterType, importUri: importU ri); 9441 return new CompletionSuggestion(kind, relevance, completion, selectionOffs et, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docCompl ete: docComplete, declaringType: declaringType, defaultArgumentListString: defau ltArgumentListString, element: element, returnType: returnType, parameterNames: parameterNames, parameterTypes: parameterTypes, requiredParameterCount: required ParameterCount, hasNamedParameters: hasNamedParameters, parameterName: parameter Name, parameterType: parameterType, importUri: importUri);
9420 } else { 9442 } else {
9421 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); 9443 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json);
9422 } 9444 }
9423 } 9445 }
9424 9446
9425 Map<String, dynamic> toJson() { 9447 Map<String, dynamic> toJson() {
9426 Map<String, dynamic> result = {}; 9448 Map<String, dynamic> result = {};
9427 result["kind"] = kind.toJson(); 9449 result["kind"] = kind.toJson();
9428 result["relevance"] = relevance; 9450 result["relevance"] = relevance;
9429 result["completion"] = completion; 9451 result["completion"] = completion;
9430 result["selectionOffset"] = selectionOffset; 9452 result["selectionOffset"] = selectionOffset;
9431 result["selectionLength"] = selectionLength; 9453 result["selectionLength"] = selectionLength;
9432 result["isDeprecated"] = isDeprecated; 9454 result["isDeprecated"] = isDeprecated;
9433 result["isPotential"] = isPotential; 9455 result["isPotential"] = isPotential;
9434 if (docSummary != null) { 9456 if (docSummary != null) {
9435 result["docSummary"] = docSummary; 9457 result["docSummary"] = docSummary;
9436 } 9458 }
9437 if (docComplete != null) { 9459 if (docComplete != null) {
9438 result["docComplete"] = docComplete; 9460 result["docComplete"] = docComplete;
9439 } 9461 }
9440 if (declaringType != null) { 9462 if (declaringType != null) {
9441 result["declaringType"] = declaringType; 9463 result["declaringType"] = declaringType;
9442 } 9464 }
9465 if (defaultArgumentListString != null) {
9466 result["defaultArgumentListString"] = defaultArgumentListString;
9467 }
9443 if (element != null) { 9468 if (element != null) {
9444 result["element"] = element.toJson(); 9469 result["element"] = element.toJson();
9445 } 9470 }
9446 if (returnType != null) { 9471 if (returnType != null) {
9447 result["returnType"] = returnType; 9472 result["returnType"] = returnType;
9448 } 9473 }
9449 if (parameterNames != null) { 9474 if (parameterNames != null) {
9450 result["parameterNames"] = parameterNames; 9475 result["parameterNames"] = parameterNames;
9451 } 9476 }
9452 if (parameterTypes != null) { 9477 if (parameterTypes != null) {
(...skipping 26 matching lines...) Expand all
9479 return kind == other.kind && 9504 return kind == other.kind &&
9480 relevance == other.relevance && 9505 relevance == other.relevance &&
9481 completion == other.completion && 9506 completion == other.completion &&
9482 selectionOffset == other.selectionOffset && 9507 selectionOffset == other.selectionOffset &&
9483 selectionLength == other.selectionLength && 9508 selectionLength == other.selectionLength &&
9484 isDeprecated == other.isDeprecated && 9509 isDeprecated == other.isDeprecated &&
9485 isPotential == other.isPotential && 9510 isPotential == other.isPotential &&
9486 docSummary == other.docSummary && 9511 docSummary == other.docSummary &&
9487 docComplete == other.docComplete && 9512 docComplete == other.docComplete &&
9488 declaringType == other.declaringType && 9513 declaringType == other.declaringType &&
9514 defaultArgumentListString == other.defaultArgumentListString &&
9489 element == other.element && 9515 element == other.element &&
9490 returnType == other.returnType && 9516 returnType == other.returnType &&
9491 listEqual(parameterNames, other.parameterNames, (String a, String b) = > a == b) && 9517 listEqual(parameterNames, other.parameterNames, (String a, String b) = > a == b) &&
9492 listEqual(parameterTypes, other.parameterTypes, (String a, String b) = > a == b) && 9518 listEqual(parameterTypes, other.parameterTypes, (String a, String b) = > a == b) &&
9493 requiredParameterCount == other.requiredParameterCount && 9519 requiredParameterCount == other.requiredParameterCount &&
9494 hasNamedParameters == other.hasNamedParameters && 9520 hasNamedParameters == other.hasNamedParameters &&
9495 parameterName == other.parameterName && 9521 parameterName == other.parameterName &&
9496 parameterType == other.parameterType && 9522 parameterType == other.parameterType &&
9497 importUri == other.importUri; 9523 importUri == other.importUri;
9498 } 9524 }
9499 return false; 9525 return false;
9500 } 9526 }
9501 9527
9502 @override 9528 @override
9503 int get hashCode { 9529 int get hashCode {
9504 int hash = 0; 9530 int hash = 0;
9505 hash = JenkinsSmiHash.combine(hash, kind.hashCode); 9531 hash = JenkinsSmiHash.combine(hash, kind.hashCode);
9506 hash = JenkinsSmiHash.combine(hash, relevance.hashCode); 9532 hash = JenkinsSmiHash.combine(hash, relevance.hashCode);
9507 hash = JenkinsSmiHash.combine(hash, completion.hashCode); 9533 hash = JenkinsSmiHash.combine(hash, completion.hashCode);
9508 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode); 9534 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode);
9509 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode); 9535 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode);
9510 hash = JenkinsSmiHash.combine(hash, isDeprecated.hashCode); 9536 hash = JenkinsSmiHash.combine(hash, isDeprecated.hashCode);
9511 hash = JenkinsSmiHash.combine(hash, isPotential.hashCode); 9537 hash = JenkinsSmiHash.combine(hash, isPotential.hashCode);
9512 hash = JenkinsSmiHash.combine(hash, docSummary.hashCode); 9538 hash = JenkinsSmiHash.combine(hash, docSummary.hashCode);
9513 hash = JenkinsSmiHash.combine(hash, docComplete.hashCode); 9539 hash = JenkinsSmiHash.combine(hash, docComplete.hashCode);
9514 hash = JenkinsSmiHash.combine(hash, declaringType.hashCode); 9540 hash = JenkinsSmiHash.combine(hash, declaringType.hashCode);
9541 hash = JenkinsSmiHash.combine(hash, defaultArgumentListString.hashCode);
9515 hash = JenkinsSmiHash.combine(hash, element.hashCode); 9542 hash = JenkinsSmiHash.combine(hash, element.hashCode);
9516 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); 9543 hash = JenkinsSmiHash.combine(hash, returnType.hashCode);
9517 hash = JenkinsSmiHash.combine(hash, parameterNames.hashCode); 9544 hash = JenkinsSmiHash.combine(hash, parameterNames.hashCode);
9518 hash = JenkinsSmiHash.combine(hash, parameterTypes.hashCode); 9545 hash = JenkinsSmiHash.combine(hash, parameterTypes.hashCode);
9519 hash = JenkinsSmiHash.combine(hash, requiredParameterCount.hashCode); 9546 hash = JenkinsSmiHash.combine(hash, requiredParameterCount.hashCode);
9520 hash = JenkinsSmiHash.combine(hash, hasNamedParameters.hashCode); 9547 hash = JenkinsSmiHash.combine(hash, hasNamedParameters.hashCode);
9521 hash = JenkinsSmiHash.combine(hash, parameterName.hashCode); 9548 hash = JenkinsSmiHash.combine(hash, parameterName.hashCode);
9522 hash = JenkinsSmiHash.combine(hash, parameterType.hashCode); 9549 hash = JenkinsSmiHash.combine(hash, parameterType.hashCode);
9523 hash = JenkinsSmiHash.combine(hash, importUri.hashCode); 9550 hash = JenkinsSmiHash.combine(hash, importUri.hashCode);
9524 return JenkinsSmiHash.finish(hash); 9551 return JenkinsSmiHash.finish(hash);
(...skipping 7621 matching lines...) Expand 10 before | Expand all | Expand 10 after
17146 return false; 17173 return false;
17147 } 17174 }
17148 17175
17149 @override 17176 @override
17150 int get hashCode { 17177 int get hashCode {
17151 int hash = 0; 17178 int hash = 0;
17152 hash = JenkinsSmiHash.combine(hash, newName.hashCode); 17179 hash = JenkinsSmiHash.combine(hash, newName.hashCode);
17153 return JenkinsSmiHash.finish(hash); 17180 return JenkinsSmiHash.finish(hash);
17154 } 17181 }
17155 } 17182 }
OLDNEW
« 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