| 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 | 302 |
| 303 static const ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind( | 303 static const ILLEGAL_CONSTRUCTOR_MODIFIERS = const MessageKind( |
| 304 "Error: illegal constructor modifiers: #{1}."); | 304 "Error: illegal constructor modifiers: #{1}."); |
| 305 | 305 |
| 306 static const ILLEGAL_MIXIN_APPLICATION_MODIFIERS = const MessageKind( | 306 static const ILLEGAL_MIXIN_APPLICATION_MODIFIERS = const MessageKind( |
| 307 "Error: illegal mixin application modifiers: #{1}."); | 307 "Error: illegal mixin application modifiers: #{1}."); |
| 308 | 308 |
| 309 static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind( | 309 static const ILLEGAL_MIXIN_SUPERCLASS = const MessageKind( |
| 310 "Error: class used as mixin must have Object as superclass."); | 310 "Error: class used as mixin must have Object as superclass."); |
| 311 | 311 |
| 312 static const ILLEGAL_MIXIN_CONSTRUCTOR = const MessageKind( |
| 313 "Error: class used as mixin cannot have non-factory constructor."); |
| 314 |
| 312 static const PARAMETER_NAME_EXPECTED = const MessageKind( | 315 static const PARAMETER_NAME_EXPECTED = const MessageKind( |
| 313 "Error: parameter name expected."); | 316 "Error: parameter name expected."); |
| 314 | 317 |
| 315 static const CANNOT_RESOLVE_GETTER = const MessageKind( | 318 static const CANNOT_RESOLVE_GETTER = const MessageKind( |
| 316 'cannot resolve getter.'); | 319 'cannot resolve getter.'); |
| 317 | 320 |
| 318 static const CANNOT_RESOLVE_SETTER = const MessageKind( | 321 static const CANNOT_RESOLVE_SETTER = const MessageKind( |
| 319 'cannot resolve setter.'); | 322 'cannot resolve setter.'); |
| 320 | 323 |
| 321 static const VOID_NOT_ALLOWED = const MessageKind( | 324 static const VOID_NOT_ALLOWED = const MessageKind( |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 | 475 |
| 473 class CompileTimeConstantError extends Diagnostic { | 476 class CompileTimeConstantError extends Diagnostic { |
| 474 CompileTimeConstantError(MessageKind kind, List arguments) | 477 CompileTimeConstantError(MessageKind kind, List arguments) |
| 475 : super(kind, arguments); | 478 : super(kind, arguments); |
| 476 } | 479 } |
| 477 | 480 |
| 478 class CompilationError extends Diagnostic { | 481 class CompilationError extends Diagnostic { |
| 479 CompilationError(MessageKind kind, List arguments) | 482 CompilationError(MessageKind kind, List arguments) |
| 480 : super(kind, arguments); | 483 : super(kind, arguments); |
| 481 } | 484 } |
| OLD | NEW |