Chromium Code Reviews| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 252 | 252 |
| 253 static const CANNOT_RESOLVE_GETTER = const MessageKind( | 253 static const CANNOT_RESOLVE_GETTER = const MessageKind( |
| 254 'cannot resolve getter.'); | 254 'cannot resolve getter.'); |
| 255 | 255 |
| 256 static const CANNOT_RESOLVE_SETTER = const MessageKind( | 256 static const CANNOT_RESOLVE_SETTER = const MessageKind( |
| 257 'cannot resolve setter.'); | 257 'cannot resolve setter.'); |
| 258 | 258 |
| 259 static const VOID_NOT_ALLOWED = const MessageKind( | 259 static const VOID_NOT_ALLOWED = const MessageKind( |
| 260 'type void is only allowed in a return type.'); | 260 'type void is only allowed in a return type.'); |
| 261 | 261 |
| 262 static const CANNOT_ACCESS_TYPE_VARIABLE_IN_STATIC_CONTEXT = | |
| 263 const MessageKind( 'cannot access type variable #{1} in static context'); | |
|
ahe
2012/10/04 07:51:02
Extra space after (.
aam-me
2012/10/10 02:48:40
Done.
| |
| 264 | |
| 262 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' | 265 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' |
| 263 Invalid offset (#{1}) in source map. | 266 Invalid offset (#{1}) in source map. |
| 264 File: #{2} | 267 File: #{2} |
| 265 Length: #{3}'''); | 268 Length: #{3}'''); |
| 266 | 269 |
| 267 static const COMPILER_CRASHED = const MessageKind( | 270 static const COMPILER_CRASHED = const MessageKind( |
| 268 "Error: The compiler crashed when compiling this element."); | 271 "Error: The compiler crashed when compiling this element."); |
| 269 | 272 |
| 270 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' | 273 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' |
| 271 The compiler is broken. | 274 The compiler is broken. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 354 | 357 |
| 355 class CompileTimeConstantError extends Diagnostic { | 358 class CompileTimeConstantError extends Diagnostic { |
| 356 CompileTimeConstantError(MessageKind kind, List arguments) | 359 CompileTimeConstantError(MessageKind kind, List arguments) |
| 357 : super(kind, arguments); | 360 : super(kind, arguments); |
| 358 } | 361 } |
| 359 | 362 |
| 360 class CompilationError extends Diagnostic { | 363 class CompilationError extends Diagnostic { |
| 361 CompilationError(MessageKind kind, List arguments) | 364 CompilationError(MessageKind kind, List arguments) |
| 362 : super(kind, arguments); | 365 : super(kind, arguments); |
| 363 } | 366 } |
| OLD | NEW |