| 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 const DONT_KNOW_HOW_TO_FIX = ""; | 7 const DONT_KNOW_HOW_TO_FIX = ""; |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * The messages in this file should meet the following guide lines: | 10 * The messages in this file should meet the following guide lines: |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 | 411 |
| 412 static const DualKind NO_SUCH_LIBRARY_MEMBER = const DualKind( | 412 static const DualKind NO_SUCH_LIBRARY_MEMBER = const DualKind( |
| 413 error: const MessageKind( | 413 error: const MessageKind( |
| 414 'Error: "#{libraryName}" has no member named "#{memberName}".'), | 414 'Error: "#{libraryName}" has no member named "#{memberName}".'), |
| 415 warning: const MessageKind( | 415 warning: const MessageKind( |
| 416 'Warning: "#{libraryName}" has no member named "#{memberName}".')); | 416 'Warning: "#{libraryName}" has no member named "#{memberName}".')); |
| 417 | 417 |
| 418 static const MessageKind CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( | 418 static const MessageKind CANNOT_INSTANTIATE_TYPEDEF = const MessageKind( |
| 419 'Error: Cannot instantiate typedef "#{typedefName}".'); | 419 'Error: Cannot instantiate typedef "#{typedefName}".'); |
| 420 | 420 |
| 421 static const MessageKind TYPEDEF_FORMAL_WITH_DEFAULT = const MessageKind( |
| 422 "Error: A parameter of a typedef can't specify a default value.", |
| 423 howToFix: "Remove the default value.", |
| 424 examples: const [""" |
| 425 typedef void F([int arg = 0]); |
| 426 |
| 427 main() { |
| 428 F f; |
| 429 }""", """ |
| 430 typedef void F({int arg: 0}); |
| 431 |
| 432 main() { |
| 433 F f; |
| 434 }"""]); |
| 435 |
| 421 static const MessageKind CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind( | 436 static const MessageKind CANNOT_INSTANTIATE_TYPE_VARIABLE = const MessageKind( |
| 422 'Error: Cannot instantiate type variable "#{typeVariableName}".'); | 437 'Error: Cannot instantiate type variable "#{typeVariableName}".'); |
| 423 | 438 |
| 424 static const MessageKind CYCLIC_TYPE_VARIABLE = const MessageKind( | 439 static const MessageKind CYCLIC_TYPE_VARIABLE = const MessageKind( |
| 425 'Warning: Type variable "#{typeVariableName}" is a supertype of itself.'); | 440 'Warning: Type variable "#{typeVariableName}" is a supertype of itself.'); |
| 426 | 441 |
| 427 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( | 442 static const MessageKind CLASS_NAME_EXPECTED = const MessageKind( |
| 428 'Error: Class name expected.'); | 443 'Error: Class name expected.'); |
| 429 | 444 |
| 430 static const MessageKind CANNOT_EXTEND = const MessageKind( | 445 static const MessageKind CANNOT_EXTEND = const MessageKind( |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 | 1085 |
| 1071 class CompileTimeConstantError extends Diagnostic { | 1086 class CompileTimeConstantError extends Diagnostic { |
| 1072 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) | 1087 CompileTimeConstantError(MessageKind kind, Map arguments, bool terse) |
| 1073 : super(kind, arguments, terse); | 1088 : super(kind, arguments, terse); |
| 1074 } | 1089 } |
| 1075 | 1090 |
| 1076 class CompilationError extends Diagnostic { | 1091 class CompilationError extends Diagnostic { |
| 1077 CompilationError(MessageKind kind, Map arguments, bool terse) | 1092 CompilationError(MessageKind kind, Map arguments, bool terse) |
| 1078 : super(kind, arguments, terse); | 1093 : super(kind, arguments, terse); |
| 1079 } | 1094 } |
| OLD | NEW |