| 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 'package:analyzer/src/generated/ast.dart' show AstNode; | 9 import 'package:analyzer/src/generated/ast.dart' show AstNode; |
| 10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
| (...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1171 * Parameters: | 1171 * Parameters: |
| 1172 * 0: the name of the type that cannot be extended | 1172 * 0: the name of the type that cannot be extended |
| 1173 * | 1173 * |
| 1174 * See [IMPLEMENTS_DEFERRED_CLASS], and [MIXIN_DEFERRED_CLASS]. | 1174 * See [IMPLEMENTS_DEFERRED_CLASS], and [MIXIN_DEFERRED_CLASS]. |
| 1175 */ | 1175 */ |
| 1176 static const CompileTimeErrorCode EXTENDS_DEFERRED_CLASS = | 1176 static const CompileTimeErrorCode EXTENDS_DEFERRED_CLASS = |
| 1177 const CompileTimeErrorCode('EXTENDS_DEFERRED_CLASS', | 1177 const CompileTimeErrorCode('EXTENDS_DEFERRED_CLASS', |
| 1178 "This class cannot extend the deferred class '{0}'"); | 1178 "This class cannot extend the deferred class '{0}'"); |
| 1179 | 1179 |
| 1180 /** | 1180 /** |
| 1181 * DEP 37 extends the syntax for assert() to allow a second "message" |
| 1182 * argument. We issue this error if the user tries to supply a "message" |
| 1183 * argument but the DEP is not enabled. |
| 1184 */ |
| 1185 static const CompileTimeErrorCode EXTRA_ARGUMENT_TO_ASSERT = |
| 1186 const CompileTimeErrorCode('EXTRA_ARGUMENT_TO_ASSERT', |
| 1187 "Assertions only accept a single argument"); |
| 1188 |
| 1189 /** |
| 1181 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < | 1190 * 12.14.2 Binding Actuals to Formals: It is a static warning if <i>m < |
| 1182 * h</i> or if <i>m > n</i>. | 1191 * h</i> or if <i>m > n</i>. |
| 1183 * | 1192 * |
| 1184 * 12.11.2 Const: It is a compile-time error if evaluation of a constant | 1193 * 12.11.2 Const: It is a compile-time error if evaluation of a constant |
| 1185 * object results in an uncaught exception being thrown. | 1194 * object results in an uncaught exception being thrown. |
| 1186 * | 1195 * |
| 1187 * Parameters: | 1196 * Parameters: |
| 1188 * 0: the maximum number of positional arguments | 1197 * 0: the maximum number of positional arguments |
| 1189 * 1: the actual number of positional arguments given | 1198 * 1: the actual number of positional arguments given |
| 1190 */ | 1199 */ |
| (...skipping 4462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5653 * Initialize a newly created error code to have the given [name]. | 5662 * Initialize a newly created error code to have the given [name]. |
| 5654 */ | 5663 */ |
| 5655 const TodoCode(String name) : super(name, "{0}"); | 5664 const TodoCode(String name) : super(name, "{0}"); |
| 5656 | 5665 |
| 5657 @override | 5666 @override |
| 5658 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; | 5667 ErrorSeverity get errorSeverity => ErrorSeverity.INFO; |
| 5659 | 5668 |
| 5660 @override | 5669 @override |
| 5661 ErrorType get type => ErrorType.TODO; | 5670 ErrorType get type => ErrorType.TODO; |
| 5662 } | 5671 } |
| OLD | NEW |