OLD | NEW |
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 part of dart2js; | 5 part of dart2js; |
6 | 6 |
7 class MessageKind { | 7 class MessageKind { |
8 final String template; | 8 final String template; |
9 const MessageKind(this.template); | 9 const MessageKind(this.template); |
10 | 10 |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 | 320 |
321 static const TOP_LEVEL_VARIABLE_DECLARED_STATIC = const MessageKind( | 321 static const TOP_LEVEL_VARIABLE_DECLARED_STATIC = const MessageKind( |
322 "Top-level variable cannot be declared static."); | 322 "Top-level variable cannot be declared static."); |
323 | 323 |
324 static const WRONG_NUMBER_OF_ARGUMENTS_FOR_ASSERT = const MessageKind( | 324 static const WRONG_NUMBER_OF_ARGUMENTS_FOR_ASSERT = const MessageKind( |
325 "Wrong number of arguments to assert. Should be 1, but given #{1}."); | 325 "Wrong number of arguments to assert. Should be 1, but given #{1}."); |
326 | 326 |
327 static const ASSERT_IS_GIVEN_NAMED_ARGUMENTS = const MessageKind( | 327 static const ASSERT_IS_GIVEN_NAMED_ARGUMENTS = const MessageKind( |
328 "assert takes no named arguments, but given #{1}."); | 328 "assert takes no named arguments, but given #{1}."); |
329 | 329 |
| 330 static const MALFORMED_TYPE_REFERENCE = const MessageKind( |
| 331 "Malformed type reference encountered in #{1}."); |
330 | 332 |
331 static const COMPILER_CRASHED = const MessageKind( | 333 static const COMPILER_CRASHED = const MessageKind( |
332 "Error: The compiler crashed when compiling this element."); | 334 "Error: The compiler crashed when compiling this element."); |
333 | 335 |
334 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' | 336 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' |
335 The compiler is broken. | 337 The compiler is broken. |
336 | 338 |
337 When compiling the above element, the compiler crashed. It is not | 339 When compiling the above element, the compiler crashed. It is not |
338 possible to tell if this is caused by a problem in your program or | 340 possible to tell if this is caused by a problem in your program or |
339 not. Regardless, the compiler should not crash. | 341 not. Regardless, the compiler should not crash. |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
419 | 421 |
420 class CompileTimeConstantError extends Diagnostic { | 422 class CompileTimeConstantError extends Diagnostic { |
421 CompileTimeConstantError(MessageKind kind, List arguments) | 423 CompileTimeConstantError(MessageKind kind, List arguments) |
422 : super(kind, arguments); | 424 : super(kind, arguments); |
423 } | 425 } |
424 | 426 |
425 class CompilationError extends Diagnostic { | 427 class CompilationError extends Diagnostic { |
426 CompilationError(MessageKind kind, List arguments) | 428 CompilationError(MessageKind kind, List arguments) |
427 : super(kind, arguments); | 429 : super(kind, arguments); |
428 } | 430 } |
OLD | NEW |