OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 library fasta.kernel_field_builder; | 5 library fasta.kernel_field_builder; |
6 | 6 |
7 import 'package:front_end/src/fasta/kernel/body_builder.dart' show BodyBuilder; | 7 import 'package:front_end/src/fasta/kernel/body_builder.dart' show BodyBuilder; |
8 | 8 |
9 import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart' | 9 import 'package:front_end/src/fasta/kernel/kernel_shadow_ast.dart' |
10 show KernelField; | 10 show KernelField; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 Token token = parser.parseExpression(initializerTokenForInference); | 108 Token token = parser.parseExpression(initializerTokenForInference); |
109 Expression expression = bodyBuilder.popForValue(); | 109 Expression expression = bodyBuilder.popForValue(); |
110 bodyBuilder.checkEmpty(token.charOffset); | 110 bodyBuilder.checkEmpty(token.charOffset); |
111 initializer = expression; | 111 initializer = expression; |
112 } | 112 } |
113 } | 113 } |
114 } | 114 } |
115 | 115 |
116 @override | 116 @override |
117 DartType get builtType => field.type; | 117 DartType get builtType => field.type; |
| 118 |
| 119 @override |
| 120 bool get hasImplicitType => type == null; |
118 } | 121 } |
OLD | NEW |