Bug 237223 - [content assist] Use information about the calling function prototype in content assist
Summary: [content assist] Use information about the calling function prototype in cont...
Status: NEW
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.0   Edit
Hardware: Macintosh Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: Future   Edit
Assignee: wst.javascript CLA
QA Contact: Chris Jaun CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-15 17:16 EDT by Martin Novák CLA
Modified: 2013-06-19 11:11 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Novák CLA 2008-06-15 17:16:41 EDT
It would be really nice to see some better support for creating a new function inside some prototype function.

I mean this: let's create a prototype function, and inside this function, call non existing function with the form of call: this.non_existing_function(). The content assist doesn't offer you to create a new function at all now. I would like to see there an option to create a new function of the same prototype as calling function. Example:

a.prototype.fn = function() {
  this.non_existing_function(); <-- here do a context assist, and offer here to create the non_existing_function
}

and after executing create non_existing_function, create something like this:

a.prototype.non_existing_function = function() {
}
Comment 1 Chris Jaun CLA 2009-09-15 10:36:13 EDT
Categorizing JSDT bugzillas for planning purposes.