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

Side by Side Diff: pkg/front_end/lib/src/fasta/modifier.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
« no previous file with comments | « pkg/front_end/lib/src/fasta/messages.dart ('k') | pkg/front_end/lib/src/fasta/operator.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; 5 library fasta.modifier;
6 6
7 import 'errors.dart' show 7 import 'errors.dart' show internalError;
8 internalError;
9 8
10 enum ModifierEnum { 9 enum ModifierEnum {
11 Abstract, 10 Abstract,
12 Const, 11 Const,
13 External, 12 External,
14 Final, 13 Final,
15 Static, 14 Static,
16 15
17 // Not a real modifier. 16 // Not a real modifier.
18 Var, 17 Var,
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 static int validate(List<Modifier> modifiers, {bool isAbstract: false}) { 66 static int validate(List<Modifier> modifiers, {bool isAbstract: false}) {
68 // TODO(ahe): Implement modifier validation: ordering and uniqueness. 67 // TODO(ahe): Implement modifier validation: ordering and uniqueness.
69 int result = isAbstract ? abstractMask : 0; 68 int result = isAbstract ? abstractMask : 0;
70 if (modifiers == null) return result; 69 if (modifiers == null) return result;
71 for (Modifier modifier in modifiers) { 70 for (Modifier modifier in modifiers) {
72 result |= modifier.mask; 71 result |= modifier.mask;
73 } 72 }
74 return result; 73 return result;
75 } 74 }
76 } 75 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/messages.dart ('k') | pkg/front_end/lib/src/fasta/operator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698