| 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 20 matching lines...) Expand all Loading... |
| 31 static const OPERATOR_NOT_FOUND = const MessageKind( | 31 static const OPERATOR_NOT_FOUND = const MessageKind( |
| 32 'no operator #{memberName} in class #{className}'); | 32 'no operator #{memberName} in class #{className}'); |
| 33 static const PROPERTY_NOT_FOUND = const MessageKind( | 33 static const PROPERTY_NOT_FOUND = const MessageKind( |
| 34 'no property named #{memberName} in class #{className}'); | 34 'no property named #{memberName} in class #{className}'); |
| 35 static const NOT_CALLABLE = const MessageKind( | 35 static const NOT_CALLABLE = const MessageKind( |
| 36 "'#{elementName}' is not callable"); | 36 "'#{elementName}' is not callable"); |
| 37 static const MEMBER_NOT_STATIC = const MessageKind( | 37 static const MEMBER_NOT_STATIC = const MessageKind( |
| 38 '#{className}.#{memberName} is not static'); | 38 '#{className}.#{memberName} is not static'); |
| 39 static const NO_INSTANCE_AVAILABLE = const MessageKind( | 39 static const NO_INSTANCE_AVAILABLE = const MessageKind( |
| 40 '#{name} is only available in instance methods'); | 40 '#{name} is only available in instance methods'); |
| 41 static const PRIVATE_ACCESS = const MessageKind( |
| 42 "'#{name}' is declared private within library #{libraryName} and " |
| 43 "is therefore not accessible."); |
| 41 | 44 |
| 42 static const THIS_IS_THE_METHOD = const MessageKind( | 45 static const THIS_IS_THE_METHOD = const MessageKind( |
| 43 "This is the method declaration."); | 46 "This is the method declaration."); |
| 44 | 47 |
| 45 static const UNREACHABLE_CODE = const MessageKind( | 48 static const UNREACHABLE_CODE = const MessageKind( |
| 46 'unreachable code'); | 49 'unreachable code'); |
| 47 static const MISSING_RETURN = const MessageKind( | 50 static const MISSING_RETURN = const MessageKind( |
| 48 'missing return'); | 51 'missing return'); |
| 49 static const MAYBE_MISSING_RETURN = const MessageKind( | 52 static const MAYBE_MISSING_RETURN = const MessageKind( |
| 50 'not all paths lead to a return or throw statement'); | 53 'not all paths lead to a return or throw statement'); |
| (...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 613 | 616 |
| 614 class CompileTimeConstantError extends Diagnostic { | 617 class CompileTimeConstantError extends Diagnostic { |
| 615 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) | 618 CompileTimeConstantError(MessageKind kind, [Map arguments = const {}]) |
| 616 : super(kind, arguments); | 619 : super(kind, arguments); |
| 617 } | 620 } |
| 618 | 621 |
| 619 class CompilationError extends Diagnostic { | 622 class CompilationError extends Diagnostic { |
| 620 CompilationError(MessageKind kind, [Map arguments = const {}]) | 623 CompilationError(MessageKind kind, [Map arguments = const {}]) |
| 621 : super(kind, arguments); | 624 : super(kind, arguments); |
| 622 } | 625 } |
| OLD | NEW |