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 3140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3151 hash = _JenkinsSmiHash.combine(hash, occurrences.hashCode); | 3151 hash = _JenkinsSmiHash.combine(hash, occurrences.hashCode); |
3152 return _JenkinsSmiHash.finish(hash); | 3152 return _JenkinsSmiHash.finish(hash); |
3153 } | 3153 } |
3154 } | 3154 } |
3155 | 3155 |
3156 /** | 3156 /** |
3157 * analysis.outline params | 3157 * analysis.outline params |
3158 * | 3158 * |
3159 * { | 3159 * { |
3160 * "file": FilePath | 3160 * "file": FilePath |
| 3161 * "libraryName": String |
3161 * "outline": Outline | 3162 * "outline": Outline |
| 3163 * "partOfLibraryName": String |
3162 * } | 3164 * } |
3163 */ | 3165 */ |
3164 class AnalysisOutlineParams implements HasToJson { | 3166 class AnalysisOutlineParams implements HasToJson { |
3165 String _file; | 3167 String _file; |
3166 | 3168 |
| 3169 String _libraryName; |
| 3170 |
3167 Outline _outline; | 3171 Outline _outline; |
3168 | 3172 |
| 3173 String _partOfLibraryName; |
| 3174 |
3169 /** | 3175 /** |
3170 * The file with which the outline is associated. | 3176 * The file with which the outline is associated. |
3171 */ | 3177 */ |
3172 String get file => _file; | 3178 String get file => _file; |
3173 | 3179 |
3174 /** | 3180 /** |
3175 * The file with which the outline is associated. | 3181 * The file with which the outline is associated. |
3176 */ | 3182 */ |
3177 void set file(String value) { | 3183 void set file(String value) { |
3178 assert(value != null); | 3184 assert(value != null); |
3179 this._file = value; | 3185 this._file = value; |
3180 } | 3186 } |
3181 | 3187 |
3182 /** | 3188 /** |
| 3189 * The name of the library defined by the file. |
| 3190 */ |
| 3191 String get libraryName => _libraryName; |
| 3192 |
| 3193 /** |
| 3194 * The name of the library defined by the file. |
| 3195 */ |
| 3196 void set libraryName(String value) { |
| 3197 assert(value != null); |
| 3198 this._libraryName = value; |
| 3199 } |
| 3200 |
| 3201 /** |
3183 * The outline associated with the file. | 3202 * The outline associated with the file. |
3184 */ | 3203 */ |
3185 Outline get outline => _outline; | 3204 Outline get outline => _outline; |
3186 | 3205 |
3187 /** | 3206 /** |
3188 * The outline associated with the file. | 3207 * The outline associated with the file. |
3189 */ | 3208 */ |
3190 void set outline(Outline value) { | 3209 void set outline(Outline value) { |
3191 assert(value != null); | 3210 assert(value != null); |
3192 this._outline = value; | 3211 this._outline = value; |
3193 } | 3212 } |
3194 | 3213 |
3195 AnalysisOutlineParams(String file, Outline outline) { | 3214 /** |
| 3215 * The name of the library the file in a part of. |
| 3216 */ |
| 3217 String get partOfLibraryName => _partOfLibraryName; |
| 3218 |
| 3219 /** |
| 3220 * The name of the library the file in a part of. |
| 3221 */ |
| 3222 void set partOfLibraryName(String value) { |
| 3223 assert(value != null); |
| 3224 this._partOfLibraryName = value; |
| 3225 } |
| 3226 |
| 3227 AnalysisOutlineParams(String file, String libraryName, Outline outline, String
partOfLibraryName) { |
3196 this.file = file; | 3228 this.file = file; |
| 3229 this.libraryName = libraryName; |
3197 this.outline = outline; | 3230 this.outline = outline; |
| 3231 this.partOfLibraryName = partOfLibraryName; |
3198 } | 3232 } |
3199 | 3233 |
3200 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { | 3234 factory AnalysisOutlineParams.fromJson(JsonDecoder jsonDecoder, String jsonPat
h, Object json) { |
3201 if (json == null) { | 3235 if (json == null) { |
3202 json = {}; | 3236 json = {}; |
3203 } | 3237 } |
3204 if (json is Map) { | 3238 if (json is Map) { |
3205 String file; | 3239 String file; |
3206 if (json.containsKey("file")) { | 3240 if (json.containsKey("file")) { |
3207 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); | 3241 file = jsonDecoder._decodeString(jsonPath + ".file", json["file"]); |
3208 } else { | 3242 } else { |
3209 throw jsonDecoder.missingKey(jsonPath, "file"); | 3243 throw jsonDecoder.missingKey(jsonPath, "file"); |
3210 } | 3244 } |
| 3245 String libraryName; |
| 3246 if (json.containsKey("libraryName")) { |
| 3247 libraryName = jsonDecoder._decodeString(jsonPath + ".libraryName", json[
"libraryName"]); |
| 3248 } else { |
| 3249 throw jsonDecoder.missingKey(jsonPath, "libraryName"); |
| 3250 } |
3211 Outline outline; | 3251 Outline outline; |
3212 if (json.containsKey("outline")) { | 3252 if (json.containsKey("outline")) { |
3213 outline = new Outline.fromJson(jsonDecoder, jsonPath + ".outline", json[
"outline"]); | 3253 outline = new Outline.fromJson(jsonDecoder, jsonPath + ".outline", json[
"outline"]); |
3214 } else { | 3254 } else { |
3215 throw jsonDecoder.missingKey(jsonPath, "outline"); | 3255 throw jsonDecoder.missingKey(jsonPath, "outline"); |
3216 } | 3256 } |
3217 return new AnalysisOutlineParams(file, outline); | 3257 String partOfLibraryName; |
| 3258 if (json.containsKey("partOfLibraryName")) { |
| 3259 partOfLibraryName = jsonDecoder._decodeString(jsonPath + ".partOfLibrary
Name", json["partOfLibraryName"]); |
| 3260 } else { |
| 3261 throw jsonDecoder.missingKey(jsonPath, "partOfLibraryName"); |
| 3262 } |
| 3263 return new AnalysisOutlineParams(file, libraryName, outline, partOfLibrary
Name); |
3218 } else { | 3264 } else { |
3219 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params", json); | 3265 throw jsonDecoder.mismatch(jsonPath, "analysis.outline params", json); |
3220 } | 3266 } |
3221 } | 3267 } |
3222 | 3268 |
3223 factory AnalysisOutlineParams.fromNotification(Notification notification) { | 3269 factory AnalysisOutlineParams.fromNotification(Notification notification) { |
3224 return new AnalysisOutlineParams.fromJson( | 3270 return new AnalysisOutlineParams.fromJson( |
3225 new ResponseDecoder(null), "params", notification._params); | 3271 new ResponseDecoder(null), "params", notification._params); |
3226 } | 3272 } |
3227 | 3273 |
3228 Map<String, dynamic> toJson() { | 3274 Map<String, dynamic> toJson() { |
3229 Map<String, dynamic> result = {}; | 3275 Map<String, dynamic> result = {}; |
3230 result["file"] = file; | 3276 result["file"] = file; |
| 3277 result["libraryName"] = libraryName; |
3231 result["outline"] = outline.toJson(); | 3278 result["outline"] = outline.toJson(); |
| 3279 result["partOfLibraryName"] = partOfLibraryName; |
3232 return result; | 3280 return result; |
3233 } | 3281 } |
3234 | 3282 |
3235 Notification toNotification() { | 3283 Notification toNotification() { |
3236 return new Notification("analysis.outline", toJson()); | 3284 return new Notification("analysis.outline", toJson()); |
3237 } | 3285 } |
3238 | 3286 |
3239 @override | 3287 @override |
3240 String toString() => JSON.encode(toJson()); | 3288 String toString() => JSON.encode(toJson()); |
3241 | 3289 |
3242 @override | 3290 @override |
3243 bool operator==(other) { | 3291 bool operator==(other) { |
3244 if (other is AnalysisOutlineParams) { | 3292 if (other is AnalysisOutlineParams) { |
3245 return file == other.file && | 3293 return file == other.file && |
3246 outline == other.outline; | 3294 libraryName == other.libraryName && |
| 3295 outline == other.outline && |
| 3296 partOfLibraryName == other.partOfLibraryName; |
3247 } | 3297 } |
3248 return false; | 3298 return false; |
3249 } | 3299 } |
3250 | 3300 |
3251 @override | 3301 @override |
3252 int get hashCode { | 3302 int get hashCode { |
3253 int hash = 0; | 3303 int hash = 0; |
3254 hash = _JenkinsSmiHash.combine(hash, file.hashCode); | 3304 hash = _JenkinsSmiHash.combine(hash, file.hashCode); |
| 3305 hash = _JenkinsSmiHash.combine(hash, libraryName.hashCode); |
3255 hash = _JenkinsSmiHash.combine(hash, outline.hashCode); | 3306 hash = _JenkinsSmiHash.combine(hash, outline.hashCode); |
| 3307 hash = _JenkinsSmiHash.combine(hash, partOfLibraryName.hashCode); |
3256 return _JenkinsSmiHash.finish(hash); | 3308 return _JenkinsSmiHash.finish(hash); |
3257 } | 3309 } |
3258 } | 3310 } |
3259 | 3311 |
3260 /** | 3312 /** |
3261 * analysis.overrides params | 3313 * analysis.overrides params |
3262 * | 3314 * |
3263 * { | 3315 * { |
3264 * "file": FilePath | 3316 * "file": FilePath |
3265 * "overrides": List<Override> | 3317 * "overrides": List<Override> |
(...skipping 12651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
15917 return false; | 15969 return false; |
15918 } | 15970 } |
15919 | 15971 |
15920 @override | 15972 @override |
15921 int get hashCode { | 15973 int get hashCode { |
15922 int hash = 0; | 15974 int hash = 0; |
15923 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 15975 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
15924 return _JenkinsSmiHash.finish(hash); | 15976 return _JenkinsSmiHash.finish(hash); |
15925 } | 15977 } |
15926 } | 15978 } |
OLD | NEW |