Package com.google.javascript.jscomp
Class ObjectPropertyStringPreprocess
java.lang.Object
com.google.javascript.jscomp.ObjectPropertyStringPreprocess
- All Implemented Interfaces:
CompilerPass
Rewrites
new goog.testing.ObjectPropertyString(foo, 'bar')
to
new 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
-
Method Summary
-
Field Details
-
EXTERN_OBJECT_PROPERTY_STRING
- See Also:
-
-
Method Details
-
process
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
-