|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.caja.plugin.stages.OpenTemplateStage.ScopeChecker
private static class OpenTemplateStage.ScopeChecker
Walks a function and compiles a set of all local variables declared in that function.
Field Summary | |
---|---|
(package private) java.util.List<AncestorChain<FunctionConstructor>> |
innerScopes
|
(package private) java.util.Set<java.lang.String> |
variablesInScope
|
Constructor Summary | |
---|---|
private |
OpenTemplateStage.ScopeChecker()
|
Method Summary | |
---|---|
boolean |
visit(AncestorChain<?> chain)
Called on each node reached by the traversal to process that node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final java.util.Set<java.lang.String> variablesInScope
final java.util.List<AncestorChain<FunctionConstructor>> innerScopes
Constructor Detail |
---|
private OpenTemplateStage.ScopeChecker()
Method Detail |
---|
public boolean visit(AncestorChain<?> chain)
Visitor
visit
in interface Visitor
chain
- wraps the node to process, and its ancestors. This is non
null, and the node to process is chain.node
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |