| 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 protocol; | 9 part of protocol; |
| 10 /** | 10 /** |
| (...skipping 1498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1509 * "regions": List<NavigationRegion> | 1509 * "regions": List<NavigationRegion> |
| 1510 * } | 1510 * } |
| 1511 */ | 1511 */ |
| 1512 class AnalysisNavigationParams implements HasToJson { | 1512 class AnalysisNavigationParams implements HasToJson { |
| 1513 /** | 1513 /** |
| 1514 * The file containing the navigation regions. | 1514 * The file containing the navigation regions. |
| 1515 */ | 1515 */ |
| 1516 String file; | 1516 String file; |
| 1517 | 1517 |
| 1518 /** | 1518 /** |
| 1519 * The navigation regions contained in the file. Each navigation region | 1519 * The navigation regions contained in the file. The regions are sorted by |
| 1520 * represents a list of targets associated with some range. The lists will | 1520 * their offsets. Each navigation region represents a list of targets |
| 1521 * usually contain a single target, but can contain more in the case of a | 1521 * associated with some range. The lists will usually contain a single |
| 1522 * part that is included in multiple libraries or in Dart code that is | 1522 * target, but can contain more in the case of a part that is included in |
| 1523 * compiled against multiple versions of a package. Note that the navigation | 1523 * multiple libraries or in Dart code that is compiled against multiple |
| 1524 * regions that are returned do not overlap other navigation regions. | 1524 * versions of a package. Note that the navigation regions that are returned |
| 1525 * do not overlap other navigation regions. |
| 1525 */ | 1526 */ |
| 1526 List<NavigationRegion> regions; | 1527 List<NavigationRegion> regions; |
| 1527 | 1528 |
| 1528 AnalysisNavigationParams(this.file, this.regions); | 1529 AnalysisNavigationParams(this.file, this.regions); |
| 1529 | 1530 |
| 1530 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { | 1531 factory AnalysisNavigationParams.fromJson(JsonDecoder jsonDecoder, String json
Path, Object json) { |
| 1531 if (json == null) { | 1532 if (json == null) { |
| 1532 json = {}; | 1533 json = {}; |
| 1533 } | 1534 } |
| 1534 if (json is Map) { | 1535 if (json is Map) { |
| (...skipping 8698 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10233 return false; | 10234 return false; |
| 10234 } | 10235 } |
| 10235 | 10236 |
| 10236 @override | 10237 @override |
| 10237 int get hashCode { | 10238 int get hashCode { |
| 10238 int hash = 0; | 10239 int hash = 0; |
| 10239 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 10240 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 10240 return _JenkinsSmiHash.finish(hash); | 10241 return _JenkinsSmiHash.finish(hash); |
| 10241 } | 10242 } |
| 10242 } | 10243 } |
| OLD | NEW |