Given the code ng.applicationFactory().addModule(myModule).run(), this
is rewritten into
ng.staticApplicationFactory(...)..addModule(generated_template_cache).addModule(myModule).run().
The original expression evaluates to an Injector, but the rewritten
expression evaluates to to the StaticApplication object. Since addModule
already returns this, its not needed to use .., so I've removed it,
restoring the correct evaluated object.
Given the code ng.applicationFactory().addModule(myModule).run(), this is rewritten into ng.staticApplicationFactory(...)..addModule(generated_template_cache).addModule(myModule).run().
The original expression evaluates to an Injector, but the rewritten expression evaluates to to the StaticApplication object. Since addModule already returns this, its not needed to use .., so I've removed it, restoring the correct evaluated object.