| 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 5313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5324 @override | 5324 @override |
| 5325 String toString() => "AnalysisErrorSeverity.$name"; | 5325 String toString() => "AnalysisErrorSeverity.$name"; |
| 5326 | 5326 |
| 5327 String toJson() => name; | 5327 String toJson() => name; |
| 5328 } | 5328 } |
| 5329 | 5329 |
| 5330 /** | 5330 /** |
| 5331 * AnalysisErrorType | 5331 * AnalysisErrorType |
| 5332 * | 5332 * |
| 5333 * enum { | 5333 * enum { |
| 5334 * ANGULAR | |
| 5335 * CHECKED_MODE_COMPILE_TIME_ERROR | 5334 * CHECKED_MODE_COMPILE_TIME_ERROR |
| 5336 * COMPILE_TIME_ERROR | 5335 * COMPILE_TIME_ERROR |
| 5337 * HINT | 5336 * HINT |
| 5338 * LINT | 5337 * LINT |
| 5339 * POLYMER | |
| 5340 * STATIC_TYPE_WARNING | 5338 * STATIC_TYPE_WARNING |
| 5341 * STATIC_WARNING | 5339 * STATIC_WARNING |
| 5342 * SYNTACTIC_ERROR | 5340 * SYNTACTIC_ERROR |
| 5343 * TODO | 5341 * TODO |
| 5344 * } | 5342 * } |
| 5345 */ | 5343 */ |
| 5346 class AnalysisErrorType implements Enum { | 5344 class AnalysisErrorType implements Enum { |
| 5347 static const ANGULAR = const AnalysisErrorType._("ANGULAR"); | |
| 5348 | |
| 5349 static const CHECKED_MODE_COMPILE_TIME_ERROR = const AnalysisErrorType._("CHEC
KED_MODE_COMPILE_TIME_ERROR"); | 5345 static const CHECKED_MODE_COMPILE_TIME_ERROR = const AnalysisErrorType._("CHEC
KED_MODE_COMPILE_TIME_ERROR"); |
| 5350 | 5346 |
| 5351 static const COMPILE_TIME_ERROR = const AnalysisErrorType._("COMPILE_TIME_ERRO
R"); | 5347 static const COMPILE_TIME_ERROR = const AnalysisErrorType._("COMPILE_TIME_ERRO
R"); |
| 5352 | 5348 |
| 5353 static const HINT = const AnalysisErrorType._("HINT"); | 5349 static const HINT = const AnalysisErrorType._("HINT"); |
| 5354 | 5350 |
| 5355 static const LINT = const AnalysisErrorType._("LINT"); | 5351 static const LINT = const AnalysisErrorType._("LINT"); |
| 5356 | 5352 |
| 5357 static const POLYMER = const AnalysisErrorType._("POLYMER"); | |
| 5358 | |
| 5359 static const STATIC_TYPE_WARNING = const AnalysisErrorType._("STATIC_TYPE_WARN
ING"); | 5353 static const STATIC_TYPE_WARNING = const AnalysisErrorType._("STATIC_TYPE_WARN
ING"); |
| 5360 | 5354 |
| 5361 static const STATIC_WARNING = const AnalysisErrorType._("STATIC_WARNING"); | 5355 static const STATIC_WARNING = const AnalysisErrorType._("STATIC_WARNING"); |
| 5362 | 5356 |
| 5363 static const SYNTACTIC_ERROR = const AnalysisErrorType._("SYNTACTIC_ERROR"); | 5357 static const SYNTACTIC_ERROR = const AnalysisErrorType._("SYNTACTIC_ERROR"); |
| 5364 | 5358 |
| 5365 static const TODO = const AnalysisErrorType._("TODO"); | 5359 static const TODO = const AnalysisErrorType._("TODO"); |
| 5366 | 5360 |
| 5367 final String name; | 5361 final String name; |
| 5368 | 5362 |
| 5369 const AnalysisErrorType._(this.name); | 5363 const AnalysisErrorType._(this.name); |
| 5370 | 5364 |
| 5371 factory AnalysisErrorType(String name) { | 5365 factory AnalysisErrorType(String name) { |
| 5372 switch (name) { | 5366 switch (name) { |
| 5373 case "ANGULAR": | |
| 5374 return ANGULAR; | |
| 5375 case "CHECKED_MODE_COMPILE_TIME_ERROR": | 5367 case "CHECKED_MODE_COMPILE_TIME_ERROR": |
| 5376 return CHECKED_MODE_COMPILE_TIME_ERROR; | 5368 return CHECKED_MODE_COMPILE_TIME_ERROR; |
| 5377 case "COMPILE_TIME_ERROR": | 5369 case "COMPILE_TIME_ERROR": |
| 5378 return COMPILE_TIME_ERROR; | 5370 return COMPILE_TIME_ERROR; |
| 5379 case "HINT": | 5371 case "HINT": |
| 5380 return HINT; | 5372 return HINT; |
| 5381 case "LINT": | 5373 case "LINT": |
| 5382 return LINT; | 5374 return LINT; |
| 5383 case "POLYMER": | |
| 5384 return POLYMER; | |
| 5385 case "STATIC_TYPE_WARNING": | 5375 case "STATIC_TYPE_WARNING": |
| 5386 return STATIC_TYPE_WARNING; | 5376 return STATIC_TYPE_WARNING; |
| 5387 case "STATIC_WARNING": | 5377 case "STATIC_WARNING": |
| 5388 return STATIC_WARNING; | 5378 return STATIC_WARNING; |
| 5389 case "SYNTACTIC_ERROR": | 5379 case "SYNTACTIC_ERROR": |
| 5390 return SYNTACTIC_ERROR; | 5380 return SYNTACTIC_ERROR; |
| 5391 case "TODO": | 5381 case "TODO": |
| 5392 return TODO; | 5382 return TODO; |
| 5393 } | 5383 } |
| 5394 throw new Exception('Illegal enum value: $name'); | 5384 throw new Exception('Illegal enum value: $name'); |
| (...skipping 5603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10998 return false; | 10988 return false; |
| 10999 } | 10989 } |
| 11000 | 10990 |
| 11001 @override | 10991 @override |
| 11002 int get hashCode { | 10992 int get hashCode { |
| 11003 int hash = 0; | 10993 int hash = 0; |
| 11004 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 10994 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 11005 return _JenkinsSmiHash.finish(hash); | 10995 return _JenkinsSmiHash.finish(hash); |
| 11006 } | 10996 } |
| 11007 } | 10997 } |
| OLD | NEW |