This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 403285 - [enhancement] Support for factory functions
Summary: [enhancement] Support for factory functions
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: VJET (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Justin Early CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 22:38 EDT by Justin Early CLA
Modified: 2017-04-11 15:12 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Early CLA 2013-03-13 22:38:13 EDT
There are multiple issues with factory functions / callbacks that need to be addressed:

1. factory functions do not require return. This was regression issue. Was happening quite a bit in nodejs type library.
2. factory functions which were assigned to other variables did not support validation or code assist.
3. factory functions which referenced otype / attributed types did not work.
4. factory function which referenced methods which are overloaded didn't assist the overloads or validate the overloaded scenario. 

There are multiple test cases for this:

1. an otype
2. a bootstrap
3. a ctype defining 2 different factory functions.
4. a using factory functions example js file.
Comment 1 Justin Early CLA 2013-03-15 20:26:37 EDT
Factory functions are now working.