Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330501 - Javascript outline is empty
Summary: Javascript outline is empty
Status: CLOSED DUPLICATE of bug 266113
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-17 13:45 EST by Randy Hudson CLA
Modified: 2010-11-19 14:03 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2010-11-17 13:45:46 EST
Build Identifier: 3.6.1

Out of convention, almost all of our javascript files follow this pattern:

(function(){
   //All code is in here
})();

Aptana's outline would display this as an anonymous function, and then display the elements declared in side it.  JSDT just shows an empty outline.

Reproducible: Always
Comment 1 Nitin Dahyabhai CLA 2010-11-17 16:02:45 EST
Randy, I think we need a concrete example that *does* declare something inside to test against.
Comment 2 Randy Hudson CLA 2010-11-17 16:38:39 EST
(In reply to comment #1)
> Randy, I think we need a concrete example that *does* declare something inside
> to test against.

(function(){
	function foo(){};
	function bar(){};
})();
Comment 3 Chris Jaun CLA 2010-11-19 14:03:51 EST

*** This bug has been marked as a duplicate of bug 266113 ***