Chromium Code Reviews| 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 code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
| 6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
| 7 | 7 |
| 8 library engine.error; | 8 library engine.error; |
| 9 | 9 |
| 10 import 'dart:collection'; | 10 import 'dart:collection'; |
| (...skipping 2757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2768 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING; | 2768 ErrorSeverity get errorSeverity => ErrorSeverity.WARNING; |
| 2769 | 2769 |
| 2770 @override | 2770 @override |
| 2771 ErrorType get type => ErrorType.STATIC_WARNING; | 2771 ErrorType get type => ErrorType.STATIC_WARNING; |
| 2772 | 2772 |
| 2773 @override | 2773 @override |
| 2774 String get uniqueName => "${runtimeType.toString()}.${name}"; | 2774 String get uniqueName => "${runtimeType.toString()}.${name}"; |
| 2775 } | 2775 } |
| 2776 | 2776 |
| 2777 /** | 2777 /** |
| 2778 * Instances of the class `NullErrorListener` implement the | |
| 2779 * AnalysisErrorListener interface, but don't record any information. | |
| 2780 */ | |
| 2781 class NullErrorListener implements AnalysisErrorListener { | |
|
Brian Wilkerson
2014/10/06 16:49:41
Or use the poorly named but existing class Analysi
Paul Berry
2014/10/06 16:56:52
Done.
| |
| 2782 @override | |
| 2783 void onError(AnalysisError error) { | |
| 2784 } | |
| 2785 } | |
| 2786 | |
| 2787 /** | |
| 2778 * The enumeration `PolymerCode` defines Polymer specific problems. | 2788 * The enumeration `PolymerCode` defines Polymer specific problems. |
| 2779 */ | 2789 */ |
| 2780 class PolymerCode extends Enum<PolymerCode> implements ErrorCode { | 2790 class PolymerCode extends Enum<PolymerCode> implements ErrorCode { |
| 2781 static const PolymerCode ATTRIBUTE_FIELD_NOT_PUBLISHED = const PolymerCode('AT TRIBUTE_FIELD_NOT_PUBLISHED', 0, "Field '{0}' in '{1}' must be @published"); | 2791 static const PolymerCode ATTRIBUTE_FIELD_NOT_PUBLISHED = const PolymerCode('AT TRIBUTE_FIELD_NOT_PUBLISHED', 0, "Field '{0}' in '{1}' must be @published"); |
| 2782 | 2792 |
| 2783 static const PolymerCode DUPLICATE_ATTRIBUTE_DEFINITION = const PolymerCode('D UPLICATE_ATTRIBUTE_DEFINITION', 1, "The attribute '{0}' is already defined"); | 2793 static const PolymerCode DUPLICATE_ATTRIBUTE_DEFINITION = const PolymerCode('D UPLICATE_ATTRIBUTE_DEFINITION', 1, "The attribute '{0}' is already defined"); |
| 2784 | 2794 |
| 2785 static const PolymerCode EMPTY_ATTRIBUTES = const PolymerCode('EMPTY_ATTRIBUTE S', 2, "Empty 'attributes' attribute is useless"); | 2795 static const PolymerCode EMPTY_ATTRIBUTES = const PolymerCode('EMPTY_ATTRIBUTE S', 2, "Empty 'attributes' attribute is useless"); |
| 2786 | 2796 |
| 2787 static const PolymerCode INVALID_ATTRIBUTE_NAME = const PolymerCode('INVALID_A TTRIBUTE_NAME', 3, "'{0}' is not a valid name for a custom element attribute"); | 2797 static const PolymerCode INVALID_ATTRIBUTE_NAME = const PolymerCode('INVALID_A TTRIBUTE_NAME', 3, "'{0}' is not a valid name for a custom element attribute"); |
| (...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4224 | 4234 |
| 4225 @override | 4235 @override |
| 4226 String get message => "{0}"; | 4236 String get message => "{0}"; |
| 4227 | 4237 |
| 4228 @override | 4238 @override |
| 4229 ErrorType get type => ErrorType.TODO; | 4239 ErrorType get type => ErrorType.TODO; |
| 4230 | 4240 |
| 4231 @override | 4241 @override |
| 4232 String get uniqueName => "${runtimeType.toString()}.${name}"; | 4242 String get uniqueName => "${runtimeType.toString()}.${name}"; |
| 4233 } | 4243 } |
| OLD | NEW |