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