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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 ILLEGAL_MIXIN_OBJECT, | 227 ILLEGAL_MIXIN_OBJECT, |
228 ILLEGAL_MIXIN_SUPER_USE, | 228 ILLEGAL_MIXIN_SUPER_USE, |
229 ILLEGAL_MIXIN_SUPERCLASS, | 229 ILLEGAL_MIXIN_SUPERCLASS, |
230 ILLEGAL_MIXIN_WITH_SUPER, | 230 ILLEGAL_MIXIN_WITH_SUPER, |
231 ILLEGAL_SETTER_FORMALS, | 231 ILLEGAL_SETTER_FORMALS, |
232 ILLEGAL_STATIC, | 232 ILLEGAL_STATIC, |
233 ILLEGAL_SUPER_SEND, | 233 ILLEGAL_SUPER_SEND, |
234 IMPORT_BEFORE_PARTS, | 234 IMPORT_BEFORE_PARTS, |
235 IMPORT_EXPERIMENTAL_MIRRORS, | 235 IMPORT_EXPERIMENTAL_MIRRORS, |
236 IMPORT_PART_OF, | 236 IMPORT_PART_OF, |
| 237 IMPORT_PART_OF_HERE, |
237 IMPORTED_HERE, | 238 IMPORTED_HERE, |
238 INHERIT_GETTER_AND_METHOD, | 239 INHERIT_GETTER_AND_METHOD, |
239 INHERITED_EXPLICIT_GETTER, | 240 INHERITED_EXPLICIT_GETTER, |
240 INHERITED_IMPLICIT_GETTER, | 241 INHERITED_IMPLICIT_GETTER, |
241 INHERITED_METHOD, | 242 INHERITED_METHOD, |
242 INJECTED_PUBLIC_MEMBER, | 243 INJECTED_PUBLIC_MEMBER, |
243 INIT_STATIC_FIELD, | 244 INIT_STATIC_FIELD, |
244 INITIALIZING_FORMAL_NOT_ALLOWED, | 245 INITIALIZING_FORMAL_NOT_ALLOWED, |
245 INSTANCE_STATIC_SAME_NAME, | 246 INSTANCE_STATIC_SAME_NAME, |
246 INSTANCE_STATIC_SAME_NAME_CONT, | 247 INSTANCE_STATIC_SAME_NAME_CONT, |
(...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1947 | 1948 |
1948 import 'part.dart'; | 1949 import 'part.dart'; |
1949 | 1950 |
1950 main() {} | 1951 main() {} |
1951 """, | 1952 """, |
1952 | 1953 |
1953 'part.dart': """ | 1954 'part.dart': """ |
1954 part of library; | 1955 part of library; |
1955 """}]), | 1956 """}]), |
1956 | 1957 |
| 1958 MessageKind.IMPORT_PART_OF_HERE: |
| 1959 const MessageTemplate(MessageKind.IMPORT_PART_OF_HERE, |
| 1960 "The library is imported here."), |
| 1961 |
1957 MessageKind.LIBRARY_NAME_MISMATCH: | 1962 MessageKind.LIBRARY_NAME_MISMATCH: |
1958 const MessageTemplate(MessageKind.LIBRARY_NAME_MISMATCH, | 1963 const MessageTemplate(MessageKind.LIBRARY_NAME_MISMATCH, |
1959 "Expected part of library name '#{libraryName}'.", | 1964 "Expected part of library name '#{libraryName}'.", |
1960 howToFix: "Try changing the directive to 'part of #{libraryName};'.", | 1965 howToFix: "Try changing the directive to 'part of #{libraryName};'.", |
1961 examples: const [const { | 1966 examples: const [const { |
1962 'main.dart': """ | 1967 'main.dart': """ |
1963 library lib.foo; | 1968 library lib.foo; |
1964 | 1969 |
1965 part 'part.dart'; | 1970 part 'part.dart'; |
1966 | 1971 |
(...skipping 1672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3639 static String convertToString(value) { | 3644 static String convertToString(value) { |
3640 if (value is ErrorToken) { | 3645 if (value is ErrorToken) { |
3641 // Shouldn't happen. | 3646 // Shouldn't happen. |
3642 return value.assertionMessage; | 3647 return value.assertionMessage; |
3643 } else if (value is Token) { | 3648 } else if (value is Token) { |
3644 value = value.value; | 3649 value = value.value; |
3645 } | 3650 } |
3646 return '$value'; | 3651 return '$value'; |
3647 } | 3652 } |
3648 } | 3653 } |
OLD | NEW |