class ObjectLitAssignmentShortening extends java.lang.Object implements CompilerPass
{a: a}
can be written as {a}
)
2. Shorthand method ({method: function(){}}
can be written
as {method(){}}
)Modifier and Type | Class and Description |
---|---|
private class |
ObjectLitAssignmentShortening.ObjectLitShorteningCallback |
Modifier and Type | Field and Description |
---|---|
private AbstractCompiler |
compiler |
Constructor and Description |
---|
ObjectLitAssignmentShortening(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
ObjectLitAssignmentShortening(AbstractCompiler compiler)
public void process(Node externs, Node root)
CompilerPass
process
in interface CompilerPass
externs
- Top of external JS treeroot
- Top of JS tree