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

Side by Side Diff: compiler/java/com/google/dart/compiler/ast/DartNodeTraverser.java

Issue 8231031: Check for compile-time constants in DartCompiler (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Feedback from floitsch Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 package com.google.dart.compiler.ast; 5 package com.google.dart.compiler.ast;
6 6
7 import java.util.List; 7 import java.util.List;
8 8
9 /** 9 /**
10 * An alternative visitor implementation to {@link DartVisitor}. 10 * An alternative visitor implementation to {@link DartVisitor}.
(...skipping 13 matching lines...) Expand all
24 * } 24 * }
25 * </pre> 25 * </pre>
26 * 26 *
27 * <p>With DartNodeTraverser, the pre- and post-actions are combined 27 * <p>With DartNodeTraverser, the pre- and post-actions are combined
28 * in the same method: 28 * in the same method:
29 * 29 *
30 * <pre> 30 * <pre>
31 * @Override 31 * @Override
32 * public R visitArrayAccess(DartArrayAccess node) { 32 * public R visitArrayAccess(DartArrayAccess node) {
33 * // Actions before visiting subnodes. 33 * // Actions before visiting subnodes.
34 * this.visitChildren(node); 34 * node.visitChildren(this);
35 * // Actions after visiting subnodes. 35 * // Actions after visiting subnodes.
36 * return node;
36 * } 37 * }
37 * </pre> 38 * </pre>
38 * 39 *
39 * <p>In addition, this visitor takes advantage of the AST-node class 40 * <p>In addition, this visitor takes advantage of the AST-node class
40 * hierarchy and makes it easy to perform an action for, for example, 41 * hierarchy and makes it easy to perform an action for, for example,
41 * all statements: 42 * all statements:
42 * 43 *
43 * <pre> 44 * <pre>
44 * @Override 45 * @Override
45 * public R visitStatement(DartStatement node) { 46 * public R visitStatement(DartStatement node) {
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 @Override 433 @Override
433 public R visitNativeBlock(DartNativeBlock node) { 434 public R visitNativeBlock(DartNativeBlock node) {
434 return visitBlock(node); 435 return visitBlock(node);
435 } 436 }
436 437
437 @Override 438 @Override
438 public R visitRedirectConstructorInvocation(DartRedirectConstructorInvocation node) { 439 public R visitRedirectConstructorInvocation(DartRedirectConstructorInvocation node) {
439 return visitInvocation(node); 440 return visitInvocation(node);
440 } 441 }
441 } 442 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698