public class JsSourceGenerationVisitor extends JsToStringGenerationVisitor
needSemi
LVALUE_CONTEXT, UNMODIFIABLE_CONTEXT
Constructor and Description |
---|
JsSourceGenerationVisitor(TextOutput out)
Generate the output source code using short identifiers.
|
JsSourceGenerationVisitor(TextOutput out,
boolean useLongIdents)
Generate the output source code using short or long identifiers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
visit(JsBlock x,
JsContext ctx) |
boolean |
visit(JsProgramFragment x,
JsContext ctx) |
boolean |
visit(JsProgram x,
JsContext ctx) |
_newline, _newlineOpt, getStatementRanges, printJsBlock, 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, visit, visit, visit, visit
accept, acceptList, acceptLvalue, acceptWithInsertRemove, didChange, doAccept, 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
public JsSourceGenerationVisitor(TextOutput out)
public JsSourceGenerationVisitor(TextOutput out, boolean useLongIdents)
useLongIdents
- if true, emit all identifiers in long formpublic boolean visit(JsProgram x, JsContext ctx)
visit
in class JsToStringGenerationVisitor
public boolean visit(JsProgramFragment x, JsContext ctx)
visit
in class JsToStringGenerationVisitor
public boolean visit(JsBlock x, JsContext ctx)
visit
in class JsToStringGenerationVisitor
Copyright © 2018. All rights reserved.