class ObjectPropertyStringPostprocess extends java.lang.Object implements CompilerPass
new JSCompiler_ObjectPropertyString(window, foo.prototype.bar)
to new JSCompiler_ObjectPropertyString(foo.prototype, 'bar')
Rewrites
new JSCompiler_ObjectPropertyString(window, foo[bar])
to new JSCompiler_ObjectPropertyString(foo, bar)
Rewrites
new JSCompiler_ObjectPropertyString(window, foo$bar$baz) to
new JSCompiler_ObjectPropertyString(window, 'foo$bar$baz')ObjectPropertyStringPreprocess| Modifier and Type | Class and Description |
|---|---|
private class |
ObjectPropertyStringPostprocess.Callback |
| Modifier and Type | Field and Description |
|---|---|
private AbstractCompiler |
compiler |
| Constructor and Description |
|---|
ObjectPropertyStringPostprocess(AbstractCompiler compiler) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(Node externs,
Node root)
Process the JS with root node root.
|
private final AbstractCompiler compiler
public ObjectPropertyStringPostprocess(AbstractCompiler compiler)
public void process(Node externs, Node root)
CompilerPassprocess in interface CompilerPassexterns - Top of external JS treeroot - Top of JS tree