Package com.google.javascript.jscomp
Class ObjectPropertyStringPreprocess
- java.lang.Object
-
- com.google.javascript.jscomp.ObjectPropertyStringPreprocess
-
- All Implemented Interfaces:
CompilerPass
public class ObjectPropertyStringPreprocess extends java.lang.Object implements CompilerPass
Rewritesnew goog.testing.ObjectPropertyString(foo, 'bar')
tonew JSCompiler_ObjectPropertyString(window, foo.bar)
. These two passes are for use with goog.testing.PropertyReplacer.var ops = new goog.testing.ObjectPropertyString(foo.prototype, 'bar'); propertyReplacer.set(ops,object, ops.propertyString, baz);
- See Also:
ObjectPropertyStringPostprocess
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXTERN_OBJECT_PROPERTY_STRING
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(Node externs, Node root)
Process the JS with root node root.
-
-
-
Field Detail
-
EXTERN_OBJECT_PROPERTY_STRING
public static final java.lang.String EXTERN_OBJECT_PROPERTY_STRING
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public void process(Node externs, Node root)
Description copied from interface:CompilerPass
Process the JS with root node root. Can modify the contents of each Node tree- Specified by:
process
in interfaceCompilerPass
- Parameters:
externs
- Top of external JS treeroot
- Top of JS tree
-
-