public class FindCapturedVars extends ExpExpVisitor<java.lang.Void>
SourceLocator.Simple
currentLambda, exitValue, messages
Constructor and Description |
---|
FindCapturedVars() |
Modifier and Type | Method and Description |
---|---|
void |
capture(Declaration decl,
ReferenceExp rexp) |
static void |
findCapturedVars(Expression exp,
Compilation comp) |
protected Expression |
visitApplyExp(ApplyExp exp,
java.lang.Void ignored) |
protected Expression |
visitCaseExp(CaseExp exp,
java.lang.Void ignored) |
protected Expression |
visitClassExp(ClassExp exp,
java.lang.Void ignored) |
protected void |
visitDeclarationType(Declaration decl) |
void |
visitDefaultArgs(LambdaExp exp,
java.lang.Void ignored) |
protected Expression |
visitFluidLetExp(FluidLetExp exp,
java.lang.Void ignored) |
protected Expression |
visitLambdaExp(LambdaExp exp,
java.lang.Void ignored) |
protected Expression |
visitLetExp(LetExp exp,
java.lang.Void ignored) |
protected Expression |
visitModuleExp(ModuleExp exp,
java.lang.Void ignored) |
protected Expression |
visitReferenceExp(ReferenceExp exp,
java.lang.Void ignored) |
protected Expression |
visitSetExp(SetExp exp,
java.lang.Void ignored) |
protected Expression |
visitThisExp(ThisExp exp,
java.lang.Void ignored) |
defaultValue, error, error, update
error, getColumnNumber, getCompilation, getCurrentLambda, getEndColumn, getEndLine, getExitValue, getFileName, getLanguage, getLineNumber, getMessages, getPublicId, getStartColumn, getStartLine, getSystemId, isStableSourceLocation, noteError, setColumn, setContext, setFile, setLine, setLine, visit, visit, visitAndUpdate, visitBeginExp, visitBlockExp, visitDeclarationTypes, visitExitExp, visitExpression, visitExps, visitExps, visitIfExp, visitLangExp, visitObjectExp, visitQuoteExp, visitScopeExp, visitSynchronizedExp, visitTryExp
public static void findCapturedVars(Expression exp, Compilation comp)
protected final void visitDeclarationType(Declaration decl)
visitDeclarationType
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitApplyExp(ApplyExp exp, java.lang.Void ignored)
visitApplyExp
in class ExpVisitor<Expression,java.lang.Void>
public void visitDefaultArgs(LambdaExp exp, java.lang.Void ignored)
visitDefaultArgs
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitClassExp(ClassExp exp, java.lang.Void ignored)
visitClassExp
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitModuleExp(ModuleExp exp, java.lang.Void ignored)
visitModuleExp
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitFluidLetExp(FluidLetExp exp, java.lang.Void ignored)
visitFluidLetExp
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitLetExp(LetExp exp, java.lang.Void ignored)
visitLetExp
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitLambdaExp(LambdaExp exp, java.lang.Void ignored)
visitLambdaExp
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitCaseExp(CaseExp exp, java.lang.Void ignored)
visitCaseExp
in class ExpVisitor<Expression,java.lang.Void>
public void capture(Declaration decl, ReferenceExp rexp)
protected Expression visitReferenceExp(ReferenceExp exp, java.lang.Void ignored)
visitReferenceExp
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitThisExp(ThisExp exp, java.lang.Void ignored)
visitThisExp
in class ExpVisitor<Expression,java.lang.Void>
protected Expression visitSetExp(SetExp exp, java.lang.Void ignored)
visitSetExp
in class ExpVisitor<Expression,java.lang.Void>