| 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/spec/generate_files". | 7 // "pkg/analysis_server/spec/generate_files". |
| 8 | 8 |
| 9 part of protocol; | 9 part of protocol; |
| 10 /** | 10 /** |
| (...skipping 4600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4611 @override | 4611 @override |
| 4612 String toString() => "AnalysisErrorSeverity.$name"; | 4612 String toString() => "AnalysisErrorSeverity.$name"; |
| 4613 | 4613 |
| 4614 String toJson() => name; | 4614 String toJson() => name; |
| 4615 } | 4615 } |
| 4616 | 4616 |
| 4617 /** | 4617 /** |
| 4618 * AnalysisErrorType | 4618 * AnalysisErrorType |
| 4619 * | 4619 * |
| 4620 * enum { | 4620 * enum { |
| 4621 * ANGULAR |
| 4621 * COMPILE_TIME_ERROR | 4622 * COMPILE_TIME_ERROR |
| 4622 * HINT | 4623 * HINT |
| 4624 * POLYMER |
| 4623 * STATIC_TYPE_WARNING | 4625 * STATIC_TYPE_WARNING |
| 4624 * STATIC_WARNING | 4626 * STATIC_WARNING |
| 4625 * SYNTACTIC_ERROR | 4627 * SYNTACTIC_ERROR |
| 4626 * TODO | 4628 * TODO |
| 4627 * } | 4629 * } |
| 4628 */ | 4630 */ |
| 4629 class AnalysisErrorType { | 4631 class AnalysisErrorType { |
| 4632 static const ANGULAR = const AnalysisErrorType._("ANGULAR"); |
| 4633 |
| 4630 static const COMPILE_TIME_ERROR = const AnalysisErrorType._("COMPILE_TIME_ERRO
R"); | 4634 static const COMPILE_TIME_ERROR = const AnalysisErrorType._("COMPILE_TIME_ERRO
R"); |
| 4631 | 4635 |
| 4632 static const HINT = const AnalysisErrorType._("HINT"); | 4636 static const HINT = const AnalysisErrorType._("HINT"); |
| 4633 | 4637 |
| 4638 static const POLYMER = const AnalysisErrorType._("POLYMER"); |
| 4639 |
| 4634 static const STATIC_TYPE_WARNING = const AnalysisErrorType._("STATIC_TYPE_WARN
ING"); | 4640 static const STATIC_TYPE_WARNING = const AnalysisErrorType._("STATIC_TYPE_WARN
ING"); |
| 4635 | 4641 |
| 4636 static const STATIC_WARNING = const AnalysisErrorType._("STATIC_WARNING"); | 4642 static const STATIC_WARNING = const AnalysisErrorType._("STATIC_WARNING"); |
| 4637 | 4643 |
| 4638 static const SYNTACTIC_ERROR = const AnalysisErrorType._("SYNTACTIC_ERROR"); | 4644 static const SYNTACTIC_ERROR = const AnalysisErrorType._("SYNTACTIC_ERROR"); |
| 4639 | 4645 |
| 4640 static const TODO = const AnalysisErrorType._("TODO"); | 4646 static const TODO = const AnalysisErrorType._("TODO"); |
| 4641 | 4647 |
| 4642 final String name; | 4648 final String name; |
| 4643 | 4649 |
| 4644 const AnalysisErrorType._(this.name); | 4650 const AnalysisErrorType._(this.name); |
| 4645 | 4651 |
| 4646 factory AnalysisErrorType(String name) { | 4652 factory AnalysisErrorType(String name) { |
| 4647 switch (name) { | 4653 switch (name) { |
| 4654 case "ANGULAR": |
| 4655 return ANGULAR; |
| 4648 case "COMPILE_TIME_ERROR": | 4656 case "COMPILE_TIME_ERROR": |
| 4649 return COMPILE_TIME_ERROR; | 4657 return COMPILE_TIME_ERROR; |
| 4650 case "HINT": | 4658 case "HINT": |
| 4651 return HINT; | 4659 return HINT; |
| 4660 case "POLYMER": |
| 4661 return POLYMER; |
| 4652 case "STATIC_TYPE_WARNING": | 4662 case "STATIC_TYPE_WARNING": |
| 4653 return STATIC_TYPE_WARNING; | 4663 return STATIC_TYPE_WARNING; |
| 4654 case "STATIC_WARNING": | 4664 case "STATIC_WARNING": |
| 4655 return STATIC_WARNING; | 4665 return STATIC_WARNING; |
| 4656 case "SYNTACTIC_ERROR": | 4666 case "SYNTACTIC_ERROR": |
| 4657 return SYNTACTIC_ERROR; | 4667 return SYNTACTIC_ERROR; |
| 4658 case "TODO": | 4668 case "TODO": |
| 4659 return TODO; | 4669 return TODO; |
| 4660 } | 4670 } |
| 4661 throw new Exception('Illegal enum value: $name'); | 4671 throw new Exception('Illegal enum value: $name'); |
| (...skipping 5334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9996 return false; | 10006 return false; |
| 9997 } | 10007 } |
| 9998 | 10008 |
| 9999 @override | 10009 @override |
| 10000 int get hashCode { | 10010 int get hashCode { |
| 10001 int hash = 0; | 10011 int hash = 0; |
| 10002 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 10012 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 10003 return _JenkinsSmiHash.finish(hash); | 10013 return _JenkinsSmiHash.finish(hash); |
| 10004 } | 10014 } |
| 10005 } | 10015 } |
| OLD | NEW |