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

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

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. Created 3 years, 9 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
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'
8 abstractMask, 8 show abstractMask, constMask, externalMask, finalMask, staticMask;
9 constMask,
10 externalMask,
11 finalMask,
12 staticMask;
13 9
14 import 'builder.dart' show 10 import 'builder.dart' show Builder;
15 Builder;
16 11
17 abstract class ModifierBuilder extends Builder { 12 abstract class ModifierBuilder extends Builder {
18 ModifierBuilder(Builder parent, int charOffset, [Uri fileUri]) 13 ModifierBuilder(Builder parent, int charOffset, [Uri fileUri])
19 : super(parent, charOffset, fileUri ?? parent?.fileUri); 14 : super(parent, charOffset, fileUri ?? parent?.fileUri);
20 15
21 int get modifiers; 16 int get modifiers;
22 17
23 bool get isAbstract => (modifiers & abstractMask) != 0; 18 bool get isAbstract => (modifiers & abstractMask) != 0;
24 19
25 bool get isConst => (modifiers & constMask) != 0; 20 bool get isConst => (modifiers & constMask) != 0;
26 21
27 bool get isExternal => (modifiers & externalMask) != 0; 22 bool get isExternal => (modifiers & externalMask) != 0;
28 23
29 bool get isFinal => (modifiers & finalMask) != 0; 24 bool get isFinal => (modifiers & finalMask) != 0;
30 25
31 bool get isStatic => (modifiers & staticMask) != 0; 26 bool get isStatic => (modifiers & staticMask) != 0;
32 } 27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698