Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(595)

Side by Side Diff: pkg/fasta/lib/src/builder/modifier_builder.dart

Issue 2629063005: Fasta builders. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698