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

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

Issue 2726923003: CompletionSuggestion API for arg list text ranges. (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 8953 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 * "defaultArgumentListString": optional String
8974 * "defaultArgumentListTextRanges": optional List<int>
8974 * "element": optional Element 8975 * "element": optional Element
8975 * "returnType": optional String 8976 * "returnType": optional String
8976 * "parameterNames": optional List<String> 8977 * "parameterNames": optional List<String>
8977 * "parameterTypes": optional List<String> 8978 * "parameterTypes": optional List<String>
8978 * "requiredParameterCount": optional int 8979 * "requiredParameterCount": optional int
8979 * "hasNamedParameters": optional bool 8980 * "hasNamedParameters": optional bool
8980 * "parameterName": optional String 8981 * "parameterName": optional String
8981 * "parameterType": optional String 8982 * "parameterType": optional String
8982 * "importUri": optional String 8983 * "importUri": optional String
8983 * } 8984 * }
(...skipping 16 matching lines...) Expand all
9000 bool _isPotential; 9001 bool _isPotential;
9001 9002
9002 String _docSummary; 9003 String _docSummary;
9003 9004
9004 String _docComplete; 9005 String _docComplete;
9005 9006
9006 String _declaringType; 9007 String _declaringType;
9007 9008
9008 String _defaultArgumentListString; 9009 String _defaultArgumentListString;
9009 9010
9011 List<int> _defaultArgumentListTextRanges;
9012
9010 Element _element; 9013 Element _element;
9011 9014
9012 String _returnType; 9015 String _returnType;
9013 9016
9014 List<String> _parameterNames; 9017 List<String> _parameterNames;
9015 9018
9016 List<String> _parameterTypes; 9019 List<String> _parameterTypes;
9017 9020
9018 int _requiredParameterCount; 9021 int _requiredParameterCount;
9019 9022
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
9180 9183
9181 /** 9184 /**
9182 * A default String for use in generating argument list source contents on 9185 * A default String for use in generating argument list source contents on
9183 * the client side. 9186 * the client side.
9184 */ 9187 */
9185 void set defaultArgumentListString(String value) { 9188 void set defaultArgumentListString(String value) {
9186 this._defaultArgumentListString = value; 9189 this._defaultArgumentListString = value;
9187 } 9190 }
9188 9191
9189 /** 9192 /**
9193 * Pairs of offsets and lengths describing 'defaultArgumentListString' text
9194 * ranges suitable for use by clients to set up linked edits of default
9195 * argument source contents.
9196 */
9197 List<int> get defaultArgumentListTextRanges => _defaultArgumentListTextRanges;
9198
9199 /**
9200 * Pairs of offsets and lengths describing 'defaultArgumentListString' text
9201 * ranges suitable for use by clients to set up linked edits of default
9202 * argument source contents.
9203 */
9204 void set defaultArgumentListTextRanges(List<int> value) {
9205 this._defaultArgumentListTextRanges = value;
9206 }
9207
9208 /**
9190 * Information about the element reference being suggested. 9209 * Information about the element reference being suggested.
9191 */ 9210 */
9192 Element get element => _element; 9211 Element get element => _element;
9193 9212
9194 /** 9213 /**
9195 * Information about the element reference being suggested. 9214 * Information about the element reference being suggested.
9196 */ 9215 */
9197 void set element(Element value) { 9216 void set element(Element value) {
9198 this._element = value; 9217 this._element = value;
9199 } 9218 }
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
9309 String get importUri => _importUri; 9328 String get importUri => _importUri;
9310 9329
9311 /** 9330 /**
9312 * The import to be added if the suggestion is out of scope and needs an 9331 * The import to be added if the suggestion is out of scope and needs an
9313 * import to be added to be in scope. 9332 * import to be added to be in scope.
9314 */ 9333 */
9315 void set importUri(String value) { 9334 void set importUri(String value) {
9316 this._importUri = value; 9335 this._importUri = value;
9317 } 9336 }
9318 9337
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}) { 9338 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, List<int> defaultArgumentListTextRanges, Element element, String returnType, List<String> parameterNames, List<String> parameterTypes, in t requiredParameterCount, bool hasNamedParameters, String parameterName, String parameterType, String importUri}) {
9320 this.kind = kind; 9339 this.kind = kind;
9321 this.relevance = relevance; 9340 this.relevance = relevance;
9322 this.completion = completion; 9341 this.completion = completion;
9323 this.selectionOffset = selectionOffset; 9342 this.selectionOffset = selectionOffset;
9324 this.selectionLength = selectionLength; 9343 this.selectionLength = selectionLength;
9325 this.isDeprecated = isDeprecated; 9344 this.isDeprecated = isDeprecated;
9326 this.isPotential = isPotential; 9345 this.isPotential = isPotential;
9327 this.docSummary = docSummary; 9346 this.docSummary = docSummary;
9328 this.docComplete = docComplete; 9347 this.docComplete = docComplete;
9329 this.declaringType = declaringType; 9348 this.declaringType = declaringType;
9330 this.defaultArgumentListString = defaultArgumentListString; 9349 this.defaultArgumentListString = defaultArgumentListString;
9350 this.defaultArgumentListTextRanges = defaultArgumentListTextRanges;
9331 this.element = element; 9351 this.element = element;
9332 this.returnType = returnType; 9352 this.returnType = returnType;
9333 this.parameterNames = parameterNames; 9353 this.parameterNames = parameterNames;
9334 this.parameterTypes = parameterTypes; 9354 this.parameterTypes = parameterTypes;
9335 this.requiredParameterCount = requiredParameterCount; 9355 this.requiredParameterCount = requiredParameterCount;
9336 this.hasNamedParameters = hasNamedParameters; 9356 this.hasNamedParameters = hasNamedParameters;
9337 this.parameterName = parameterName; 9357 this.parameterName = parameterName;
9338 this.parameterType = parameterType; 9358 this.parameterType = parameterType;
9339 this.importUri = importUri; 9359 this.importUri = importUri;
9340 } 9360 }
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
9395 docComplete = jsonDecoder.decodeString(jsonPath + ".docComplete", json[" docComplete"]); 9415 docComplete = jsonDecoder.decodeString(jsonPath + ".docComplete", json[" docComplete"]);
9396 } 9416 }
9397 String declaringType; 9417 String declaringType;
9398 if (json.containsKey("declaringType")) { 9418 if (json.containsKey("declaringType")) {
9399 declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", js on["declaringType"]); 9419 declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", js on["declaringType"]);
9400 } 9420 }
9401 String defaultArgumentListString; 9421 String defaultArgumentListString;
9402 if (json.containsKey("defaultArgumentListString")) { 9422 if (json.containsKey("defaultArgumentListString")) {
9403 defaultArgumentListString = jsonDecoder.decodeString(jsonPath + ".defaul tArgumentListString", json["defaultArgumentListString"]); 9423 defaultArgumentListString = jsonDecoder.decodeString(jsonPath + ".defaul tArgumentListString", json["defaultArgumentListString"]);
9404 } 9424 }
9425 List<int> defaultArgumentListTextRanges;
9426 if (json.containsKey("defaultArgumentListTextRanges")) {
9427 defaultArgumentListTextRanges = jsonDecoder.decodeList(jsonPath + ".defa ultArgumentListTextRanges", json["defaultArgumentListTextRanges"], jsonDecoder.d ecodeInt);
9428 }
9405 Element element; 9429 Element element;
9406 if (json.containsKey("element")) { 9430 if (json.containsKey("element")) {
9407 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]); 9431 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[ "element"]);
9408 } 9432 }
9409 String returnType; 9433 String returnType;
9410 if (json.containsKey("returnType")) { 9434 if (json.containsKey("returnType")) {
9411 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re turnType"]); 9435 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re turnType"]);
9412 } 9436 }
9413 List<String> parameterNames; 9437 List<String> parameterNames;
9414 if (json.containsKey("parameterNames")) { 9438 if (json.containsKey("parameterNames")) {
(...skipping 16 matching lines...) Expand all
9431 parameterName = jsonDecoder.decodeString(jsonPath + ".parameterName", js on["parameterName"]); 9455 parameterName = jsonDecoder.decodeString(jsonPath + ".parameterName", js on["parameterName"]);
9432 } 9456 }
9433 String parameterType; 9457 String parameterType;
9434 if (json.containsKey("parameterType")) { 9458 if (json.containsKey("parameterType")) {
9435 parameterType = jsonDecoder.decodeString(jsonPath + ".parameterType", js on["parameterType"]); 9459 parameterType = jsonDecoder.decodeString(jsonPath + ".parameterType", js on["parameterType"]);
9436 } 9460 }
9437 String importUri; 9461 String importUri;
9438 if (json.containsKey("importUri")) { 9462 if (json.containsKey("importUri")) {
9439 importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["impo rtUri"]); 9463 importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["impo rtUri"]);
9440 } 9464 }
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); 9465 return new CompletionSuggestion(kind, relevance, completion, selectionOffs et, selectionLength, isDeprecated, isPotential, docSummary: docSummary, docCompl ete: docComplete, declaringType: declaringType, defaultArgumentListString: defau ltArgumentListString, defaultArgumentListTextRanges: defaultArgumentListTextRang es, element: element, returnType: returnType, parameterNames: parameterNames, pa rameterTypes: parameterTypes, requiredParameterCount: requiredParameterCount, ha sNamedParameters: hasNamedParameters, parameterName: parameterName, parameterTyp e: parameterType, importUri: importUri);
9442 } else { 9466 } else {
9443 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); 9467 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json);
9444 } 9468 }
9445 } 9469 }
9446 9470
9447 Map<String, dynamic> toJson() { 9471 Map<String, dynamic> toJson() {
9448 Map<String, dynamic> result = {}; 9472 Map<String, dynamic> result = {};
9449 result["kind"] = kind.toJson(); 9473 result["kind"] = kind.toJson();
9450 result["relevance"] = relevance; 9474 result["relevance"] = relevance;
9451 result["completion"] = completion; 9475 result["completion"] = completion;
9452 result["selectionOffset"] = selectionOffset; 9476 result["selectionOffset"] = selectionOffset;
9453 result["selectionLength"] = selectionLength; 9477 result["selectionLength"] = selectionLength;
9454 result["isDeprecated"] = isDeprecated; 9478 result["isDeprecated"] = isDeprecated;
9455 result["isPotential"] = isPotential; 9479 result["isPotential"] = isPotential;
9456 if (docSummary != null) { 9480 if (docSummary != null) {
9457 result["docSummary"] = docSummary; 9481 result["docSummary"] = docSummary;
9458 } 9482 }
9459 if (docComplete != null) { 9483 if (docComplete != null) {
9460 result["docComplete"] = docComplete; 9484 result["docComplete"] = docComplete;
9461 } 9485 }
9462 if (declaringType != null) { 9486 if (declaringType != null) {
9463 result["declaringType"] = declaringType; 9487 result["declaringType"] = declaringType;
9464 } 9488 }
9465 if (defaultArgumentListString != null) { 9489 if (defaultArgumentListString != null) {
9466 result["defaultArgumentListString"] = defaultArgumentListString; 9490 result["defaultArgumentListString"] = defaultArgumentListString;
9467 } 9491 }
9492 if (defaultArgumentListTextRanges != null) {
9493 result["defaultArgumentListTextRanges"] = defaultArgumentListTextRanges;
9494 }
9468 if (element != null) { 9495 if (element != null) {
9469 result["element"] = element.toJson(); 9496 result["element"] = element.toJson();
9470 } 9497 }
9471 if (returnType != null) { 9498 if (returnType != null) {
9472 result["returnType"] = returnType; 9499 result["returnType"] = returnType;
9473 } 9500 }
9474 if (parameterNames != null) { 9501 if (parameterNames != null) {
9475 result["parameterNames"] = parameterNames; 9502 result["parameterNames"] = parameterNames;
9476 } 9503 }
9477 if (parameterTypes != null) { 9504 if (parameterTypes != null) {
(...skipping 27 matching lines...) Expand all
9505 relevance == other.relevance && 9532 relevance == other.relevance &&
9506 completion == other.completion && 9533 completion == other.completion &&
9507 selectionOffset == other.selectionOffset && 9534 selectionOffset == other.selectionOffset &&
9508 selectionLength == other.selectionLength && 9535 selectionLength == other.selectionLength &&
9509 isDeprecated == other.isDeprecated && 9536 isDeprecated == other.isDeprecated &&
9510 isPotential == other.isPotential && 9537 isPotential == other.isPotential &&
9511 docSummary == other.docSummary && 9538 docSummary == other.docSummary &&
9512 docComplete == other.docComplete && 9539 docComplete == other.docComplete &&
9513 declaringType == other.declaringType && 9540 declaringType == other.declaringType &&
9514 defaultArgumentListString == other.defaultArgumentListString && 9541 defaultArgumentListString == other.defaultArgumentListString &&
9542 listEqual(defaultArgumentListTextRanges, other.defaultArgumentListText Ranges, (int a, int b) => a == b) &&
9515 element == other.element && 9543 element == other.element &&
9516 returnType == other.returnType && 9544 returnType == other.returnType &&
9517 listEqual(parameterNames, other.parameterNames, (String a, String b) = > a == b) && 9545 listEqual(parameterNames, other.parameterNames, (String a, String b) = > a == b) &&
9518 listEqual(parameterTypes, other.parameterTypes, (String a, String b) = > a == b) && 9546 listEqual(parameterTypes, other.parameterTypes, (String a, String b) = > a == b) &&
9519 requiredParameterCount == other.requiredParameterCount && 9547 requiredParameterCount == other.requiredParameterCount &&
9520 hasNamedParameters == other.hasNamedParameters && 9548 hasNamedParameters == other.hasNamedParameters &&
9521 parameterName == other.parameterName && 9549 parameterName == other.parameterName &&
9522 parameterType == other.parameterType && 9550 parameterType == other.parameterType &&
9523 importUri == other.importUri; 9551 importUri == other.importUri;
9524 } 9552 }
9525 return false; 9553 return false;
9526 } 9554 }
9527 9555
9528 @override 9556 @override
9529 int get hashCode { 9557 int get hashCode {
9530 int hash = 0; 9558 int hash = 0;
9531 hash = JenkinsSmiHash.combine(hash, kind.hashCode); 9559 hash = JenkinsSmiHash.combine(hash, kind.hashCode);
9532 hash = JenkinsSmiHash.combine(hash, relevance.hashCode); 9560 hash = JenkinsSmiHash.combine(hash, relevance.hashCode);
9533 hash = JenkinsSmiHash.combine(hash, completion.hashCode); 9561 hash = JenkinsSmiHash.combine(hash, completion.hashCode);
9534 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode); 9562 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode);
9535 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode); 9563 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode);
9536 hash = JenkinsSmiHash.combine(hash, isDeprecated.hashCode); 9564 hash = JenkinsSmiHash.combine(hash, isDeprecated.hashCode);
9537 hash = JenkinsSmiHash.combine(hash, isPotential.hashCode); 9565 hash = JenkinsSmiHash.combine(hash, isPotential.hashCode);
9538 hash = JenkinsSmiHash.combine(hash, docSummary.hashCode); 9566 hash = JenkinsSmiHash.combine(hash, docSummary.hashCode);
9539 hash = JenkinsSmiHash.combine(hash, docComplete.hashCode); 9567 hash = JenkinsSmiHash.combine(hash, docComplete.hashCode);
9540 hash = JenkinsSmiHash.combine(hash, declaringType.hashCode); 9568 hash = JenkinsSmiHash.combine(hash, declaringType.hashCode);
9541 hash = JenkinsSmiHash.combine(hash, defaultArgumentListString.hashCode); 9569 hash = JenkinsSmiHash.combine(hash, defaultArgumentListString.hashCode);
9570 hash = JenkinsSmiHash.combine(hash, defaultArgumentListTextRanges.hashCode);
9542 hash = JenkinsSmiHash.combine(hash, element.hashCode); 9571 hash = JenkinsSmiHash.combine(hash, element.hashCode);
9543 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); 9572 hash = JenkinsSmiHash.combine(hash, returnType.hashCode);
9544 hash = JenkinsSmiHash.combine(hash, parameterNames.hashCode); 9573 hash = JenkinsSmiHash.combine(hash, parameterNames.hashCode);
9545 hash = JenkinsSmiHash.combine(hash, parameterTypes.hashCode); 9574 hash = JenkinsSmiHash.combine(hash, parameterTypes.hashCode);
9546 hash = JenkinsSmiHash.combine(hash, requiredParameterCount.hashCode); 9575 hash = JenkinsSmiHash.combine(hash, requiredParameterCount.hashCode);
9547 hash = JenkinsSmiHash.combine(hash, hasNamedParameters.hashCode); 9576 hash = JenkinsSmiHash.combine(hash, hasNamedParameters.hashCode);
9548 hash = JenkinsSmiHash.combine(hash, parameterName.hashCode); 9577 hash = JenkinsSmiHash.combine(hash, parameterName.hashCode);
9549 hash = JenkinsSmiHash.combine(hash, parameterType.hashCode); 9578 hash = JenkinsSmiHash.combine(hash, parameterType.hashCode);
9550 hash = JenkinsSmiHash.combine(hash, importUri.hashCode); 9579 hash = JenkinsSmiHash.combine(hash, importUri.hashCode);
9551 return JenkinsSmiHash.finish(hash); 9580 return JenkinsSmiHash.finish(hash);
(...skipping 7621 matching lines...) Expand 10 before | Expand all | Expand 10 after
17173 return false; 17202 return false;
17174 } 17203 }
17175 17204
17176 @override 17205 @override
17177 int get hashCode { 17206 int get hashCode {
17178 int hash = 0; 17207 int hash = 0;
17179 hash = JenkinsSmiHash.combine(hash, newName.hashCode); 17208 hash = JenkinsSmiHash.combine(hash, newName.hashCode);
17180 return JenkinsSmiHash.finish(hash); 17209 return JenkinsSmiHash.finish(hash);
17181 } 17210 }
17182 } 17211 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698