| 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 static const DUPLICATE_LABEL = const MessageKind( | 134 static const DUPLICATE_LABEL = const MessageKind( |
| 135 'duplicate declaration of label #{1}'); | 135 'duplicate declaration of label #{1}'); |
| 136 static const UNUSED_LABEL = const MessageKind( | 136 static const UNUSED_LABEL = const MessageKind( |
| 137 'unused label #{1}'); | 137 'unused label #{1}'); |
| 138 static const INVALID_CONTINUE = const MessageKind( | 138 static const INVALID_CONTINUE = const MessageKind( |
| 139 'target of continue is not a loop or switch case'); | 139 'target of continue is not a loop or switch case'); |
| 140 static const TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind( | 140 static const TYPE_VARIABLE_AS_CONSTRUCTOR = const MessageKind( |
| 141 'cannot use type variable as constructor'); | 141 'cannot use type variable as constructor'); |
| 142 static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind( | 142 static const DUPLICATE_TYPE_VARIABLE_NAME = const MessageKind( |
| 143 'type variable #{1} already declared'); | 143 'type variable #{1} already declared'); |
| 144 static const TYPE_VARIABLE_WITHIN_STATIC_MEMBER = const MessageKind( |
| 145 'cannot refer to type variable #{1} within a static member'); |
| 144 static const INVALID_BREAK = const MessageKind( | 146 static const INVALID_BREAK = const MessageKind( |
| 145 'target of break is not a statement'); | 147 'target of break is not a statement'); |
| 146 static const INVALID_USE_OF_SUPER = const MessageKind( | 148 static const INVALID_USE_OF_SUPER = const MessageKind( |
| 147 'super not allowed here'); | 149 'super not allowed here'); |
| 148 static const INVALID_CASE_DEFAULT = const MessageKind( | 150 static const INVALID_CASE_DEFAULT = const MessageKind( |
| 149 'default only allowed on last case of a switch'); | 151 'default only allowed on last case of a switch'); |
| 150 | 152 |
| 151 static const SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind( | 153 static const SWITCH_CASE_TYPES_NOT_EQUAL = const MessageKind( |
| 152 "case expressions don't all have the same type."); | 154 "case expressions don't all have the same type."); |
| 153 static const SWITCH_CASE_VALUE_OVERRIDES_EQUALS = const MessageKind( | 155 static const SWITCH_CASE_VALUE_OVERRIDES_EQUALS = const MessageKind( |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 | 408 |
| 407 class CompileTimeConstantError extends Diagnostic { | 409 class CompileTimeConstantError extends Diagnostic { |
| 408 CompileTimeConstantError(MessageKind kind, List arguments) | 410 CompileTimeConstantError(MessageKind kind, List arguments) |
| 409 : super(kind, arguments); | 411 : super(kind, arguments); |
| 410 } | 412 } |
| 411 | 413 |
| 412 class CompilationError extends Diagnostic { | 414 class CompilationError extends Diagnostic { |
| 413 CompilationError(MessageKind kind, List arguments) | 415 CompilationError(MessageKind kind, List arguments) |
| 414 : super(kind, arguments); | 416 : super(kind, arguments); |
| 415 } | 417 } |
| OLD | NEW |