| 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.modifier_builder; | 5 library fasta.modifier_builder; |
| 6 | 6 |
| 7 import '../modifier.dart' show | 7 import '../modifier.dart' show |
| 8 abstractMask, | 8 abstractMask, |
| 9 constMask, | 9 constMask, |
| 10 externalMask, | 10 externalMask, |
| 11 finalMask, | 11 finalMask, |
| 12 staticMask; | 12 staticMask; |
| 13 | 13 |
| 14 import 'builder.dart' show | 14 import 'builder.dart' show |
| 15 Builder; | 15 Builder; |
| 16 | 16 |
| 17 abstract class ModifierBuilder extends Builder { | 17 abstract class ModifierBuilder extends Builder { |
| 18 ModifierBuilder(Builder parent, int charOffset, [Uri fileUri]) |
| 19 : super(parent, charOffset, fileUri ?? parent?.fileUri); |
| 20 |
| 18 int get modifiers; | 21 int get modifiers; |
| 19 | 22 |
| 20 bool get isAbstract => (modifiers & abstractMask) != 0; | 23 bool get isAbstract => (modifiers & abstractMask) != 0; |
| 21 | 24 |
| 22 bool get isConst => (modifiers & constMask) != 0; | 25 bool get isConst => (modifiers & constMask) != 0; |
| 23 | 26 |
| 24 bool get isExternal => (modifiers & externalMask) != 0; | 27 bool get isExternal => (modifiers & externalMask) != 0; |
| 25 | 28 |
| 26 bool get isFinal => (modifiers & finalMask) != 0; | 29 bool get isFinal => (modifiers & finalMask) != 0; |
| 27 | 30 |
| 28 bool get isStatic => (modifiers & staticMask) != 0; | 31 bool get isStatic => (modifiers & staticMask) != 0; |
| 29 } | 32 } |
| OLD | NEW |