public class JsConstructExpressionVisitor extends JsVisitor
LVALUE_CONTEXT, UNMODIFIABLE_CONTEXT
Modifier and Type | Method and Description |
---|---|
protected <T extends JsVisitable> |
doAccept(T node)
We only look at nodes that would not normally be surrounded by parentheses.
|
static boolean |
exec(JsExpression expression) |
boolean |
visit(JsArrayAccess x,
JsContext ctx)
We only look at the array expression since the index has its own scope.
|
boolean |
visit(JsArrayLiteral x,
JsContext ctx)
Array literals have their own scoping.
|
boolean |
visit(JsFunction x,
JsContext ctx)
Functions have their own scoping.
|
boolean |
visit(JsInvocation x,
JsContext ctx) |
boolean |
visit(JsNameRef x,
JsContext ctx) |
boolean |
visit(JsNew x,
JsContext ctx)
New constructs bind to the nearest set of parentheses.
|
boolean |
visit(JsObjectLiteral x,
JsContext ctx)
Object literals have their own scope.
|
accept, acceptList, acceptLvalue, acceptWithInsertRemove, didChange, doAcceptList, doAcceptLvalue, doAcceptWithInsertRemove, doTraverse, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, endVisit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
public static boolean exec(JsExpression expression)
public boolean visit(JsArrayAccess x, JsContext ctx)
public boolean visit(JsArrayLiteral x, JsContext ctx)
public boolean visit(JsFunction x, JsContext ctx)
public boolean visit(JsInvocation x, JsContext ctx)
public boolean visit(JsNew x, JsContext ctx)
public boolean visit(JsObjectLiteral x, JsContext ctx)
protected <T extends JsVisitable> T doAccept(T node)
Copyright © 2018. All rights reserved.