OLD | NEW |
(Empty) | |
| 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 |
| 3 // BSD-style license that can be found in the LICENSE file. |
| 4 |
| 5 library fasta.modifier_builder; |
| 6 |
| 7 import '../modifier.dart' show |
| 8 abstractMask, |
| 9 constMask, |
| 10 externalMask, |
| 11 finalMask, |
| 12 staticMask; |
| 13 |
| 14 import 'builder.dart' show |
| 15 Builder; |
| 16 |
| 17 abstract class ModifierBuilder extends Builder { |
| 18 int get modifiers; |
| 19 |
| 20 bool get isAbstract => (modifiers & abstractMask) != 0; |
| 21 |
| 22 bool get isConst => (modifiers & constMask) != 0; |
| 23 |
| 24 bool get isExternal => (modifiers & externalMask) != 0; |
| 25 |
| 26 bool get isFinal => (modifiers & finalMask) != 0; |
| 27 |
| 28 bool get isStatic => (modifiers & staticMask) != 0; |
| 29 } |
OLD | NEW |