| 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 | 5 |
| 6 /** | 6 /** |
| 7 * The messages in this file should meet the following guide lines: | 7 * The messages in this file should meet the following guide lines: |
| 8 * | 8 * |
| 9 * 1. The message should be a complete sentence starting with an uppercase | 9 * 1. The message should be a complete sentence starting with an uppercase |
| 10 * letter, and ending with a period. | 10 * letter, and ending with a period. |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 CANNOT_OVERRIDE_GETTER_WITH_METHOD_CONT, | 125 CANNOT_OVERRIDE_GETTER_WITH_METHOD_CONT, |
| 126 CANNOT_OVERRIDE_METHOD_WITH_FIELD, | 126 CANNOT_OVERRIDE_METHOD_WITH_FIELD, |
| 127 CANNOT_OVERRIDE_METHOD_WITH_FIELD_CONT, | 127 CANNOT_OVERRIDE_METHOD_WITH_FIELD_CONT, |
| 128 CANNOT_OVERRIDE_METHOD_WITH_GETTER, | 128 CANNOT_OVERRIDE_METHOD_WITH_GETTER, |
| 129 CANNOT_OVERRIDE_METHOD_WITH_GETTER_CONT, | 129 CANNOT_OVERRIDE_METHOD_WITH_GETTER_CONT, |
| 130 CANNOT_RESOLVE, | 130 CANNOT_RESOLVE, |
| 131 CANNOT_RESOLVE_AWAIT, | 131 CANNOT_RESOLVE_AWAIT, |
| 132 CANNOT_RESOLVE_AWAIT_IN_CLOSURE, | 132 CANNOT_RESOLVE_AWAIT_IN_CLOSURE, |
| 133 CANNOT_RESOLVE_CONSTRUCTOR, | 133 CANNOT_RESOLVE_CONSTRUCTOR, |
| 134 CANNOT_RESOLVE_CONSTRUCTOR_FOR_IMPLICIT, | 134 CANNOT_RESOLVE_CONSTRUCTOR_FOR_IMPLICIT, |
| 135 CANNOT_RESOLVE_GETTER, | 135 UNDEFINED_STATIC_GETTER_BUT_SETTER, |
| 136 CANNOT_RESOLVE_IN_INITIALIZER, | 136 CANNOT_RESOLVE_IN_INITIALIZER, |
| 137 CANNOT_RESOLVE_SETTER, | 137 UNDEFINED_STATIC_SETTER_BUT_GETTER, |
| 138 CANNOT_RESOLVE_TYPE, | 138 CANNOT_RESOLVE_TYPE, |
| 139 RETURN_IN_GENERATIVE_CONSTRUCTOR, | 139 RETURN_IN_GENERATIVE_CONSTRUCTOR, |
| 140 CLASS_NAME_EXPECTED, | 140 CLASS_NAME_EXPECTED, |
| 141 COMPILER_CRASHED, | 141 COMPILER_CRASHED, |
| 142 COMPLEX_RETURNING_NSM, | 142 COMPLEX_RETURNING_NSM, |
| 143 COMPLEX_THROWING_NSM, | 143 COMPLEX_THROWING_NSM, |
| 144 CONSIDER_ANALYZE_ALL, | 144 CONSIDER_ANALYZE_ALL, |
| 145 CONST_CALLS_NON_CONST, | 145 CONST_CALLS_NON_CONST, |
| 146 CONST_CALLS_NON_CONST_FOR_IMPLICIT, | 146 CONST_CALLS_NON_CONST_FOR_IMPLICIT, |
| 147 CONST_CONSTRUCTOR_OR_FACTORY_WITH_BODY, | 147 CONST_CONSTRUCTOR_OR_FACTORY_WITH_BODY, |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 FACTORY_REDIRECTION_IN_NON_FACTORY, | 205 FACTORY_REDIRECTION_IN_NON_FACTORY, |
| 206 FINAL_FUNCTION_TYPE_PARAMETER, | 206 FINAL_FUNCTION_TYPE_PARAMETER, |
| 207 FINAL_WITHOUT_INITIALIZER, | 207 FINAL_WITHOUT_INITIALIZER, |
| 208 FORIN_NOT_ASSIGNABLE, | 208 FORIN_NOT_ASSIGNABLE, |
| 209 FORMAL_DECLARED_CONST, | 209 FORMAL_DECLARED_CONST, |
| 210 FORMAL_DECLARED_STATIC, | 210 FORMAL_DECLARED_STATIC, |
| 211 FUNCTION_TYPE_FORMAL_WITH_DEFAULT, | 211 FUNCTION_TYPE_FORMAL_WITH_DEFAULT, |
| 212 FUNCTION_WITH_INITIALIZER, | 212 FUNCTION_WITH_INITIALIZER, |
| 213 GENERIC, | 213 GENERIC, |
| 214 GETTER_MISMATCH, | 214 GETTER_MISMATCH, |
| 215 GETTER_NOT_FOUND, | 215 UNDEFINED_INSTANCE_GETTER_BUT_SETTER, |
| 216 HEX_DIGIT_EXPECTED, | 216 HEX_DIGIT_EXPECTED, |
| 217 HIDDEN_HINTS, | 217 HIDDEN_HINTS, |
| 218 HIDDEN_IMPLICIT_IMPORT, | 218 HIDDEN_IMPLICIT_IMPORT, |
| 219 HIDDEN_IMPORT, | 219 HIDDEN_IMPORT, |
| 220 HIDDEN_WARNINGS, | 220 HIDDEN_WARNINGS, |
| 221 HIDDEN_WARNINGS_HINTS, | 221 HIDDEN_WARNINGS_HINTS, |
| 222 IF_NULL_ASSIGNING_TYPE, | 222 IF_NULL_ASSIGNING_TYPE, |
| 223 ILLEGAL_CONST_FIELD_MODIFIER, | 223 ILLEGAL_CONST_FIELD_MODIFIER, |
| 224 ILLEGAL_CONSTRUCTOR_MODIFIERS, | 224 ILLEGAL_CONSTRUCTOR_MODIFIERS, |
| 225 ILLEGAL_FINAL_METHOD_MODIFIER, | 225 ILLEGAL_FINAL_METHOD_MODIFIER, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 293 JS_OBJECT_LITERAL_CONSTRUCTOR_WITH_POSITIONAL_ARGUMENTS, | 293 JS_OBJECT_LITERAL_CONSTRUCTOR_WITH_POSITIONAL_ARGUMENTS, |
| 294 JS_PLACEHOLDER_CAPTURE, | 294 JS_PLACEHOLDER_CAPTURE, |
| 295 LIBRARY_NAME_MISMATCH, | 295 LIBRARY_NAME_MISMATCH, |
| 296 LIBRARY_NOT_FOUND, | 296 LIBRARY_NOT_FOUND, |
| 297 LIBRARY_NOT_SUPPORTED, | 297 LIBRARY_NOT_SUPPORTED, |
| 298 LIBRARY_TAG_MUST_BE_FIRST, | 298 LIBRARY_TAG_MUST_BE_FIRST, |
| 299 MAIN_HAS_PART_OF, | 299 MAIN_HAS_PART_OF, |
| 300 MAIN_NOT_A_FUNCTION, | 300 MAIN_NOT_A_FUNCTION, |
| 301 MAIN_WITH_EXTRA_PARAMETER, | 301 MAIN_WITH_EXTRA_PARAMETER, |
| 302 MALFORMED_STRING_LITERAL, | 302 MALFORMED_STRING_LITERAL, |
| 303 MEMBER_NOT_FOUND, | 303 UNDEFINED_GETTER, |
| 304 MEMBER_NOT_STATIC, | 304 MEMBER_NOT_STATIC, |
| 305 MEMBER_USES_CLASS_NAME, | 305 MEMBER_USES_CLASS_NAME, |
| 306 METHOD_NOT_FOUND, | 306 UNDEFINED_METHOD, |
| 307 MINUS_OPERATOR_BAD_ARITY, | 307 MINUS_OPERATOR_BAD_ARITY, |
| 308 MIRROR_BLOAT, | 308 MIRROR_BLOAT, |
| 309 MIRROR_IMPORT, | 309 MIRROR_IMPORT, |
| 310 MIRROR_IMPORT_NO_USAGE, | 310 MIRROR_IMPORT_NO_USAGE, |
| 311 MIRRORS_CANNOT_FIND_IN_ELEMENT, | 311 MIRRORS_CANNOT_FIND_IN_ELEMENT, |
| 312 MIRRORS_CANNOT_RESOLVE_IN_CURRENT_LIBRARY, | 312 MIRRORS_CANNOT_RESOLVE_IN_CURRENT_LIBRARY, |
| 313 MIRRORS_CANNOT_RESOLVE_IN_LIBRARY, | 313 MIRRORS_CANNOT_RESOLVE_IN_LIBRARY, |
| 314 MIRRORS_EXPECTED_STRING, | 314 MIRRORS_EXPECTED_STRING, |
| 315 MIRRORS_EXPECTED_STRING_OR_LIST, | 315 MIRRORS_EXPECTED_STRING_OR_LIST, |
| 316 MIRRORS_EXPECTED_STRING_OR_TYPE, | 316 MIRRORS_EXPECTED_STRING_OR_TYPE, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 NOT_A_TYPE, | 352 NOT_A_TYPE, |
| 353 NOT_ASSIGNABLE, | 353 NOT_ASSIGNABLE, |
| 354 NOT_CALLABLE, | 354 NOT_CALLABLE, |
| 355 NOT_INSTANCE_FIELD, | 355 NOT_INSTANCE_FIELD, |
| 356 NOT_MORE_SPECIFIC, | 356 NOT_MORE_SPECIFIC, |
| 357 NOT_MORE_SPECIFIC_SUBTYPE, | 357 NOT_MORE_SPECIFIC_SUBTYPE, |
| 358 NOT_MORE_SPECIFIC_SUGGESTION, | 358 NOT_MORE_SPECIFIC_SUGGESTION, |
| 359 NULL_NOT_ALLOWED, | 359 NULL_NOT_ALLOWED, |
| 360 ONLY_ONE_LIBRARY_TAG, | 360 ONLY_ONE_LIBRARY_TAG, |
| 361 OPERATOR_NAMED_PARAMETERS, | 361 OPERATOR_NAMED_PARAMETERS, |
| 362 OPERATOR_NOT_FOUND, | 362 UNDEFINED_OPERATOR, |
| 363 OPERATOR_OPTIONAL_PARAMETERS, | 363 OPERATOR_OPTIONAL_PARAMETERS, |
| 364 OPTIONAL_PARAMETER_IN_CATCH, | 364 OPTIONAL_PARAMETER_IN_CATCH, |
| 365 OVERRIDE_EQUALS_NOT_HASH_CODE, | 365 OVERRIDE_EQUALS_NOT_HASH_CODE, |
| 366 PARAMETER_NAME_EXPECTED, | 366 PARAMETER_NAME_EXPECTED, |
| 367 PARAMETER_WITH_MODIFIER_IN_CATCH, | 367 PARAMETER_WITH_MODIFIER_IN_CATCH, |
| 368 PARAMETER_WITH_TYPE_IN_CATCH, | 368 PARAMETER_WITH_TYPE_IN_CATCH, |
| 369 PATCH_EXTERNAL_WITHOUT_IMPLEMENTATION, | 369 PATCH_EXTERNAL_WITHOUT_IMPLEMENTATION, |
| 370 PATCH_NO_GETTER, | 370 PATCH_NO_GETTER, |
| 371 PATCH_NO_SETTER, | 371 PATCH_NO_SETTER, |
| 372 PATCH_NON_CLASS, | 372 PATCH_NON_CLASS, |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 REDIRECTING_CONSTRUCTOR_CYCLE, | 405 REDIRECTING_CONSTRUCTOR_CYCLE, |
| 406 REDIRECTING_CONSTRUCTOR_HAS_BODY, | 406 REDIRECTING_CONSTRUCTOR_HAS_BODY, |
| 407 REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER, | 407 REDIRECTING_CONSTRUCTOR_HAS_INITIALIZER, |
| 408 REDIRECTING_FACTORY_WITH_DEFAULT, | 408 REDIRECTING_FACTORY_WITH_DEFAULT, |
| 409 REFERENCE_IN_INITIALIZATION, | 409 REFERENCE_IN_INITIALIZATION, |
| 410 REQUIRED_PARAMETER_WITH_DEFAULT, | 410 REQUIRED_PARAMETER_WITH_DEFAULT, |
| 411 RETURN_IN_GENERATOR, | 411 RETURN_IN_GENERATOR, |
| 412 RETURN_NOTHING, | 412 RETURN_NOTHING, |
| 413 RETURN_VALUE_IN_VOID, | 413 RETURN_VALUE_IN_VOID, |
| 414 SETTER_MISMATCH, | 414 SETTER_MISMATCH, |
| 415 SETTER_NOT_FOUND, | 415 UNDEFINED_SETTER, |
| 416 SETTER_NOT_FOUND_IN_SUPER, | 416 UNDEFINED_SUPER_SETTER, |
| 417 STATIC_FUNCTION_BLOAT, | 417 STATIC_FUNCTION_BLOAT, |
| 418 STRING_EXPECTED, | 418 STRING_EXPECTED, |
| 419 SUPER_CALL_TO_FACTORY, | 419 SUPER_CALL_TO_FACTORY, |
| 420 SUPER_INITIALIZER_IN_OBJECT, | 420 SUPER_INITIALIZER_IN_OBJECT, |
| 421 SWITCH_CASE_FORBIDDEN, | 421 SWITCH_CASE_FORBIDDEN, |
| 422 SWITCH_CASE_TYPES_NOT_EQUAL, | 422 SWITCH_CASE_TYPES_NOT_EQUAL, |
| 423 SWITCH_CASE_TYPES_NOT_EQUAL_CASE, | 423 SWITCH_CASE_TYPES_NOT_EQUAL_CASE, |
| 424 SWITCH_CASE_VALUE_OVERRIDES_EQUALS, | 424 SWITCH_CASE_VALUE_OVERRIDES_EQUALS, |
| 425 TERNARY_OPERATOR_BAD_ARITY, | 425 TERNARY_OPERATOR_BAD_ARITY, |
| 426 THIS_CALL_TO_FACTORY, | 426 THIS_CALL_TO_FACTORY, |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 539 "Missing argument of type '#{argumentType}'."), | 539 "Missing argument of type '#{argumentType}'."), |
| 540 | 540 |
| 541 MessageKind.ADDITIONAL_ARGUMENT: | 541 MessageKind.ADDITIONAL_ARGUMENT: |
| 542 const MessageTemplate(MessageKind.ADDITIONAL_ARGUMENT, | 542 const MessageTemplate(MessageKind.ADDITIONAL_ARGUMENT, |
| 543 "Additional argument."), | 543 "Additional argument."), |
| 544 | 544 |
| 545 MessageKind.NAMED_ARGUMENT_NOT_FOUND: | 545 MessageKind.NAMED_ARGUMENT_NOT_FOUND: |
| 546 const MessageTemplate(MessageKind.NAMED_ARGUMENT_NOT_FOUND, | 546 const MessageTemplate(MessageKind.NAMED_ARGUMENT_NOT_FOUND, |
| 547 "No named argument '#{argumentName}' found on method."), | 547 "No named argument '#{argumentName}' found on method."), |
| 548 | 548 |
| 549 MessageKind.MEMBER_NOT_FOUND: | |
| 550 const MessageTemplate(MessageKind.MEMBER_NOT_FOUND, | |
| 551 "No member named '#{memberName}' in class '#{className}'."), | |
| 552 | |
| 553 MessageKind.AWAIT_MEMBER_NOT_FOUND: | 549 MessageKind.AWAIT_MEMBER_NOT_FOUND: |
| 554 const MessageTemplate(MessageKind.AWAIT_MEMBER_NOT_FOUND, | 550 const MessageTemplate(MessageKind.AWAIT_MEMBER_NOT_FOUND, |
| 555 "No member named 'await' in class '#{className}'.", | 551 "No member named 'await' in class '#{className}'.", |
| 556 howToFix: "Did you mean to add the 'async' marker " | 552 howToFix: "Did you mean to add the 'async' marker " |
| 557 "to '#{functionName}'?", | 553 "to '#{functionName}'?", |
| 558 examples: const [""" | 554 examples: const [""" |
| 559 class A { | 555 class A { |
| 560 m() => await -3; | 556 m() => await -3; |
| 561 } | 557 } |
| 562 main() => new A().m(); | 558 main() => new A().m(); |
| 563 """]), | 559 """]), |
| 564 | 560 |
| 565 MessageKind.AWAIT_MEMBER_NOT_FOUND_IN_CLOSURE: | 561 MessageKind.AWAIT_MEMBER_NOT_FOUND_IN_CLOSURE: |
| 566 const MessageTemplate(MessageKind.AWAIT_MEMBER_NOT_FOUND_IN_CLOSURE, | 562 const MessageTemplate(MessageKind.AWAIT_MEMBER_NOT_FOUND_IN_CLOSURE, |
| 567 "No member named 'await' in class '#{className}'.", | 563 "No member named 'await' in class '#{className}'.", |
| 568 howToFix: "Did you mean to add the 'async' marker " | 564 howToFix: "Did you mean to add the 'async' marker " |
| 569 "to the enclosing function?", | 565 "to the enclosing function?", |
| 570 examples: const [""" | 566 examples: const [""" |
| 571 class A { | 567 class A { |
| 572 m() => () => await -3; | 568 m() => () => await -3; |
| 573 } | 569 } |
| 574 main() => new A().m(); | 570 main() => new A().m(); |
| 575 """]), | 571 """]), |
| 576 | 572 |
| 577 MessageKind.METHOD_NOT_FOUND: | |
| 578 const MessageTemplate(MessageKind.METHOD_NOT_FOUND, | |
| 579 "No method named '#{memberName}' in class '#{className}'."), | |
| 580 | |
| 581 MessageKind.OPERATOR_NOT_FOUND: | |
| 582 const MessageTemplate(MessageKind.OPERATOR_NOT_FOUND, | |
| 583 "No operator '#{memberName}' in class '#{className}'."), | |
| 584 | |
| 585 MessageKind.SETTER_NOT_FOUND: | |
| 586 const MessageTemplate(MessageKind.SETTER_NOT_FOUND, | |
| 587 "No setter named '#{memberName}' in class '#{className}'."), | |
| 588 | |
| 589 MessageKind.SETTER_NOT_FOUND_IN_SUPER: | |
| 590 const MessageTemplate(MessageKind.SETTER_NOT_FOUND_IN_SUPER, | |
| 591 "No setter named '#{name}' in superclass of '#{className}'."), | |
| 592 | |
| 593 MessageKind.GETTER_NOT_FOUND: | |
| 594 const MessageTemplate(MessageKind.GETTER_NOT_FOUND, | |
| 595 "No getter named '#{memberName}' in class '#{className}'."), | |
| 596 | |
| 597 MessageKind.NOT_CALLABLE: | 573 MessageKind.NOT_CALLABLE: |
| 598 const MessageTemplate(MessageKind.NOT_CALLABLE, | 574 const MessageTemplate(MessageKind.NOT_CALLABLE, |
| 599 "'#{elementName}' is not callable."), | 575 "'#{elementName}' is not callable."), |
| 600 | 576 |
| 601 MessageKind.MEMBER_NOT_STATIC: | 577 MessageKind.MEMBER_NOT_STATIC: |
| 602 const MessageTemplate(MessageKind.MEMBER_NOT_STATIC, | 578 const MessageTemplate(MessageKind.MEMBER_NOT_STATIC, |
| 603 "'#{className}.#{memberName}' is not static."), | 579 "'#{className}.#{memberName}' is not static."), |
| 604 | 580 |
| 605 MessageKind.NO_INSTANCE_AVAILABLE: | 581 MessageKind.NO_INSTANCE_AVAILABLE: |
| 606 const MessageTemplate(MessageKind.NO_INSTANCE_AVAILABLE, | 582 const MessageTemplate(MessageKind.NO_INSTANCE_AVAILABLE, |
| (...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1636 MessageKind.MULTI_INHERITANCE: | 1612 MessageKind.MULTI_INHERITANCE: |
| 1637 const MessageTemplate(MessageKind.MULTI_INHERITANCE, | 1613 const MessageTemplate(MessageKind.MULTI_INHERITANCE, |
| 1638 "Dart2js does not currently support inheritance of the same class " | 1614 "Dart2js does not currently support inheritance of the same class " |
| 1639 "with different type arguments: Both #{firstType} and #{secondType} " | 1615 "with different type arguments: Both #{firstType} and #{secondType} " |
| 1640 "are supertypes of #{thisType}."), | 1616 "are supertypes of #{thisType}."), |
| 1641 | 1617 |
| 1642 MessageKind.ILLEGAL_SUPER_SEND: | 1618 MessageKind.ILLEGAL_SUPER_SEND: |
| 1643 const MessageTemplate(MessageKind.ILLEGAL_SUPER_SEND, | 1619 const MessageTemplate(MessageKind.ILLEGAL_SUPER_SEND, |
| 1644 "'#{name}' cannot be called on super."), | 1620 "'#{name}' cannot be called on super."), |
| 1645 | 1621 |
| 1646 MessageKind.NO_SUCH_SUPER_MEMBER: | |
| 1647 const MessageTemplate(MessageKind.NO_SUCH_SUPER_MEMBER, | |
| 1648 "Cannot resolve '#{memberName}' in a superclass of '#{className}'."), | |
| 1649 | |
| 1650 MessageKind.ADDITIONAL_TYPE_ARGUMENT: | 1622 MessageKind.ADDITIONAL_TYPE_ARGUMENT: |
| 1651 const MessageTemplate(MessageKind.ADDITIONAL_TYPE_ARGUMENT, | 1623 const MessageTemplate(MessageKind.ADDITIONAL_TYPE_ARGUMENT, |
| 1652 "Additional type argument."), | 1624 "Additional type argument."), |
| 1653 | 1625 |
| 1654 MessageKind.MISSING_TYPE_ARGUMENT: | 1626 MessageKind.MISSING_TYPE_ARGUMENT: |
| 1655 const MessageTemplate(MessageKind.MISSING_TYPE_ARGUMENT, | 1627 const MessageTemplate(MessageKind.MISSING_TYPE_ARGUMENT, |
| 1656 "Missing type argument."), | 1628 "Missing type argument."), |
| 1657 | 1629 |
| 1658 // TODO(johnniwinther): Use ADDITIONAL_TYPE_ARGUMENT or | 1630 // TODO(johnniwinther): Use ADDITIONAL_TYPE_ARGUMENT or |
| 1659 // MISSING_TYPE_ARGUMENT instead. | 1631 // MISSING_TYPE_ARGUMENT instead. |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1880 "'super'."), | 1852 "'super'."), |
| 1881 | 1853 |
| 1882 MessageKind.ILLEGAL_MIXIN_SUPER_USE: | 1854 MessageKind.ILLEGAL_MIXIN_SUPER_USE: |
| 1883 const MessageTemplate(MessageKind.ILLEGAL_MIXIN_SUPER_USE, | 1855 const MessageTemplate(MessageKind.ILLEGAL_MIXIN_SUPER_USE, |
| 1884 "Use of 'super' in class used as mixin."), | 1856 "Use of 'super' in class used as mixin."), |
| 1885 | 1857 |
| 1886 MessageKind.PARAMETER_NAME_EXPECTED: | 1858 MessageKind.PARAMETER_NAME_EXPECTED: |
| 1887 const MessageTemplate(MessageKind.PARAMETER_NAME_EXPECTED, | 1859 const MessageTemplate(MessageKind.PARAMETER_NAME_EXPECTED, |
| 1888 "parameter name expected."), | 1860 "parameter name expected."), |
| 1889 | 1861 |
| 1890 MessageKind.CANNOT_RESOLVE_GETTER: | 1862 MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER: |
| 1891 const MessageTemplate(MessageKind.CANNOT_RESOLVE_GETTER, | 1863 const MessageTemplate(MessageKind.UNDEFINED_STATIC_SETTER_BUT_GETTER, |
| 1892 "Cannot resolve getter."), | |
| 1893 | |
| 1894 MessageKind.CANNOT_RESOLVE_SETTER: | |
| 1895 const MessageTemplate(MessageKind.CANNOT_RESOLVE_SETTER, | |
| 1896 "Cannot resolve setter."), | 1864 "Cannot resolve setter."), |
| 1897 | 1865 |
| 1898 MessageKind.ASSIGNING_FINAL_FIELD_IN_SUPER: | 1866 MessageKind.ASSIGNING_FINAL_FIELD_IN_SUPER: |
| 1899 const MessageTemplate(MessageKind.ASSIGNING_FINAL_FIELD_IN_SUPER, | 1867 const MessageTemplate(MessageKind.ASSIGNING_FINAL_FIELD_IN_SUPER, |
| 1900 "Cannot assign a value to final field '#{name}' " | 1868 "Cannot assign a value to final field '#{name}' " |
| 1901 "in superclass '#{superclassName}'."), | 1869 "in superclass '#{superclassName}'."), |
| 1902 | 1870 |
| 1903 MessageKind.ASSIGNING_METHOD: | 1871 MessageKind.ASSIGNING_METHOD: |
| 1904 const MessageTemplate(MessageKind.ASSIGNING_METHOD, | 1872 const MessageTemplate(MessageKind.ASSIGNING_METHOD, |
| 1905 "Cannot assign a value to a method."), | 1873 "Cannot assign a value to a method."), |
| (...skipping 1749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3655 static String convertToString(value) { | 3623 static String convertToString(value) { |
| 3656 if (value is ErrorToken) { | 3624 if (value is ErrorToken) { |
| 3657 // Shouldn't happen. | 3625 // Shouldn't happen. |
| 3658 return value.assertionMessage; | 3626 return value.assertionMessage; |
| 3659 } else if (value is Token) { | 3627 } else if (value is Token) { |
| 3660 value = value.value; | 3628 value = value.value; |
| 3661 } | 3629 } |
| 3662 return '$value'; | 3630 return '$value'; |
| 3663 } | 3631 } |
| 3664 } | 3632 } |
| OLD | NEW |