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 4565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4576 | 4576 |
4577 /** | 4577 /** |
4578 * execution.createContext params | 4578 * execution.createContext params |
4579 * | 4579 * |
4580 * { | 4580 * { |
4581 * "contextRoot": FilePath | 4581 * "contextRoot": FilePath |
4582 * } | 4582 * } |
4583 */ | 4583 */ |
4584 class ExecutionCreateContextParams implements HasToJson { | 4584 class ExecutionCreateContextParams implements HasToJson { |
4585 /** | 4585 /** |
4586 * The path of the Dart or HTML file that will be launched. | 4586 * The path of the Dart or HTML file that will be launched, or the path of |
| 4587 * the directory containing the file. |
4587 */ | 4588 */ |
4588 String contextRoot; | 4589 String contextRoot; |
4589 | 4590 |
4590 ExecutionCreateContextParams(this.contextRoot); | 4591 ExecutionCreateContextParams(this.contextRoot); |
4591 | 4592 |
4592 factory ExecutionCreateContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { | 4593 factory ExecutionCreateContextParams.fromJson(JsonDecoder jsonDecoder, String
jsonPath, Object json) { |
4593 if (json == null) { | 4594 if (json == null) { |
4594 json = {}; | 4595 json = {}; |
4595 } | 4596 } |
4596 if (json is Map) { | 4597 if (json is Map) { |
(...skipping 4604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9201 } | 9202 } |
9202 } | 9203 } |
9203 | 9204 |
9204 /** | 9205 /** |
9205 * RequestErrorCode | 9206 * RequestErrorCode |
9206 * | 9207 * |
9207 * enum { | 9208 * enum { |
9208 * CONTENT_MODIFIED | 9209 * CONTENT_MODIFIED |
9209 * FORMAT_INVALID_FILE | 9210 * FORMAT_INVALID_FILE |
9210 * GET_ERRORS_INVALID_FILE | 9211 * GET_ERRORS_INVALID_FILE |
| 9212 * INVALID_EXECUTION_CONTEXT |
9211 * INVALID_OVERLAY_CHANGE | 9213 * INVALID_OVERLAY_CHANGE |
9212 * INVALID_PARAMETER | 9214 * INVALID_PARAMETER |
9213 * INVALID_REQUEST | 9215 * INVALID_REQUEST |
9214 * REFACTORING_REQUEST_CANCELLED | 9216 * REFACTORING_REQUEST_CANCELLED |
9215 * SERVER_ALREADY_STARTED | 9217 * SERVER_ALREADY_STARTED |
9216 * SERVER_ERROR | 9218 * SERVER_ERROR |
9217 * SORT_MEMBERS_INVALID_FILE | 9219 * SORT_MEMBERS_INVALID_FILE |
9218 * SORT_MEMBERS_PARSE_ERRORS | 9220 * SORT_MEMBERS_PARSE_ERRORS |
9219 * UNANALYZED_PRIORITY_FILES | 9221 * UNANALYZED_PRIORITY_FILES |
9220 * UNKNOWN_REQUEST | 9222 * UNKNOWN_REQUEST |
(...skipping 14 matching lines...) Expand all Loading... |
9235 */ | 9237 */ |
9236 static const FORMAT_INVALID_FILE = const RequestErrorCode._("FORMAT_INVALID_FI
LE"); | 9238 static const FORMAT_INVALID_FILE = const RequestErrorCode._("FORMAT_INVALID_FI
LE"); |
9237 | 9239 |
9238 /** | 9240 /** |
9239 * An "analysis.getErrors" request specified a FilePath which does not match | 9241 * An "analysis.getErrors" request specified a FilePath which does not match |
9240 * a file currently subject to analysis. | 9242 * a file currently subject to analysis. |
9241 */ | 9243 */ |
9242 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); | 9244 static const GET_ERRORS_INVALID_FILE = const RequestErrorCode._("GET_ERRORS_IN
VALID_FILE"); |
9243 | 9245 |
9244 /** | 9246 /** |
| 9247 * The context root used to create an execution context does not exist. |
| 9248 */ |
| 9249 static const INVALID_EXECUTION_CONTEXT = const RequestErrorCode._("INVALID_EXE
CUTION_CONTEXT"); |
| 9250 |
| 9251 /** |
9245 * An analysis.updateContent request contained a ChangeContentOverlay object | 9252 * An analysis.updateContent request contained a ChangeContentOverlay object |
9246 * which can't be applied, due to an edit having an offset or length that is | 9253 * which can't be applied, due to an edit having an offset or length that is |
9247 * out of range. | 9254 * out of range. |
9248 */ | 9255 */ |
9249 static const INVALID_OVERLAY_CHANGE = const RequestErrorCode._("INVALID_OVERLA
Y_CHANGE"); | 9256 static const INVALID_OVERLAY_CHANGE = const RequestErrorCode._("INVALID_OVERLA
Y_CHANGE"); |
9250 | 9257 |
9251 /** | 9258 /** |
9252 * One of the method parameters was invalid. | 9259 * One of the method parameters was invalid. |
9253 */ | 9260 */ |
9254 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; | 9261 static const INVALID_PARAMETER = const RequestErrorCode._("INVALID_PARAMETER")
; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9311 * supported. | 9318 * supported. |
9312 * | 9319 * |
9313 * This is a legacy error; it will be removed before the API reaches version | 9320 * This is a legacy error; it will be removed before the API reaches version |
9314 * 1.0. | 9321 * 1.0. |
9315 */ | 9322 */ |
9316 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); | 9323 static const UNSUPPORTED_FEATURE = const RequestErrorCode._("UNSUPPORTED_FEATU
RE"); |
9317 | 9324 |
9318 /** | 9325 /** |
9319 * A list containing all of the enum values that are defined. | 9326 * A list containing all of the enum values that are defined. |
9320 */ | 9327 */ |
9321 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_
MODIFIED, FORMAT_INVALID_FILE, GET_ERRORS_INVALID_FILE, INVALID_OVERLAY_CHANGE,
INVALID_PARAMETER, INVALID_REQUEST, REFACTORING_REQUEST_CANCELLED, SERVER_ALREAD
Y_STARTED, SERVER_ERROR, SORT_MEMBERS_INVALID_FILE, SORT_MEMBERS_PARSE_ERRORS, U
NANALYZED_PRIORITY_FILES, UNKNOWN_REQUEST, UNSUPPORTED_FEATURE]; | 9328 static const List<RequestErrorCode> VALUES = const <RequestErrorCode>[CONTENT_
MODIFIED, FORMAT_INVALID_FILE, GET_ERRORS_INVALID_FILE, INVALID_EXECUTION_CONTEX
T, INVALID_OVERLAY_CHANGE, INVALID_PARAMETER, INVALID_REQUEST, REFACTORING_REQUE
ST_CANCELLED, SERVER_ALREADY_STARTED, SERVER_ERROR, SORT_MEMBERS_INVALID_FILE, S
ORT_MEMBERS_PARSE_ERRORS, UNANALYZED_PRIORITY_FILES, UNKNOWN_REQUEST, UNSUPPORTE
D_FEATURE]; |
9322 | 9329 |
9323 final String name; | 9330 final String name; |
9324 | 9331 |
9325 const RequestErrorCode._(this.name); | 9332 const RequestErrorCode._(this.name); |
9326 | 9333 |
9327 factory RequestErrorCode(String name) { | 9334 factory RequestErrorCode(String name) { |
9328 switch (name) { | 9335 switch (name) { |
9329 case "CONTENT_MODIFIED": | 9336 case "CONTENT_MODIFIED": |
9330 return CONTENT_MODIFIED; | 9337 return CONTENT_MODIFIED; |
9331 case "FORMAT_INVALID_FILE": | 9338 case "FORMAT_INVALID_FILE": |
9332 return FORMAT_INVALID_FILE; | 9339 return FORMAT_INVALID_FILE; |
9333 case "GET_ERRORS_INVALID_FILE": | 9340 case "GET_ERRORS_INVALID_FILE": |
9334 return GET_ERRORS_INVALID_FILE; | 9341 return GET_ERRORS_INVALID_FILE; |
| 9342 case "INVALID_EXECUTION_CONTEXT": |
| 9343 return INVALID_EXECUTION_CONTEXT; |
9335 case "INVALID_OVERLAY_CHANGE": | 9344 case "INVALID_OVERLAY_CHANGE": |
9336 return INVALID_OVERLAY_CHANGE; | 9345 return INVALID_OVERLAY_CHANGE; |
9337 case "INVALID_PARAMETER": | 9346 case "INVALID_PARAMETER": |
9338 return INVALID_PARAMETER; | 9347 return INVALID_PARAMETER; |
9339 case "INVALID_REQUEST": | 9348 case "INVALID_REQUEST": |
9340 return INVALID_REQUEST; | 9349 return INVALID_REQUEST; |
9341 case "REFACTORING_REQUEST_CANCELLED": | 9350 case "REFACTORING_REQUEST_CANCELLED": |
9342 return REFACTORING_REQUEST_CANCELLED; | 9351 return REFACTORING_REQUEST_CANCELLED; |
9343 case "SERVER_ALREADY_STARTED": | 9352 case "SERVER_ALREADY_STARTED": |
9344 return SERVER_ALREADY_STARTED; | 9353 return SERVER_ALREADY_STARTED; |
(...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11192 return false; | 11201 return false; |
11193 } | 11202 } |
11194 | 11203 |
11195 @override | 11204 @override |
11196 int get hashCode { | 11205 int get hashCode { |
11197 int hash = 0; | 11206 int hash = 0; |
11198 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 11207 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
11199 return _JenkinsSmiHash.finish(hash); | 11208 return _JenkinsSmiHash.finish(hash); |
11200 } | 11209 } |
11201 } | 11210 } |
OLD | NEW |