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

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

Issue 2691523002: Ensure locations are always provided, but don't store them yet. (Closed)
Patch Set: Address comments. Created 3 years, 10 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' 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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698