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

Side by Side Diff: pkg/compiler/lib/src/cps_ir/parent_visitor.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 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 cps_ir.parent_visitor; 5 library cps_ir.parent_visitor;
6 6
7 import 'cps_ir_nodes.dart'; 7 import 'cps_ir_nodes.dart';
8 8
9 /// Traverses the CPS term and sets node.parent for each visited node. 9 /// Traverses the CPS term and sets node.parent for each visited node.
10 class ParentVisitor extends DeepRecursiveVisitor { 10 class ParentVisitor extends DeepRecursiveVisitor {
(...skipping 22 matching lines...) Expand all
33 assert(_parent != node); 33 assert(_parent != node);
34 assert(_parent != null); 34 assert(_parent != null);
35 node.parent = _parent; 35 node.parent = _parent;
36 } 36 }
37 37
38 @override 38 @override
39 processReference(Reference node) { 39 processReference(Reference node) {
40 node.parent = _parent; 40 node.parent = _parent;
41 } 41 }
42 } 42 }
43
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/optimizers.dart ('k') | pkg/compiler/lib/src/cps_ir/path_based_optimizer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698