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.field_builder; | 5 library fasta.field_builder; |
6 | 6 |
7 import 'builder.dart' show LibraryBuilder, MemberBuilder; | 7 import 'builder.dart' show LibraryBuilder, MemberBuilder; |
8 | 8 |
9 import 'package:kernel/ast.dart' show DartType; | 9 import 'package:kernel/ast.dart' show DartType; |
10 | 10 |
11 abstract class FieldBuilder<T> extends MemberBuilder { | 11 abstract class FieldBuilder<T> extends MemberBuilder { |
12 final String name; | 12 final String name; |
13 | 13 |
14 final int modifiers; | 14 final int modifiers; |
15 | 15 |
16 FieldBuilder( | 16 FieldBuilder( |
17 this.name, this.modifiers, LibraryBuilder compilationUnit, int charOffset) | 17 this.name, this.modifiers, LibraryBuilder compilationUnit, int charOffset) |
18 : super(compilationUnit, charOffset); | 18 : super(compilationUnit, charOffset); |
19 | 19 |
20 DartType get builtType; | 20 DartType get builtType; |
21 | 21 |
22 void set initializer(T value); | 22 void set initializer(T value); |
23 | 23 |
| 24 bool get hasInitializer; |
| 25 |
24 bool get isField => true; | 26 bool get isField => true; |
25 } | 27 } |
OLD | NEW |