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(String documentationComment, this.name, this.modifiers, |
17 this.name, this.modifiers, LibraryBuilder compilationUnit, int charOffset) | 17 LibraryBuilder compilationUnit, int charOffset) |
18 : super(compilationUnit, charOffset); | 18 : super(compilationUnit, charOffset, documentationComment); |
19 | 19 |
20 String get debugName => "FieldBuilder"; | 20 String get debugName => "FieldBuilder"; |
21 | 21 |
22 DartType get builtType; | 22 DartType get builtType; |
23 | 23 |
24 void set initializer(T value); | 24 void set initializer(T value); |
25 | 25 |
26 bool get hasInitializer; | 26 bool get hasInitializer; |
27 | 27 |
28 bool get isField => true; | 28 bool get isField => true; |
29 | 29 |
30 bool get hasImplicitType; | 30 bool get hasImplicitType; |
31 } | 31 } |
OLD | NEW |