| 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 4737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4748 String toString() => "AnalysisErrorSeverity.$name"; | 4748 String toString() => "AnalysisErrorSeverity.$name"; |
| 4749 | 4749 |
| 4750 String toJson() => name; | 4750 String toJson() => name; |
| 4751 } | 4751 } |
| 4752 | 4752 |
| 4753 /** | 4753 /** |
| 4754 * AnalysisErrorType | 4754 * AnalysisErrorType |
| 4755 * | 4755 * |
| 4756 * enum { | 4756 * enum { |
| 4757 * ANGULAR | 4757 * ANGULAR |
| 4758 * CHECKED_MODE_COMPILE_TIME_ERROR |
| 4758 * COMPILE_TIME_ERROR | 4759 * COMPILE_TIME_ERROR |
| 4759 * HINT | 4760 * HINT |
| 4760 * POLYMER | 4761 * POLYMER |
| 4761 * STATIC_TYPE_WARNING | 4762 * STATIC_TYPE_WARNING |
| 4762 * STATIC_WARNING | 4763 * STATIC_WARNING |
| 4763 * SYNTACTIC_ERROR | 4764 * SYNTACTIC_ERROR |
| 4764 * TODO | 4765 * TODO |
| 4765 * } | 4766 * } |
| 4766 */ | 4767 */ |
| 4767 class AnalysisErrorType { | 4768 class AnalysisErrorType { |
| 4768 static const ANGULAR = const AnalysisErrorType._("ANGULAR"); | 4769 static const ANGULAR = const AnalysisErrorType._("ANGULAR"); |
| 4769 | 4770 |
| 4771 static const CHECKED_MODE_COMPILE_TIME_ERROR = const AnalysisErrorType._("CHEC
KED_MODE_COMPILE_TIME_ERROR"); |
| 4772 |
| 4770 static const COMPILE_TIME_ERROR = const AnalysisErrorType._("COMPILE_TIME_ERRO
R"); | 4773 static const COMPILE_TIME_ERROR = const AnalysisErrorType._("COMPILE_TIME_ERRO
R"); |
| 4771 | 4774 |
| 4772 static const HINT = const AnalysisErrorType._("HINT"); | 4775 static const HINT = const AnalysisErrorType._("HINT"); |
| 4773 | 4776 |
| 4774 static const POLYMER = const AnalysisErrorType._("POLYMER"); | 4777 static const POLYMER = const AnalysisErrorType._("POLYMER"); |
| 4775 | 4778 |
| 4776 static const STATIC_TYPE_WARNING = const AnalysisErrorType._("STATIC_TYPE_WARN
ING"); | 4779 static const STATIC_TYPE_WARNING = const AnalysisErrorType._("STATIC_TYPE_WARN
ING"); |
| 4777 | 4780 |
| 4778 static const STATIC_WARNING = const AnalysisErrorType._("STATIC_WARNING"); | 4781 static const STATIC_WARNING = const AnalysisErrorType._("STATIC_WARNING"); |
| 4779 | 4782 |
| 4780 static const SYNTACTIC_ERROR = const AnalysisErrorType._("SYNTACTIC_ERROR"); | 4783 static const SYNTACTIC_ERROR = const AnalysisErrorType._("SYNTACTIC_ERROR"); |
| 4781 | 4784 |
| 4782 static const TODO = const AnalysisErrorType._("TODO"); | 4785 static const TODO = const AnalysisErrorType._("TODO"); |
| 4783 | 4786 |
| 4784 final String name; | 4787 final String name; |
| 4785 | 4788 |
| 4786 const AnalysisErrorType._(this.name); | 4789 const AnalysisErrorType._(this.name); |
| 4787 | 4790 |
| 4788 factory AnalysisErrorType(String name) { | 4791 factory AnalysisErrorType(String name) { |
| 4789 switch (name) { | 4792 switch (name) { |
| 4790 case "ANGULAR": | 4793 case "ANGULAR": |
| 4791 return ANGULAR; | 4794 return ANGULAR; |
| 4795 case "CHECKED_MODE_COMPILE_TIME_ERROR": |
| 4796 return CHECKED_MODE_COMPILE_TIME_ERROR; |
| 4792 case "COMPILE_TIME_ERROR": | 4797 case "COMPILE_TIME_ERROR": |
| 4793 return COMPILE_TIME_ERROR; | 4798 return COMPILE_TIME_ERROR; |
| 4794 case "HINT": | 4799 case "HINT": |
| 4795 return HINT; | 4800 return HINT; |
| 4796 case "POLYMER": | 4801 case "POLYMER": |
| 4797 return POLYMER; | 4802 return POLYMER; |
| 4798 case "STATIC_TYPE_WARNING": | 4803 case "STATIC_TYPE_WARNING": |
| 4799 return STATIC_TYPE_WARNING; | 4804 return STATIC_TYPE_WARNING; |
| 4800 case "STATIC_WARNING": | 4805 case "STATIC_WARNING": |
| 4801 return STATIC_WARNING; | 4806 return STATIC_WARNING; |
| (...skipping 5426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10228 return false; | 10233 return false; |
| 10229 } | 10234 } |
| 10230 | 10235 |
| 10231 @override | 10236 @override |
| 10232 int get hashCode { | 10237 int get hashCode { |
| 10233 int hash = 0; | 10238 int hash = 0; |
| 10234 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); | 10239 hash = _JenkinsSmiHash.combine(hash, newName.hashCode); |
| 10235 return _JenkinsSmiHash.finish(hash); | 10240 return _JenkinsSmiHash.finish(hash); |
| 10236 } | 10241 } |
| 10237 } | 10242 } |
| OLD | NEW |