Skip to main content



      Home
Home » Language IDEs » ServerTools (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 15:35 Go to next message
Eclipse UserFriend
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 17:42] by Moderator

Re: Syntax error on token "get", : expected after this token (JSDT with object getter sett [message #654309 is a reply to message #653198] Mon, 14 February 2011 22:42 Go to previous messageGo to next message
Eclipse UserFriend
"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.
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 04:03 Go to previous message
Eclipse UserFriend
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 Jul 04 23:54:54 EDT 2025

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

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

Back to the top