OLD | NEW |
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 Loading... |
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 Loading... |
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 Loading... |
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. For example, given an argument list string 'x, |
| 9196 * y', the corresponding text range [0, 1, 3, 1], indicates two text ranges |
| 9197 * of length 1, starting at offsets 0 and 3. Clients can use these ranges to |
| 9198 * treat the 'x' and 'y' values specially for linked edits. |
| 9199 */ |
| 9200 List<int> get defaultArgumentListTextRanges => _defaultArgumentListTextRanges; |
| 9201 |
| 9202 /** |
| 9203 * Pairs of offsets and lengths describing 'defaultArgumentListString' text |
| 9204 * ranges suitable for use by clients to set up linked edits of default |
| 9205 * argument source contents. For example, given an argument list string 'x, |
| 9206 * y', the corresponding text range [0, 1, 3, 1], indicates two text ranges |
| 9207 * of length 1, starting at offsets 0 and 3. Clients can use these ranges to |
| 9208 * treat the 'x' and 'y' values specially for linked edits. |
| 9209 */ |
| 9210 void set defaultArgumentListTextRanges(List<int> value) { |
| 9211 this._defaultArgumentListTextRanges = value; |
| 9212 } |
| 9213 |
| 9214 /** |
9190 * Information about the element reference being suggested. | 9215 * Information about the element reference being suggested. |
9191 */ | 9216 */ |
9192 Element get element => _element; | 9217 Element get element => _element; |
9193 | 9218 |
9194 /** | 9219 /** |
9195 * Information about the element reference being suggested. | 9220 * Information about the element reference being suggested. |
9196 */ | 9221 */ |
9197 void set element(Element value) { | 9222 void set element(Element value) { |
9198 this._element = value; | 9223 this._element = value; |
9199 } | 9224 } |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9309 String get importUri => _importUri; | 9334 String get importUri => _importUri; |
9310 | 9335 |
9311 /** | 9336 /** |
9312 * The import to be added if the suggestion is out of scope and needs an | 9337 * The import to be added if the suggestion is out of scope and needs an |
9313 * import to be added to be in scope. | 9338 * import to be added to be in scope. |
9314 */ | 9339 */ |
9315 void set importUri(String value) { | 9340 void set importUri(String value) { |
9316 this._importUri = value; | 9341 this._importUri = value; |
9317 } | 9342 } |
9318 | 9343 |
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}) { | 9344 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; | 9345 this.kind = kind; |
9321 this.relevance = relevance; | 9346 this.relevance = relevance; |
9322 this.completion = completion; | 9347 this.completion = completion; |
9323 this.selectionOffset = selectionOffset; | 9348 this.selectionOffset = selectionOffset; |
9324 this.selectionLength = selectionLength; | 9349 this.selectionLength = selectionLength; |
9325 this.isDeprecated = isDeprecated; | 9350 this.isDeprecated = isDeprecated; |
9326 this.isPotential = isPotential; | 9351 this.isPotential = isPotential; |
9327 this.docSummary = docSummary; | 9352 this.docSummary = docSummary; |
9328 this.docComplete = docComplete; | 9353 this.docComplete = docComplete; |
9329 this.declaringType = declaringType; | 9354 this.declaringType = declaringType; |
9330 this.defaultArgumentListString = defaultArgumentListString; | 9355 this.defaultArgumentListString = defaultArgumentListString; |
| 9356 this.defaultArgumentListTextRanges = defaultArgumentListTextRanges; |
9331 this.element = element; | 9357 this.element = element; |
9332 this.returnType = returnType; | 9358 this.returnType = returnType; |
9333 this.parameterNames = parameterNames; | 9359 this.parameterNames = parameterNames; |
9334 this.parameterTypes = parameterTypes; | 9360 this.parameterTypes = parameterTypes; |
9335 this.requiredParameterCount = requiredParameterCount; | 9361 this.requiredParameterCount = requiredParameterCount; |
9336 this.hasNamedParameters = hasNamedParameters; | 9362 this.hasNamedParameters = hasNamedParameters; |
9337 this.parameterName = parameterName; | 9363 this.parameterName = parameterName; |
9338 this.parameterType = parameterType; | 9364 this.parameterType = parameterType; |
9339 this.importUri = importUri; | 9365 this.importUri = importUri; |
9340 } | 9366 } |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9395 docComplete = jsonDecoder.decodeString(jsonPath + ".docComplete", json["
docComplete"]); | 9421 docComplete = jsonDecoder.decodeString(jsonPath + ".docComplete", json["
docComplete"]); |
9396 } | 9422 } |
9397 String declaringType; | 9423 String declaringType; |
9398 if (json.containsKey("declaringType")) { | 9424 if (json.containsKey("declaringType")) { |
9399 declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", js
on["declaringType"]); | 9425 declaringType = jsonDecoder.decodeString(jsonPath + ".declaringType", js
on["declaringType"]); |
9400 } | 9426 } |
9401 String defaultArgumentListString; | 9427 String defaultArgumentListString; |
9402 if (json.containsKey("defaultArgumentListString")) { | 9428 if (json.containsKey("defaultArgumentListString")) { |
9403 defaultArgumentListString = jsonDecoder.decodeString(jsonPath + ".defaul
tArgumentListString", json["defaultArgumentListString"]); | 9429 defaultArgumentListString = jsonDecoder.decodeString(jsonPath + ".defaul
tArgumentListString", json["defaultArgumentListString"]); |
9404 } | 9430 } |
| 9431 List<int> defaultArgumentListTextRanges; |
| 9432 if (json.containsKey("defaultArgumentListTextRanges")) { |
| 9433 defaultArgumentListTextRanges = jsonDecoder.decodeList(jsonPath + ".defa
ultArgumentListTextRanges", json["defaultArgumentListTextRanges"], jsonDecoder.d
ecodeInt); |
| 9434 } |
9405 Element element; | 9435 Element element; |
9406 if (json.containsKey("element")) { | 9436 if (json.containsKey("element")) { |
9407 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); | 9437 element = new Element.fromJson(jsonDecoder, jsonPath + ".element", json[
"element"]); |
9408 } | 9438 } |
9409 String returnType; | 9439 String returnType; |
9410 if (json.containsKey("returnType")) { | 9440 if (json.containsKey("returnType")) { |
9411 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); | 9441 returnType = jsonDecoder.decodeString(jsonPath + ".returnType", json["re
turnType"]); |
9412 } | 9442 } |
9413 List<String> parameterNames; | 9443 List<String> parameterNames; |
9414 if (json.containsKey("parameterNames")) { | 9444 if (json.containsKey("parameterNames")) { |
(...skipping 16 matching lines...) Expand all Loading... |
9431 parameterName = jsonDecoder.decodeString(jsonPath + ".parameterName", js
on["parameterName"]); | 9461 parameterName = jsonDecoder.decodeString(jsonPath + ".parameterName", js
on["parameterName"]); |
9432 } | 9462 } |
9433 String parameterType; | 9463 String parameterType; |
9434 if (json.containsKey("parameterType")) { | 9464 if (json.containsKey("parameterType")) { |
9435 parameterType = jsonDecoder.decodeString(jsonPath + ".parameterType", js
on["parameterType"]); | 9465 parameterType = jsonDecoder.decodeString(jsonPath + ".parameterType", js
on["parameterType"]); |
9436 } | 9466 } |
9437 String importUri; | 9467 String importUri; |
9438 if (json.containsKey("importUri")) { | 9468 if (json.containsKey("importUri")) { |
9439 importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["impo
rtUri"]); | 9469 importUri = jsonDecoder.decodeString(jsonPath + ".importUri", json["impo
rtUri"]); |
9440 } | 9470 } |
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); | 9471 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 { | 9472 } else { |
9443 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); | 9473 throw jsonDecoder.mismatch(jsonPath, "CompletionSuggestion", json); |
9444 } | 9474 } |
9445 } | 9475 } |
9446 | 9476 |
9447 Map<String, dynamic> toJson() { | 9477 Map<String, dynamic> toJson() { |
9448 Map<String, dynamic> result = {}; | 9478 Map<String, dynamic> result = {}; |
9449 result["kind"] = kind.toJson(); | 9479 result["kind"] = kind.toJson(); |
9450 result["relevance"] = relevance; | 9480 result["relevance"] = relevance; |
9451 result["completion"] = completion; | 9481 result["completion"] = completion; |
9452 result["selectionOffset"] = selectionOffset; | 9482 result["selectionOffset"] = selectionOffset; |
9453 result["selectionLength"] = selectionLength; | 9483 result["selectionLength"] = selectionLength; |
9454 result["isDeprecated"] = isDeprecated; | 9484 result["isDeprecated"] = isDeprecated; |
9455 result["isPotential"] = isPotential; | 9485 result["isPotential"] = isPotential; |
9456 if (docSummary != null) { | 9486 if (docSummary != null) { |
9457 result["docSummary"] = docSummary; | 9487 result["docSummary"] = docSummary; |
9458 } | 9488 } |
9459 if (docComplete != null) { | 9489 if (docComplete != null) { |
9460 result["docComplete"] = docComplete; | 9490 result["docComplete"] = docComplete; |
9461 } | 9491 } |
9462 if (declaringType != null) { | 9492 if (declaringType != null) { |
9463 result["declaringType"] = declaringType; | 9493 result["declaringType"] = declaringType; |
9464 } | 9494 } |
9465 if (defaultArgumentListString != null) { | 9495 if (defaultArgumentListString != null) { |
9466 result["defaultArgumentListString"] = defaultArgumentListString; | 9496 result["defaultArgumentListString"] = defaultArgumentListString; |
9467 } | 9497 } |
| 9498 if (defaultArgumentListTextRanges != null) { |
| 9499 result["defaultArgumentListTextRanges"] = defaultArgumentListTextRanges; |
| 9500 } |
9468 if (element != null) { | 9501 if (element != null) { |
9469 result["element"] = element.toJson(); | 9502 result["element"] = element.toJson(); |
9470 } | 9503 } |
9471 if (returnType != null) { | 9504 if (returnType != null) { |
9472 result["returnType"] = returnType; | 9505 result["returnType"] = returnType; |
9473 } | 9506 } |
9474 if (parameterNames != null) { | 9507 if (parameterNames != null) { |
9475 result["parameterNames"] = parameterNames; | 9508 result["parameterNames"] = parameterNames; |
9476 } | 9509 } |
9477 if (parameterTypes != null) { | 9510 if (parameterTypes != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
9505 relevance == other.relevance && | 9538 relevance == other.relevance && |
9506 completion == other.completion && | 9539 completion == other.completion && |
9507 selectionOffset == other.selectionOffset && | 9540 selectionOffset == other.selectionOffset && |
9508 selectionLength == other.selectionLength && | 9541 selectionLength == other.selectionLength && |
9509 isDeprecated == other.isDeprecated && | 9542 isDeprecated == other.isDeprecated && |
9510 isPotential == other.isPotential && | 9543 isPotential == other.isPotential && |
9511 docSummary == other.docSummary && | 9544 docSummary == other.docSummary && |
9512 docComplete == other.docComplete && | 9545 docComplete == other.docComplete && |
9513 declaringType == other.declaringType && | 9546 declaringType == other.declaringType && |
9514 defaultArgumentListString == other.defaultArgumentListString && | 9547 defaultArgumentListString == other.defaultArgumentListString && |
| 9548 listEqual(defaultArgumentListTextRanges, other.defaultArgumentListText
Ranges, (int a, int b) => a == b) && |
9515 element == other.element && | 9549 element == other.element && |
9516 returnType == other.returnType && | 9550 returnType == other.returnType && |
9517 listEqual(parameterNames, other.parameterNames, (String a, String b) =
> a == b) && | 9551 listEqual(parameterNames, other.parameterNames, (String a, String b) =
> a == b) && |
9518 listEqual(parameterTypes, other.parameterTypes, (String a, String b) =
> a == b) && | 9552 listEqual(parameterTypes, other.parameterTypes, (String a, String b) =
> a == b) && |
9519 requiredParameterCount == other.requiredParameterCount && | 9553 requiredParameterCount == other.requiredParameterCount && |
9520 hasNamedParameters == other.hasNamedParameters && | 9554 hasNamedParameters == other.hasNamedParameters && |
9521 parameterName == other.parameterName && | 9555 parameterName == other.parameterName && |
9522 parameterType == other.parameterType && | 9556 parameterType == other.parameterType && |
9523 importUri == other.importUri; | 9557 importUri == other.importUri; |
9524 } | 9558 } |
9525 return false; | 9559 return false; |
9526 } | 9560 } |
9527 | 9561 |
9528 @override | 9562 @override |
9529 int get hashCode { | 9563 int get hashCode { |
9530 int hash = 0; | 9564 int hash = 0; |
9531 hash = JenkinsSmiHash.combine(hash, kind.hashCode); | 9565 hash = JenkinsSmiHash.combine(hash, kind.hashCode); |
9532 hash = JenkinsSmiHash.combine(hash, relevance.hashCode); | 9566 hash = JenkinsSmiHash.combine(hash, relevance.hashCode); |
9533 hash = JenkinsSmiHash.combine(hash, completion.hashCode); | 9567 hash = JenkinsSmiHash.combine(hash, completion.hashCode); |
9534 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode); | 9568 hash = JenkinsSmiHash.combine(hash, selectionOffset.hashCode); |
9535 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode); | 9569 hash = JenkinsSmiHash.combine(hash, selectionLength.hashCode); |
9536 hash = JenkinsSmiHash.combine(hash, isDeprecated.hashCode); | 9570 hash = JenkinsSmiHash.combine(hash, isDeprecated.hashCode); |
9537 hash = JenkinsSmiHash.combine(hash, isPotential.hashCode); | 9571 hash = JenkinsSmiHash.combine(hash, isPotential.hashCode); |
9538 hash = JenkinsSmiHash.combine(hash, docSummary.hashCode); | 9572 hash = JenkinsSmiHash.combine(hash, docSummary.hashCode); |
9539 hash = JenkinsSmiHash.combine(hash, docComplete.hashCode); | 9573 hash = JenkinsSmiHash.combine(hash, docComplete.hashCode); |
9540 hash = JenkinsSmiHash.combine(hash, declaringType.hashCode); | 9574 hash = JenkinsSmiHash.combine(hash, declaringType.hashCode); |
9541 hash = JenkinsSmiHash.combine(hash, defaultArgumentListString.hashCode); | 9575 hash = JenkinsSmiHash.combine(hash, defaultArgumentListString.hashCode); |
| 9576 hash = JenkinsSmiHash.combine(hash, defaultArgumentListTextRanges.hashCode); |
9542 hash = JenkinsSmiHash.combine(hash, element.hashCode); | 9577 hash = JenkinsSmiHash.combine(hash, element.hashCode); |
9543 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); | 9578 hash = JenkinsSmiHash.combine(hash, returnType.hashCode); |
9544 hash = JenkinsSmiHash.combine(hash, parameterNames.hashCode); | 9579 hash = JenkinsSmiHash.combine(hash, parameterNames.hashCode); |
9545 hash = JenkinsSmiHash.combine(hash, parameterTypes.hashCode); | 9580 hash = JenkinsSmiHash.combine(hash, parameterTypes.hashCode); |
9546 hash = JenkinsSmiHash.combine(hash, requiredParameterCount.hashCode); | 9581 hash = JenkinsSmiHash.combine(hash, requiredParameterCount.hashCode); |
9547 hash = JenkinsSmiHash.combine(hash, hasNamedParameters.hashCode); | 9582 hash = JenkinsSmiHash.combine(hash, hasNamedParameters.hashCode); |
9548 hash = JenkinsSmiHash.combine(hash, parameterName.hashCode); | 9583 hash = JenkinsSmiHash.combine(hash, parameterName.hashCode); |
9549 hash = JenkinsSmiHash.combine(hash, parameterType.hashCode); | 9584 hash = JenkinsSmiHash.combine(hash, parameterType.hashCode); |
9550 hash = JenkinsSmiHash.combine(hash, importUri.hashCode); | 9585 hash = JenkinsSmiHash.combine(hash, importUri.hashCode); |
9551 return JenkinsSmiHash.finish(hash); | 9586 return JenkinsSmiHash.finish(hash); |
(...skipping 7621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17173 return false; | 17208 return false; |
17174 } | 17209 } |
17175 | 17210 |
17176 @override | 17211 @override |
17177 int get hashCode { | 17212 int get hashCode { |
17178 int hash = 0; | 17213 int hash = 0; |
17179 hash = JenkinsSmiHash.combine(hash, newName.hashCode); | 17214 hash = JenkinsSmiHash.combine(hash, newName.hashCode); |
17180 return JenkinsSmiHash.finish(hash); | 17215 return JenkinsSmiHash.finish(hash); |
17181 } | 17216 } |
17182 } | 17217 } |
OLD | NEW |