OLD | NEW |
| (Empty) |
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 | |
3 // BSD-style license that can be found in the LICENSE file. | |
4 | |
5 package com.google.dart.compiler.backend.js.ast; | |
6 | |
7 /** | |
8 * Abstracts the idea that a class can be traversed. | |
9 */ | |
10 public interface JsVisitable { | |
11 | |
12 /** | |
13 * Causes this object to have the visitor visit itself and its children. | |
14 * | |
15 * @param visitor the visitor that should traverse this node | |
16 * @param ctx the context of an existing traversal | |
17 */ | |
18 void traverse(JsVisitor visitor, JsContext ctx); | |
19 } | |
OLD | NEW |