gnu.expr

Class FindCapturedVars

Implemented Interfaces:
org.xml.sax.Locator, SourceLocator

public class FindCapturedVars
extends ExpWalker

Field Summary

Fields inherited from class gnu.expr.ExpWalker

currentLambda, messages

Method Summary

void
capture(Declaration decl)
static void
findCapturedVars(Expression exp, Compilation comp)
protected Expression
walkApplyExp(ApplyExp exp)
protected Expression
walkClassExp(ClassExp exp)
void
walkDefaultArgs(LambdaExp exp)
protected Expression
walkFluidLetExp(FluidLetExp exp)
protected Expression
walkLetExp(LetExp exp)
protected Expression
walkModuleExp(ModuleExp exp)
protected Expression
walkReferenceExp(ReferenceExp exp)
protected Expression
walkSetExp(SetExp exp)
protected Expression
walkThisExp(ThisExp exp)

Methods inherited from class gnu.expr.ExpWalker

error, getColumnNumber, getCompilation, getCurrentLambda, getFileName, getLineNumber, getMessages, getPublicId, getSystemId, isStableSourceLocation, noteError, setColumn, setContext, setFile, setLine, setLine, walk, walkApplyExp, walkBeginExp, walkBlockExp, walkClassExp, walkDeclarationType, walkDeclarationTypes, walkDefaultArgs, walkExitExp, walkExpression, walkExps, walkExps, walkFluidLetExp, walkIfExp, walkLambdaExp, walkLangExp, walkLetExp, walkModuleExp, walkObjectExp, walkQuoteExp, walkReferenceExp, walkScopeExp, walkSetExp, walkSynchronizedExp, walkThisExp, walkTryExp

Method Details

capture

public void capture(Declaration decl)

findCapturedVars

public static void findCapturedVars(Expression exp,
                                    Compilation comp)

walkApplyExp

protected Expression walkApplyExp(ApplyExp exp)
Overrides:
walkApplyExp in interface ExpWalker

walkClassExp

protected Expression walkClassExp(ClassExp exp)
Overrides:
walkClassExp in interface ExpWalker

walkDefaultArgs

public void walkDefaultArgs(LambdaExp exp)
Overrides:
walkDefaultArgs in interface ExpWalker

walkFluidLetExp

protected Expression walkFluidLetExp(FluidLetExp exp)
Overrides:
walkFluidLetExp in interface ExpWalker

walkLetExp

protected Expression walkLetExp(LetExp exp)
Overrides:
walkLetExp in interface ExpWalker

walkModuleExp

protected Expression walkModuleExp(ModuleExp exp)
Overrides:
walkModuleExp in interface ExpWalker

walkReferenceExp

protected Expression walkReferenceExp(ReferenceExp exp)
Overrides:
walkReferenceExp in interface ExpWalker

walkSetExp

protected Expression walkSetExp(SetExp exp)
Overrides:
walkSetExp in interface ExpWalker

walkThisExp

protected Expression walkThisExp(ThisExp exp)
Overrides:
walkThisExp in interface ExpWalker