class CollectFileOverviewVisibility extends java.lang.Object implements HotSwapCompilerPass
@fileoverview
blocks. Used by CheckAccessControls
.Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableMap.Builder<StaticSourceFile,JSDocInfo.Visibility> |
builder |
private AbstractCompiler |
compiler |
Constructor and Description |
---|
CollectFileOverviewVisibility(AbstractCompiler compiler) |
Modifier and Type | Method and Description |
---|---|
(package private) com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> |
getFileOverviewVisibilityMap() |
void |
hotSwapScript(Node scriptRoot,
Node originalRoot)
Process the JS with root node root.
|
void |
process(Node externs,
Node root)
Process the JS with root node root.
|
private void |
visit(Node scriptNode) |
private final AbstractCompiler compiler
private final com.google.common.collect.ImmutableMap.Builder<StaticSourceFile,JSDocInfo.Visibility> builder
CollectFileOverviewVisibility(AbstractCompiler compiler)
public void process(Node externs, Node root)
CompilerPass
process
in interface CompilerPass
externs
- Top of external JS treeroot
- Top of JS treeprivate void visit(Node scriptNode)
com.google.common.collect.ImmutableMap<StaticSourceFile,JSDocInfo.Visibility> getFileOverviewVisibilityMap()
public void hotSwapScript(Node scriptRoot, Node originalRoot)
HotSwapCompilerPass
hotSwapScript
in interface HotSwapCompilerPass
scriptRoot
- Root node corresponding to the file that is modified,
should be of type Token.SCRIPT
.originalRoot
- Root node corresponding to the original version of the
file that is modified. Should be of type token.SCRIPT
.