Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Syntax error on token "get", : expected after this token (JSDT with object getter setter)(JSDT not supporting the "get" operator https://developer.mozilla.org/en/JavaScript/Reference/Operators/Special/get)
Syntax error on token "get", : expected after this token (JSDT with object getter setter) [message #653198] Tue, 08 February 2011 20:35 Go to next message
Tom H is currently offline Tom HFriend
Messages: 136
Registered: July 2009
Senior Member
when using this syntax to define gettor and setters;
get name() { return this.aName },

the javascript validator doesn't like the syntax with this message;
Syntax error on token "get", : expected after this token

Here is the full file;
http://pastebin.com/axaNZDJC

However this syntax is used for developing XPCOM objects for firefox plugins. any suggestions on how to fix that?

Thanks,
Tom

It looks like the validator does not support this operator;
https://developer.mozilla.org/en/JavaScript/Reference/Operat ors/Special/get

[Updated on: Tue, 08 February 2011 22:42]

Report message to a moderator

Re: Syntax error on token "get", : expected after this token (JSDT with object getter sett [message #654309 is a reply to message #653198] Tue, 15 February 2011 03:42 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2327
Registered: July 2009
Senior Member
"get" and a number of operators newer than what's in ECMAScript 3 aren't supported by our current parser. We're working on getting them recognized.

---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Syntax error on token "get", : expected after this token (JSDT with object getter sett [message #669962 is a reply to message #654309] Thu, 12 May 2011 08:03 Go to previous message
CircleCode  is currently offline CircleCode Friend
Messages: 1
Registered: May 2011
Junior Member
Hi,

I am facing the same problem, and it is really annoying since it totally breaks outline and code completion...

So I'd like to know if there is some workaround in the immediate.

And is there a bug on this (really hard to figure since "get" is a really common and short keyword), and some beta release implementing it?
Maybe can I also ask if there is a planned date for these keywords support?

Thanks,

Mat
Previous Topic:Trouble with inline schema in WSDL
Next Topic:how to change or newly set web root's source folder
Goto Forum:
  


Current Time: Fri Nov 21 04:45:04 GMT 2014

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

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