|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectJsVisitor
com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor
com.google.dart.compiler.backend.js.JsConstructExpressionVisitor
public class JsConstructExpressionVisitor
Searches for method invocations in constructor expressions that would not normally be surrounded by parentheses.
| Method Summary | ||
|---|---|---|
|
accept(T node)
We only look at nodes that would not normally be surrounded by parentheses. |
|
static boolean |
exec(JsExpression expression)
|
|
void |
visitArray(JsArrayLiteral x)
Array literals have their own scoping. |
|
void |
visitArrayAccess(JsArrayAccess x)
We only look at the array expression since the index has its own scope. |
|
void |
visitFunction(JsFunction x)
Functions have their own scoping. |
|
void |
visitInvocation(JsInvocation invocation)
|
|
void |
visitNameRef(JsNameRef nameRef)
|
|
void |
visitNew(JsNew x)
New constructs bind to the nearest set of parentheses. |
|
void |
visitObjectLiteral(JsObjectLiteral x)
Object literals have their own scope. |
|
| Methods inherited from class com.google.dart.compiler.backend.js.ast.RecursiveJsVisitor |
|---|
visitElement |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean exec(JsExpression expression)
public void visitArrayAccess(@NotNull
JsArrayAccess x)
public void visitArray(@NotNull
JsArrayLiteral x)
public void visitFunction(@NotNull
JsFunction x)
public void visitInvocation(@NotNull
JsInvocation invocation)
public void visitNameRef(@NotNull
JsNameRef nameRef)
public void visitNew(@NotNull
JsNew x)
public void visitObjectLiteral(@NotNull
JsObjectLiteral x)
public <T extends JsNode> void accept(T node)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||