| 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 library engine.error; | 5 library engine.error; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'ast.dart' show AstNode; | 9 import 'ast.dart' show AstNode; |
| 10 import 'element.dart'; | 10 import 'element.dart'; |
| (...skipping 2382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 const ErrorProperty('PARTS_LIBRARY_NAME', 1); | 2393 const ErrorProperty('PARTS_LIBRARY_NAME', 1); |
| 2394 | 2394 |
| 2395 /** | 2395 /** |
| 2396 * A property whose value is a list of [ExecutableElement] that should | 2396 * A property whose value is a list of [ExecutableElement] that should |
| 2397 * be but are not implemented by a concrete class. | 2397 * be but are not implemented by a concrete class. |
| 2398 */ | 2398 */ |
| 2399 static const ErrorProperty UNIMPLEMENTED_METHODS = | 2399 static const ErrorProperty UNIMPLEMENTED_METHODS = |
| 2400 const ErrorProperty('UNIMPLEMENTED_METHODS', 2); | 2400 const ErrorProperty('UNIMPLEMENTED_METHODS', 2); |
| 2401 | 2401 |
| 2402 static const List<ErrorProperty> values = const [ | 2402 static const List<ErrorProperty> values = const [ |
| 2403 NOT_INITIALIZED_FIELDS, |
| 2403 PARTS_LIBRARY_NAME, | 2404 PARTS_LIBRARY_NAME, |
| 2404 UNIMPLEMENTED_METHODS | 2405 UNIMPLEMENTED_METHODS |
| 2405 ]; | 2406 ]; |
| 2406 | 2407 |
| 2407 const ErrorProperty(String name, int ordinal) : super(name, ordinal); | 2408 const ErrorProperty(String name, int ordinal) : super(name, ordinal); |
| 2408 } | 2409 } |
| 2409 | 2410 |
| 2410 /** | 2411 /** |
| 2411 * An object used to create analysis errors and report then to an error | 2412 * An object used to create analysis errors and report then to an error |
| 2412 * listener. | 2413 * listener. |
| (...skipping 2446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4859 * Initialize a newly created error code to have the given [name]. | 4860 * Initialize a newly created error code to have the given [name]. |
| 4860 */ | 4861 */ |
| 4861 const TodoCode(String name) : super(name, "{0}"); | 4862 const TodoCode(String name) : super(name, "{0}"); |
| 4862 | 4863 |
| 4863 @override | 4864 @override |
| 4864 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 4865 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 4865 | 4866 |
| 4866 @override | 4867 @override |
| 4867 ErrorType get type => ErrorType.TODO; | 4868 ErrorType get type => ErrorType.TODO; |
| 4868 } | 4869 } |
| OLD | NEW |