Chromium Code Reviews

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

Issue 1053443002: Rename the package to "test". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « lib/src/backend/platform_selector/token.dart ('k') | lib/src/backend/state.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) 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 unittest.backend.platform_selector.visitor; 5 library test.backend.platform_selector.visitor;
6 6
7 import 'ast.dart'; 7 import 'ast.dart';
8 8
9 /// The interface for visitors of the platform selector AST. 9 /// The interface for visitors of the platform selector AST.
10 abstract class Visitor<T> { 10 abstract class Visitor<T> {
11 T visitVariable(VariableNode node); 11 T visitVariable(VariableNode node);
12 T visitNot(NotNode node); 12 T visitNot(NotNode node);
13 T visitOr(OrNode node); 13 T visitOr(OrNode node);
14 T visitAnd(AndNode node); 14 T visitAnd(AndNode node);
15 T visitConditional(ConditionalNode node); 15 T visitConditional(ConditionalNode node);
(...skipping 21 matching lines...)
37 node.left.accept(this); 37 node.left.accept(this);
38 node.right.accept(this); 38 node.right.accept(this);
39 } 39 }
40 40
41 void visitConditional(ConditionalNode node) { 41 void visitConditional(ConditionalNode node) {
42 node.condition.accept(this); 42 node.condition.accept(this);
43 node.whenTrue.accept(this); 43 node.whenTrue.accept(this);
44 node.whenFalse.accept(this); 44 node.whenFalse.accept(this);
45 } 45 }
46 } 46 }
OLDNEW
« no previous file with comments | « lib/src/backend/platform_selector/token.dart ('k') | lib/src/backend/state.dart » ('j') | no next file with comments »

Powered by Google App Engine