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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 248 | 248 |
| 249 static const CANNOT_RESOLVE_SETTER = const MessageKind( | 249 static const CANNOT_RESOLVE_SETTER = const MessageKind( |
| 250 'cannot resolve setter.'); | 250 'cannot resolve setter.'); |
| 251 | 251 |
| 252 static const VOID_NOT_ALLOWED = const MessageKind( | 252 static const VOID_NOT_ALLOWED = const MessageKind( |
| 253 'type void is only allowed in a return type.'); | 253 'type void is only allowed in a return type.'); |
| 254 | 254 |
| 255 static const COMPILER_CRASHED = const MessageKind( | 255 static const COMPILER_CRASHED = const MessageKind( |
| 256 "Error: The compiler crashed when compiling this element."); | 256 "Error: The compiler crashed when compiling this element."); |
| 257 | 257 |
| 258 static const INVALID_SOURCE_FILE_LOCATION = const MessageKind(''' | |
|
ahe
2012/09/24 08:54:18
Please add this above COMPILER_CRASHED.
podivilov
2012/09/24 09:44:01
Done.
| |
| 259 Invalid offset (#{1}) in source map. | |
| 260 File: #{2} | |
| 261 Length: #{3}'''); | |
| 262 | |
| 258 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' | 263 static const PLEASE_REPORT_THE_CRASH = const MessageKind(''' |
| 259 The compiler is broken. | 264 The compiler is broken. |
| 260 | 265 |
| 261 When compiling the above element, the compiler crashed. It is not | 266 When compiling the above element, the compiler crashed. It is not |
| 262 possible to tell if this is caused by a problem in your program or | 267 possible to tell if this is caused by a problem in your program or |
| 263 not. Regardless, the compiler should not crash. | 268 not. Regardless, the compiler should not crash. |
| 264 | 269 |
| 265 The Dart team would greatly appreciate if you would take a moment to | 270 The Dart team would greatly appreciate if you would take a moment to |
| 266 report this problem at http://dartbug.com/new. | 271 report this problem at http://dartbug.com/new. |
| 267 | 272 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 342 | 347 |
| 343 class CompileTimeConstantError extends Diagnostic { | 348 class CompileTimeConstantError extends Diagnostic { |
| 344 CompileTimeConstantError(MessageKind kind, List arguments) | 349 CompileTimeConstantError(MessageKind kind, List arguments) |
| 345 : super(kind, arguments); | 350 : super(kind, arguments); |
| 346 } | 351 } |
| 347 | 352 |
| 348 class CompilationError extends Diagnostic { | 353 class CompilationError extends Diagnostic { |
| 349 CompilationError(MessageKind kind, List arguments) | 354 CompilationError(MessageKind kind, List arguments) |
| 350 : super(kind, arguments); | 355 : super(kind, arguments); |
| 351 } | 356 } |
| OLD | NEW |