Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » JavaScript Outline types(JavaScript Outline not recognizing type for properties of an object)
JavaScript Outline types [message #716112] Tue, 16 August 2011 13:32 Go to next message
Arin Lipman is currently offline Arin LipmanFriend
Messages: 17
Registered: May 2010
Junior Member
I'm coding some JavaScript objects and I'm assigning properties to the objects, but the outline view is not recognizing the type of these objects.

Here is a sample (I've added in the JSDoc in the hope that this would help, but it does not appear to):

Test = function(/**@type String*/input)
{
/**
* @type String
*/
this.string = input;
return this;
};


In this outline, I see
Test
string:any

Anyone else see this?
Thanks,
Arin
Re: JavaScript Outline types [message #716316 is a reply to message #716112] Wed, 17 August 2011 03:05 Go to previous messageGo to next message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 2335
Registered: July 2009
Senior Member
On 8/16/2011 9:32 AM, dread45153 wrote:
> I'm coding some JavaScript objects and I'm assigning properties to the
> objects, but the outline view is not recognizing the type of these objects.
>
> Here is a sample (I've added in the JSDoc in the hope that this would
> help, but it does not appear to):
>
> Test = function(/**@type String*/input)
> {
> /**
> * @type String
> */
> this.string = input;
> return this;
> };
>
>
> In this outline, I see Test string:any
>
> Anyone else see this?

I can reproduce it. Looks like you've found a bug (or two). Can you
report this to
https://bugs.eclipse.org/bugs/enter_bug.cgi?classification=WebTools&product=JSDT&component=General
?


--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: JavaScript Outline types [message #717881 is a reply to message #716316] Mon, 22 August 2011 15:57 Go to previous message
Arin Lipman is currently offline Arin LipmanFriend
Messages: 17
Registered: May 2010
Junior Member
I submitted Bug 355410
Previous Topic:Give selected Node to Property View
Next Topic:JavaScript Outline guidelines
Goto Forum:
  


Current Time: Wed Nov 26 04:40:17 GMT 2014

Powered by FUDForum. Page generated in 0.03952 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software