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

Side by Side Diff: pkg/servicec/lib/targets.dart

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 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/servicec/lib/stack.dart ('k') | pkg/servicec/lib/types.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dartino 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 servicec.targets;
6
7 // Using pre-Dart 1.8 enums, to allow masking.
8 class Target {
9 static const JAVA = const Target._(1);
10 static const CC = const Target._(2);
11 // When editing: new targets should be a power of 2, and ALL should be the
12 // next power of 2 minus 1.
13 static const ALL = const Target._(3);
14
15 static get values => [JAVA, CC, ALL];
16
17 final int value;
18
19 const Target._(this.value);
20
21 bool includes(Target t) {
22 return value & t.value > 0;
23 }
24 }
OLDNEW
« no previous file with comments | « pkg/servicec/lib/stack.dart ('k') | pkg/servicec/lib/types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698