/[Apache-SVN]
ViewVC logotype

Revision 1426183


Jump to revision: Previous Next
Author: erikdebruin
Date: Thu Dec 27 12:53:33 2012 UTC (11 years, 6 months ago)
Changed paths: 3
Log Message:
Implemented an alternate method to deal with default values for parameters in JS. 

In order to do this without 'breaking' any existing code, I've create a new 'setting' on JSSharedData: OUTPUT_ALTERNATE. I used this setting to split the flow in 'emitFunctionBlockHeader' and call to 'emitDefaultParameterCodeBlock_Alternate' instead of the regular method.

I've also added a test to 'TestGoogEmiter': 'testDefaultParameter_Alternate' to check the functionality of the above mentioned addition.

Changed paths

Path Details
Directoryincubator/flex/whiteboard/mschmalle/falconjx/compiler.jx/src/org/apache/flex/compiler/internal/js/codgen/JSGoogEmitter.java modified , text changed
Directoryincubator/flex/whiteboard/mschmalle/falconjx/compiler.jx/src/org/apache/flex/compiler/internal/js/codgen/JSSharedData.java modified , text changed
Directoryincubator/flex/whiteboard/mschmalle/falconjx/compiler.jx.tests/src/org/apache/flex/js/internal/js/codegen/TestGoogEmiter.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26