| 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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 'Error: "#{value}" is not a valid Symbol name because it starts with ' | 421 'Error: "#{value}" is not a valid Symbol name because it starts with ' |
| 422 '"_".'); | 422 '"_".'); |
| 423 | 423 |
| 424 static const INVALID_SYMBOL = const MessageKind(''' | 424 static const INVALID_SYMBOL = const MessageKind(''' |
| 425 Error: "#{value}" is not a valid Symbol name because is not: | 425 Error: "#{value}" is not a valid Symbol name because is not: |
| 426 * an empty String, | 426 * an empty String, |
| 427 * a user defined operator, | 427 * a user defined operator, |
| 428 * a qualified non-private identifier optionally followed by "=", or | 428 * a qualified non-private identifier optionally followed by "=", or |
| 429 * a qualified non-private identifier followed by "." and a user-defined operato
r.'''); | 429 * a qualified non-private identifier followed by "." and a user-defined operato
r.'''); |
| 430 | 430 |
| 431 static const AMBIGUOUS_REEXPORT = const MessageKind( |
| 432 'Info: "#{element}" is (re)exported by multiple libraries.'); |
| 433 |
| 434 static const AMBIGUOUS_LOCATION = const MessageKind( |
| 435 'Info: "#{element}" is defined here.'); |
| 436 |
| 437 static const IMPORTED_HERE = const MessageKind( |
| 438 'Info: "#{element}" is imported here.'); |
| 439 |
| 431 static const COMPILER_CRASHED = const MessageKind( | 440 static const COMPILER_CRASHED = const MessageKind( |
| 432 "Error: The compiler crashed when compiling this element."); | 441 "Error: The compiler crashed when compiling this element."); |
| 433 | 442 |
| 434 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' | 443 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' |
| 435 The compiler is broken. | 444 The compiler is broken. |
| 436 | 445 |
| 437 When compiling the above element, the compiler crashed. It is not | 446 When compiling the above element, the compiler crashed. It is not |
| 438 possible to tell if this is caused by a problem in your program or | 447 possible to tell if this is caused by a problem in your program or |
| 439 not. Regardless, the compiler should not crash. | 448 not. Regardless, the compiler should not crash. |
| 440 | 449 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 | 625 |
| 617 class CompileTimeConstantError extends Diagnostic { | 626 class CompileTimeConstantError extends Diagnostic { |
| 618 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) | 627 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) |
| 619 : super(kind, arguments); | 628 : super(kind, arguments); |
| 620 } | 629 } |
| 621 | 630 |
| 622 class CompilationError extends Diagnostic { | 631 class CompilationError extends Diagnostic { |
| 623 CompilationError(MessageKind kind, [Map arguments = const {}]) | 632 CompilationError(MessageKind kind, [Map arguments = const {}]) |
| 624 : super(kind, arguments); | 633 : super(kind, arguments); |
| 625 } | 634 } |
| OLD | NEW |