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

Side by Side Diff: lib/src/backend/platform_selector/evaluator.dart

Issue 1580973002: Get rid of all the library tags. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 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
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 test.backend.platform_selector.evaluator;
6
7 import '../operating_system.dart'; 5 import '../operating_system.dart';
8 import '../test_platform.dart'; 6 import '../test_platform.dart';
9 import 'ast.dart'; 7 import 'ast.dart';
10 import 'visitor.dart'; 8 import 'visitor.dart';
11 9
12 /// A visitor for evaluating platform selectors against a specific 10 /// A visitor for evaluating platform selectors against a specific
13 /// [TestPlatform] and [OperatingSystem]. 11 /// [TestPlatform] and [OperatingSystem].
14 class Evaluator implements Visitor<bool> { 12 class Evaluator implements Visitor<bool> {
15 /// The platform to test against. 13 /// The platform to test against.
16 final TestPlatform _platform; 14 final TestPlatform _platform;
(...skipping 23 matching lines...) Expand all
40 bool visitOr(OrNode node) => 38 bool visitOr(OrNode node) =>
41 node.left.accept(this) || node.right.accept(this); 39 node.left.accept(this) || node.right.accept(this);
42 40
43 bool visitAnd(AndNode node) => 41 bool visitAnd(AndNode node) =>
44 node.left.accept(this) && node.right.accept(this); 42 node.left.accept(this) && node.right.accept(this);
45 43
46 bool visitConditional(ConditionalNode node) => node.condition.accept(this) 44 bool visitConditional(ConditionalNode node) => node.condition.accept(this)
47 ? node.whenTrue.accept(this) 45 ? node.whenTrue.accept(this)
48 : node.whenFalse.accept(this); 46 : node.whenFalse.accept(this);
49 } 47 }
OLDNEW
« no previous file with comments | « lib/src/backend/platform_selector/ast.dart ('k') | lib/src/backend/platform_selector/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698