OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 DON'T EDIT. GENERATED. DON'T EDIT. | 5 DON'T EDIT. GENERATED. DON'T EDIT. |
6 This file has been generated by 'publish.dart' in the dart_messages package. | 6 This file has been generated by 'publish.dart' in the dart_messages package. |
7 | 7 |
8 Messages are maintained in `lib/shared_messages.dart` of that same package. | 8 Messages are maintained in `lib/shared_messages.dart` of that same package. |
9 After any change to that file, run `bin/publish.dart` to generate a new version | 9 After any change to that file, run `bin/publish.dart` to generate a new version |
10 of the json, dart2js and analyzer representations. | 10 of the json, dart2js and analyzer representations. |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 r""" | 113 r""" |
114 foo() async* { return 0; } | 114 foo() async* { return 0; } |
115 main() => foo(); | 115 main() => foo(); |
116 """, | 116 """, |
117 r""" | 117 r""" |
118 foo() sync* { return 0; } | 118 foo() sync* { return 0; } |
119 main() => foo(); | 119 main() => foo(); |
120 """, | 120 """, |
121 ] | 121 ] |
122 ), // Generated. Don't edit. | 122 ), // Generated. Don't edit. |
| 123 MessageKind.NOT_ASSIGNABLE: const MessageTemplate( |
| 124 MessageKind.NOT_ASSIGNABLE, |
| 125 "'#{fromType}' is not assignable to '#{toType}'." ), // Generated. Don't e
dit. |
| 126 MessageKind.FORIN_NOT_ASSIGNABLE: const MessageTemplate( |
| 127 MessageKind.FORIN_NOT_ASSIGNABLE, |
| 128 "The element type '#{currentType}' of '#{expressionType}' is not assignable
to '#{elementType}'.", |
| 129 examples: const [ |
| 130 r""" |
| 131 main() { |
| 132 List<int> list = <int>[1, 2]; |
| 133 for (String x in list) x; |
| 134 } |
| 135 """, |
| 136 ] |
| 137 ), // Generated. Don't edit. |
123 }; | 138 }; |
OLD | NEW |