| 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 class MessageKind { | 5 class MessageKind { |
| 6 final String template; | 6 final String template; |
| 7 const MessageKind(this.template); | 7 const MessageKind(this.template); |
| 8 | 8 |
| 9 static const GENERIC = const MessageKind('#{1}'); | 9 static const GENERIC = const MessageKind('#{1}'); |
| 10 | 10 |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 249 |
| 250 static const CANNOT_RESOLVE_GETTER = const MessageKind( | 250 static const CANNOT_RESOLVE_GETTER = const MessageKind( |
| 251 'cannot resolve getter.'); | 251 'cannot resolve getter.'); |
| 252 | 252 |
| 253 static const CANNOT_RESOLVE_SETTER = const MessageKind( | 253 static const CANNOT_RESOLVE_SETTER = const MessageKind( |
| 254 'cannot resolve setter.'); | 254 'cannot resolve setter.'); |
| 255 | 255 |
| 256 static const VOID_NOT_ALLOWED = const MessageKind( | 256 static const VOID_NOT_ALLOWED = const MessageKind( |
| 257 'type void is only allowed in a return type.'); | 257 'type void is only allowed in a return type.'); |
| 258 | 258 |
| 259 static const CANNOT_ACCESS_TYPE_VARIABLE_IN_STATIC_CONTEXT = |
| 260 const MessageKind( 'cannot access type variable #{1} in static context'); |
| 261 |
| 259 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' | 262 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' |
| 260 Invalid offset (#{1}) in source map. | 263 Invalid offset (#{1}) in source map. |
| 261 File: #{2} | 264 File: #{2} |
| 262 Length: #{3}'''); | 265 Length: #{3}'''); |
| 263 | 266 |
| 264 static const COMPILER_CRASHED = const MessageKind( | 267 static const COMPILER_CRASHED = const MessageKind( |
| 265 "Error: The compiler crashed when compiling this element."); | 268 "Error: The compiler crashed when compiling this element."); |
| 266 | 269 |
| 267 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' | 270 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' |
| 268 The compiler is broken. | 271 The compiler is broken. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 | 354 |
| 352 class CompileTimeConstantError extends Diagnostic { | 355 class CompileTimeConstantError extends Diagnostic { |
| 353 CompileTimeConstantError(MessageKind kind, List arguments) | 356 CompileTimeConstantError(MessageKind kind, List arguments) |
| 354 : super(kind, arguments); | 357 : super(kind, arguments); |
| 355 } | 358 } |
| 356 | 359 |
| 357 class CompilationError extends Diagnostic { | 360 class CompilationError extends Diagnostic { |
| 358 CompilationError(MessageKind kind, List arguments) | 361 CompilationError(MessageKind kind, List arguments) |
| 359 : super(kind, arguments); | 362 : super(kind, arguments); |
| 360 } | 363 } |
| OLD | NEW |