| 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 /** | 7 /** |
| 8 * The messages in this file should meet the following guide lines: | 8 * The messages in this file should meet the following guide lines: |
| 9 * | 9 * |
| 10 * 1. The message should start with exactly one of "Error", "Internal error", | 10 * 1. The message should start with exactly one of "Error", "Internal error", |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 static const MessageKind VOID_NOT_ALLOWED = const MessageKind( | 527 static const MessageKind VOID_NOT_ALLOWED = const MessageKind( |
| 528 'Error: Type "void" is only allowed in a return type.'); | 528 'Error: Type "void" is only allowed in a return type.'); |
| 529 | 529 |
| 530 static const MessageKind BEFORE_TOP_LEVEL = const MessageKind( | 530 static const MessageKind BEFORE_TOP_LEVEL = const MessageKind( |
| 531 'Error: Part header must come before top-level definitions.'); | 531 'Error: Part header must come before top-level definitions.'); |
| 532 | 532 |
| 533 static const MessageKind LIBRARY_NAME_MISMATCH = const MessageKind( | 533 static const MessageKind LIBRARY_NAME_MISMATCH = const MessageKind( |
| 534 'Warning: Expected part of library name "#{libraryName}".'); | 534 'Warning: Expected part of library name "#{libraryName}".'); |
| 535 | 535 |
| 536 static const MessageKind MISSING_PART_OF_TAG = const MessageKind( | 536 static const MessageKind MISSING_PART_OF_TAG = const MessageKind( |
| 537 'Note: This file has no part-of tag, but it is being used as a part.'); | 537 'Error: This file has no part-of tag, but it is being used as a part.'); |
| 538 | 538 |
| 539 static const MessageKind DUPLICATED_PART_OF = const MessageKind( | 539 static const MessageKind DUPLICATED_PART_OF = const MessageKind( |
| 540 'Error: Duplicated part-of directive.'); | 540 'Error: Duplicated part-of directive.'); |
| 541 | 541 |
| 542 static const MessageKind ILLEGAL_DIRECTIVE = const MessageKind( | 542 static const MessageKind ILLEGAL_DIRECTIVE = const MessageKind( |
| 543 'Error: Directive not allowed here.'); | 543 'Error: Directive not allowed here.'); |
| 544 | 544 |
| 545 static const MessageKind DUPLICATED_LIBRARY_NAME = const MessageKind( | 545 static const MessageKind DUPLICATED_LIBRARY_NAME = const MessageKind( |
| 546 'Warning: Duplicated library name "#{libraryName}".'); | 546 'Warning: Duplicated library name "#{libraryName}".'); |
| 547 | 547 |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 | 812 |
| 813 class CompileTimeConstantError extends Diagnostic { | 813 class CompileTimeConstantError extends Diagnostic { |
| 814 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) | 814 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) |
| 815 : super(kind, arguments); | 815 : super(kind, arguments); |
| 816 } | 816 } |
| 817 | 817 |
| 818 class CompilationError extends Diagnostic { | 818 class CompilationError extends Diagnostic { |
| 819 CompilationError(MessageKind kind, [Map arguments = const {}]) | 819 CompilationError(MessageKind kind, [Map arguments = const {}]) |
| 820 : super(kind, arguments); | 820 : super(kind, arguments); |
| 821 } | 821 } |
| OLD | NEW |