OLD | NEW |
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:convert' hide JsonDecoder; | 9 import 'dart:convert' hide JsonDecoder; |
10 | 10 |
(...skipping 11007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11018 hash = JenkinsSmiHash.combine(hash, length.hashCode); | 11018 hash = JenkinsSmiHash.combine(hash, length.hashCode); |
11019 return JenkinsSmiHash.finish(hash); | 11019 return JenkinsSmiHash.finish(hash); |
11020 } | 11020 } |
11021 } | 11021 } |
11022 | 11022 |
11023 /** | 11023 /** |
11024 * ImportedElements | 11024 * ImportedElements |
11025 * | 11025 * |
11026 * { | 11026 * { |
11027 * "path": FilePath | 11027 * "path": FilePath |
11028 * "uri": String | |
11029 * "prefix": String | 11028 * "prefix": String |
11030 * "elements": List<String> | 11029 * "elements": List<String> |
11031 * } | 11030 * } |
11032 * | 11031 * |
11033 * Clients may not extend, implement or mix-in this class. | 11032 * Clients may not extend, implement or mix-in this class. |
11034 */ | 11033 */ |
11035 class ImportedElements implements HasToJson { | 11034 class ImportedElements implements HasToJson { |
11036 String _path; | 11035 String _path; |
11037 | 11036 |
11038 String _uri; | |
11039 | |
11040 String _prefix; | 11037 String _prefix; |
11041 | 11038 |
11042 List<String> _elements; | 11039 List<String> _elements; |
11043 | 11040 |
11044 /** | 11041 /** |
11045 * The absolute and normalized path of the file containing the library. | 11042 * The absolute and normalized path of the file containing the library. |
11046 */ | 11043 */ |
11047 String get path => _path; | 11044 String get path => _path; |
11048 | 11045 |
11049 /** | 11046 /** |
11050 * The absolute and normalized path of the file containing the library. | 11047 * The absolute and normalized path of the file containing the library. |
11051 */ | 11048 */ |
11052 void set path(String value) { | 11049 void set path(String value) { |
11053 assert(value != null); | 11050 assert(value != null); |
11054 this._path = value; | 11051 this._path = value; |
11055 } | 11052 } |
11056 | 11053 |
11057 /** | 11054 /** |
11058 * The URI that was used when importing the library into the original source. | |
11059 */ | |
11060 String get uri => _uri; | |
11061 | |
11062 /** | |
11063 * The URI that was used when importing the library into the original source. | |
11064 */ | |
11065 void set uri(String value) { | |
11066 assert(value != null); | |
11067 this._uri = value; | |
11068 } | |
11069 | |
11070 /** | |
11071 * The prefix that was used when importing the library into the original | 11055 * The prefix that was used when importing the library into the original |
11072 * source. | 11056 * source. |
11073 */ | 11057 */ |
11074 String get prefix => _prefix; | 11058 String get prefix => _prefix; |
11075 | 11059 |
11076 /** | 11060 /** |
11077 * The prefix that was used when importing the library into the original | 11061 * The prefix that was used when importing the library into the original |
11078 * source. | 11062 * source. |
11079 */ | 11063 */ |
11080 void set prefix(String value) { | 11064 void set prefix(String value) { |
11081 assert(value != null); | 11065 assert(value != null); |
11082 this._prefix = value; | 11066 this._prefix = value; |
11083 } | 11067 } |
11084 | 11068 |
11085 /** | 11069 /** |
11086 * The names of the elements imported from the library. | 11070 * The names of the elements imported from the library. |
11087 */ | 11071 */ |
11088 List<String> get elements => _elements; | 11072 List<String> get elements => _elements; |
11089 | 11073 |
11090 /** | 11074 /** |
11091 * The names of the elements imported from the library. | 11075 * The names of the elements imported from the library. |
11092 */ | 11076 */ |
11093 void set elements(List<String> value) { | 11077 void set elements(List<String> value) { |
11094 assert(value != null); | 11078 assert(value != null); |
11095 this._elements = value; | 11079 this._elements = value; |
11096 } | 11080 } |
11097 | 11081 |
11098 ImportedElements( | 11082 ImportedElements(String path, String prefix, List<String> elements) { |
11099 String path, String uri, String prefix, List<String> elements) { | |
11100 this.path = path; | 11083 this.path = path; |
11101 this.uri = uri; | |
11102 this.prefix = prefix; | 11084 this.prefix = prefix; |
11103 this.elements = elements; | 11085 this.elements = elements; |
11104 } | 11086 } |
11105 | 11087 |
11106 factory ImportedElements.fromJson( | 11088 factory ImportedElements.fromJson( |
11107 JsonDecoder jsonDecoder, String jsonPath, Object json) { | 11089 JsonDecoder jsonDecoder, String jsonPath, Object json) { |
11108 if (json == null) { | 11090 if (json == null) { |
11109 json = {}; | 11091 json = {}; |
11110 } | 11092 } |
11111 if (json is Map) { | 11093 if (json is Map) { |
11112 String path; | 11094 String path; |
11113 if (json.containsKey("path")) { | 11095 if (json.containsKey("path")) { |
11114 path = jsonDecoder.decodeString(jsonPath + ".path", json["path"]); | 11096 path = jsonDecoder.decodeString(jsonPath + ".path", json["path"]); |
11115 } else { | 11097 } else { |
11116 throw jsonDecoder.mismatch(jsonPath, "path"); | 11098 throw jsonDecoder.mismatch(jsonPath, "path"); |
11117 } | 11099 } |
11118 String uri; | |
11119 if (json.containsKey("uri")) { | |
11120 uri = jsonDecoder.decodeString(jsonPath + ".uri", json["uri"]); | |
11121 } else { | |
11122 throw jsonDecoder.mismatch(jsonPath, "uri"); | |
11123 } | |
11124 String prefix; | 11100 String prefix; |
11125 if (json.containsKey("prefix")) { | 11101 if (json.containsKey("prefix")) { |
11126 prefix = jsonDecoder.decodeString(jsonPath + ".prefix", json["prefix"]); | 11102 prefix = jsonDecoder.decodeString(jsonPath + ".prefix", json["prefix"]); |
11127 } else { | 11103 } else { |
11128 throw jsonDecoder.mismatch(jsonPath, "prefix"); | 11104 throw jsonDecoder.mismatch(jsonPath, "prefix"); |
11129 } | 11105 } |
11130 List<String> elements; | 11106 List<String> elements; |
11131 if (json.containsKey("elements")) { | 11107 if (json.containsKey("elements")) { |
11132 elements = jsonDecoder.decodeList( | 11108 elements = jsonDecoder.decodeList( |
11133 jsonPath + ".elements", json["elements"], jsonDecoder.decodeString); | 11109 jsonPath + ".elements", json["elements"], jsonDecoder.decodeString); |
11134 } else { | 11110 } else { |
11135 throw jsonDecoder.mismatch(jsonPath, "elements"); | 11111 throw jsonDecoder.mismatch(jsonPath, "elements"); |
11136 } | 11112 } |
11137 return new ImportedElements(path, uri, prefix, elements); | 11113 return new ImportedElements(path, prefix, elements); |
11138 } else { | 11114 } else { |
11139 throw jsonDecoder.mismatch(jsonPath, "ImportedElements", json); | 11115 throw jsonDecoder.mismatch(jsonPath, "ImportedElements", json); |
11140 } | 11116 } |
11141 } | 11117 } |
11142 | 11118 |
11143 @override | 11119 @override |
11144 Map<String, dynamic> toJson() { | 11120 Map<String, dynamic> toJson() { |
11145 Map<String, dynamic> result = {}; | 11121 Map<String, dynamic> result = {}; |
11146 result["path"] = path; | 11122 result["path"] = path; |
11147 result["uri"] = uri; | |
11148 result["prefix"] = prefix; | 11123 result["prefix"] = prefix; |
11149 result["elements"] = elements; | 11124 result["elements"] = elements; |
11150 return result; | 11125 return result; |
11151 } | 11126 } |
11152 | 11127 |
11153 @override | 11128 @override |
11154 String toString() => JSON.encode(toJson()); | 11129 String toString() => JSON.encode(toJson()); |
11155 | 11130 |
11156 @override | 11131 @override |
11157 bool operator ==(other) { | 11132 bool operator ==(other) { |
11158 if (other is ImportedElements) { | 11133 if (other is ImportedElements) { |
11159 return path == other.path && | 11134 return path == other.path && |
11160 uri == other.uri && | |
11161 prefix == other.prefix && | 11135 prefix == other.prefix && |
11162 listEqual(elements, other.elements, (String a, String b) => a == b); | 11136 listEqual(elements, other.elements, (String a, String b) => a == b); |
11163 } | 11137 } |
11164 return false; | 11138 return false; |
11165 } | 11139 } |
11166 | 11140 |
11167 @override | 11141 @override |
11168 int get hashCode { | 11142 int get hashCode { |
11169 int hash = 0; | 11143 int hash = 0; |
11170 hash = JenkinsSmiHash.combine(hash, path.hashCode); | 11144 hash = JenkinsSmiHash.combine(hash, path.hashCode); |
11171 hash = JenkinsSmiHash.combine(hash, uri.hashCode); | |
11172 hash = JenkinsSmiHash.combine(hash, prefix.hashCode); | 11145 hash = JenkinsSmiHash.combine(hash, prefix.hashCode); |
11173 hash = JenkinsSmiHash.combine(hash, elements.hashCode); | 11146 hash = JenkinsSmiHash.combine(hash, elements.hashCode); |
11174 return JenkinsSmiHash.finish(hash); | 11147 return JenkinsSmiHash.finish(hash); |
11175 } | 11148 } |
11176 } | 11149 } |
11177 | 11150 |
11178 /** | 11151 /** |
11179 * inlineLocalVariable feedback | 11152 * inlineLocalVariable feedback |
11180 * | 11153 * |
11181 * { | 11154 * { |
(...skipping 4154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15336 hash = JenkinsSmiHash.combine(hash, classElement.hashCode); | 15309 hash = JenkinsSmiHash.combine(hash, classElement.hashCode); |
15337 hash = JenkinsSmiHash.combine(hash, displayName.hashCode); | 15310 hash = JenkinsSmiHash.combine(hash, displayName.hashCode); |
15338 hash = JenkinsSmiHash.combine(hash, memberElement.hashCode); | 15311 hash = JenkinsSmiHash.combine(hash, memberElement.hashCode); |
15339 hash = JenkinsSmiHash.combine(hash, superclass.hashCode); | 15312 hash = JenkinsSmiHash.combine(hash, superclass.hashCode); |
15340 hash = JenkinsSmiHash.combine(hash, interfaces.hashCode); | 15313 hash = JenkinsSmiHash.combine(hash, interfaces.hashCode); |
15341 hash = JenkinsSmiHash.combine(hash, mixins.hashCode); | 15314 hash = JenkinsSmiHash.combine(hash, mixins.hashCode); |
15342 hash = JenkinsSmiHash.combine(hash, subclasses.hashCode); | 15315 hash = JenkinsSmiHash.combine(hash, subclasses.hashCode); |
15343 return JenkinsSmiHash.finish(hash); | 15316 return JenkinsSmiHash.finish(hash); |
15344 } | 15317 } |
15345 } | 15318 } |
OLD | NEW |