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

Bug 425813

Summary: Tern index parser does not handle simple (unwrapped) type signatures
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: JS ToolsAssignee: Project Inbox <orion.client-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 5.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2014-01-15 14:41:23 EST
The Tern format allows type signatures to be given like this (unwrapped)
> "foo": "fn()"

or like this (wrapped)
> "foo": {
>   "!type": "fn()"
> }

Mike informs me that Orion's Tern parser has problems with the first (unwrapped) format. It should support both.
Comment 1 Mark Macdonald CLA 2014-01-16 18:07:50 EST
I've been informed that we actually do handle this correctly.
Comment 2 Michael Rennie CLA 2014-01-17 12:20:56 EST
Yeah, I committed a unit test as part of this commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=c0fbaedbada0ec8d2f362deac8ea33f1b64243fd

I just forgot to update the bug.