Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330501

Summary: Javascript outline is empty
Product: [WebTools] JSDT Reporter: Randy Hudson <hudsonr>
Component: GeneralAssignee: Project Inbox <jsdt.javascript-inbox>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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 ***