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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 | 371 |
372 static const ASSERT_IS_GIVEN_NAMED_ARGUMENTS = const MessageKind( | 372 static const ASSERT_IS_GIVEN_NAMED_ARGUMENTS = const MessageKind( |
373 "assert takes no named arguments, but given #{argumentCount}."); | 373 "assert takes no named arguments, but given #{argumentCount}."); |
374 | 374 |
375 static const FACTORY_REDIRECTION_IN_NON_FACTORY = const MessageKind( | 375 static const FACTORY_REDIRECTION_IN_NON_FACTORY = const MessageKind( |
376 "Error: Factory redirection only allowed in factories."); | 376 "Error: Factory redirection only allowed in factories."); |
377 | 377 |
378 static const MISSING_FACTORY_KEYWORD = const MessageKind( | 378 static const MISSING_FACTORY_KEYWORD = const MessageKind( |
379 "Did you forget a factory keyword here?"); | 379 "Did you forget a factory keyword here?"); |
380 | 380 |
| 381 static const DEFERRED_LIBRARY_NAME_MISMATCH = const MessageKind( |
| 382 'Error: Library name mismatch "#{expectedName}" != "#{actualName}".'); |
| 383 |
381 static const COMPILER_CRASHED = const MessageKind( | 384 static const COMPILER_CRASHED = const MessageKind( |
382 "Error: The compiler crashed when compiling this element."); | 385 "Error: The compiler crashed when compiling this element."); |
383 | 386 |
384 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' | 387 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' |
385 The compiler is broken. | 388 The compiler is broken. |
386 | 389 |
387 When compiling the above element, the compiler crashed. It is not | 390 When compiling the above element, the compiler crashed. It is not |
388 possible to tell if this is caused by a problem in your program or | 391 possible to tell if this is caused by a problem in your program or |
389 not. Regardless, the compiler should not crash. | 392 not. Regardless, the compiler should not crash. |
390 | 393 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 | 562 |
560 class CompileTimeConstantError extends Diagnostic { | 563 class CompileTimeConstantError extends Diagnostic { |
561 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) | 564 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) |
562 : super(kind, arguments); | 565 : super(kind, arguments); |
563 } | 566 } |
564 | 567 |
565 class CompilationError extends Diagnostic { | 568 class CompilationError extends Diagnostic { |
566 CompilationError(MessageKind kind, [Map arguments = const {}]) | 569 CompilationError(MessageKind kind, [Map arguments = const {}]) |
567 : super(kind, arguments); | 570 : super(kind, arguments); |
568 } | 571 } |
OLD | NEW |