| 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 499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 static const CompileTimeErrorCode AWAIT_IN_WRONG_CONTEXT = | 510 static const CompileTimeErrorCode AWAIT_IN_WRONG_CONTEXT = |
| 511 const CompileTimeErrorCode('AWAIT_IN_WRONG_CONTEXT', | 511 const CompileTimeErrorCode('AWAIT_IN_WRONG_CONTEXT', |
| 512 "The await expression can only be used in a function marked as async o
r async*"); | 512 "The await expression can only be used in a function marked as async o
r async*"); |
| 513 | 513 |
| 514 /** | 514 /** |
| 515 * 12.30 Identifier Reference: It is a compile-time error to use a built-in | 515 * 12.30 Identifier Reference: It is a compile-time error to use a built-in |
| 516 * identifier other than dynamic as a type annotation. | 516 * identifier other than dynamic as a type annotation. |
| 517 */ | 517 */ |
| 518 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE = | 518 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE = |
| 519 const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE', | 519 const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE', |
| 520 "The built-in identifier '{0}' cannot be as a type"); | 520 "The built-in identifier '{0}' cannot be used as a type"); |
| 521 | 521 |
| 522 /** | 522 /** |
| 523 * 12.30 Identifier Reference: It is a compile-time error if a built-in | 523 * 12.30 Identifier Reference: It is a compile-time error if a built-in |
| 524 * identifier is used as the declared name of a class, type parameter or type | 524 * identifier is used as the declared name of a class, type parameter or type |
| 525 * alias. | 525 * alias. |
| 526 */ | 526 */ |
| 527 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_NAME = | 527 static const CompileTimeErrorCode BUILT_IN_IDENTIFIER_AS_TYPE_NAME = |
| 528 const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE_NAME', | 528 const CompileTimeErrorCode('BUILT_IN_IDENTIFIER_AS_TYPE_NAME', |
| 529 "The built-in identifier '{0}' cannot be used as a type name"); | 529 "The built-in identifier '{0}' cannot be used as a type name"); |
| 530 | 530 |
| (...skipping 4399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4930 * Initialize a newly created error code to have the given [name]. | 4930 * Initialize a newly created error code to have the given [name]. |
| 4931 */ | 4931 */ |
| 4932 const TodoCode(String name) : super(name, "{0}"); | 4932 const TodoCode(String name) : super(name, "{0}"); |
| 4933 | 4933 |
| 4934 @override | 4934 @override |
| 4935 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 4935 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 4936 | 4936 |
| 4937 @override | 4937 @override |
| 4938 ErrorType get type => ErrorType.TODO; | 4938 ErrorType get type => ErrorType.TODO; |
| 4939 } | 4939 } |
| OLD | NEW |