class NameAnonymousFunctionsMapped extends java.lang.Object implements CompilerPass
Modifier and Type | Class and Description |
---|---|
private class |
NameAnonymousFunctionsMapped.MappedFunctionNamer
Names anonymous functions.
|
Modifier and Type | Field and Description |
---|---|
private int |
bytesUsed |
private AbstractCompiler |
compiler |
private static java.util.logging.Logger |
logger |
private int |
namedCount |
private NameGenerator |
nameGenerator |
(package private) static char |
PREFIX |
(package private) static java.lang.String |
PREFIX_STRING |
private VariableMap |
previousMap |
private java.util.Map<java.lang.String,java.lang.String> |
renameMap |
Constructor and Description |
---|
NameAnonymousFunctionsMapped(AbstractCompiler compiler,
VariableMap previousMap) |
Modifier and Type | Method and Description |
---|---|
(package private) VariableMap |
getFunctionMap()
Gets the function renaming map (the "answer key").
|
void |
process(Node externs,
Node root)
Process the JS with root node root.
|
private static java.util.logging.Logger logger
static final char PREFIX
static final java.lang.String PREFIX_STRING
private final AbstractCompiler compiler
private final NameGenerator nameGenerator
private final VariableMap previousMap
private final java.util.Map<java.lang.String,java.lang.String> renameMap
private int namedCount
private int bytesUsed
NameAnonymousFunctionsMapped(AbstractCompiler compiler, VariableMap previousMap)
public void process(Node externs, Node root)
CompilerPass
process
in interface CompilerPass
externs
- Top of external JS treeroot
- Top of JS treeVariableMap getFunctionMap()