| 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 * The context in which a JsNode visitation occurs. This represents the set of | |
| 9 * possible operations a JsVisitor subclass can perform on the currently visited | |
| 10 * node. | |
| 11 */ | |
| 12 public interface JsContext { | |
| 13 | |
| 14 boolean canInsert(); | |
| 15 | |
| 16 boolean canRemove(); | |
| 17 | |
| 18 void insertAfter(JsVisitable node); | |
| 19 | |
| 20 void insertBefore(JsVisitable node); | |
| 21 | |
| 22 boolean isLvalue(); | |
| 23 | |
| 24 void removeMe(); | |
| 25 | |
| 26 void replaceMe(JsVisitable node); | |
| 27 } | |
| OLD | NEW |