| 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 const DONT_KNOW_HOW_TO_FIX = ""; | 7 const DONT_KNOW_HOW_TO_FIX = ""; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * The messages in this file should meet the following guide lines: | 10 * The messages in this file should meet the following guide lines: |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 Hint: Using "new #{name}" may result in larger output. | 608 Hint: Using "new #{name}" may result in larger output. |
| 609 Use "const #{name}" if possible.'''); | 609 Use "const #{name}" if possible.'''); |
| 610 | 610 |
| 611 static const MessageKind STRING_EXPECTED = const MessageKind( | 611 static const MessageKind STRING_EXPECTED = const MessageKind( |
| 612 'Error: Expected a "String", but got an instance of "#{type}".'); | 612 'Error: Expected a "String", but got an instance of "#{type}".'); |
| 613 | 613 |
| 614 static const MessageKind PRIVATE_IDENTIFIER = const MessageKind( | 614 static const MessageKind PRIVATE_IDENTIFIER = const MessageKind( |
| 615 'Error: "#{value}" is not a valid Symbol name because it starts with ' | 615 'Error: "#{value}" is not a valid Symbol name because it starts with ' |
| 616 '"_".'); | 616 '"_".'); |
| 617 | 617 |
| 618 static const MessageKind UNSUPPORTED_LITERAL_SYMBOL = const MessageKind( |
| 619 'Internal Error: Symbol literal "##{value}" is currently unsupported.'); |
| 620 |
| 618 static const MessageKind INVALID_SYMBOL = const MessageKind(''' | 621 static const MessageKind INVALID_SYMBOL = const MessageKind(''' |
| 619 Error: "#{value}" is not a valid Symbol name because is not: | 622 Error: "#{value}" is not a valid Symbol name because is not: |
| 620 * an empty String, | 623 * an empty String, |
| 621 * a user defined operator, | 624 * a user defined operator, |
| 622 * a qualified non-private identifier optionally followed by "=", or | 625 * a qualified non-private identifier optionally followed by "=", or |
| 623 * a qualified non-private identifier followed by "." and a user-defined ''' | 626 * a qualified non-private identifier followed by "." and a user-defined ''' |
| 624 'operator.'); | 627 'operator.'); |
| 625 | 628 |
| 626 static const MessageKind AMBIGUOUS_REEXPORT = const MessageKind( | 629 static const MessageKind AMBIGUOUS_REEXPORT = const MessageKind( |
| 627 'Info: "#{element}" is (re)exported by multiple libraries.'); | 630 'Info: "#{element}" is (re)exported by multiple libraries.'); |
| (...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1022 | 1025 |
| 1023 class CompileTimeConstantError extends Diagnostic { | 1026 class CompileTimeConstantError extends Diagnostic { |
| 1024 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1027 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1025 : super(kind, arguments, terse); | 1028 : super(kind, arguments, terse); |
| 1026 } | 1029 } |
| 1027 | 1030 |
| 1028 class CompilationError extends Diagnostic { | 1031 class CompilationError extends Diagnostic { |
| 1029 CompilationError(MessageKind kind, Map arguments, bool terse) | 1032 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1030 : super(kind, arguments, terse); | 1033 : super(kind, arguments, terse); |
| 1031 } | 1034 } |
| OLD | NEW |