Community
Participate
Working Groups
This is to essentially replicate RBD's handling of overloaded functions such as String.clip, for which there are two variants. Rather than implement general-purpose support for function overloading, RBD's JS gen simply special cases these parts and these functions. There are a number of bugs emerging which require this support.
See SystemFunctionInvocationGenerator.java for RBD's implementation....
I have an implementation which I will commit now so that the system functions will work in JS gen, however, see this bug for the details of the eventual solution: https://bugs.eclipse.org/bugs/show_bug.cgi?id=359315
Fixed by implementing the following: 1. Use existing function "aliasing" logic to handle the generation of declarations and invocations for overloaded functions 2. Detect whether a function is overloaded by scanning a part for like-named functions. 3. Compute a "mangled" alias for the function name that factors in the type and number of args.
Closing this work item