Bug 269004

Summary: No content assist on object literal with "string" values
Product: [WebTools] JSDT Reporter: Chris Jaun <cmjaun>
Component: GeneralAssignee: Chris Jaun <cmjaun>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 Keywords: contributed
Version: 3.1Flags: thatnitind: review+
Target Milestone: 3.0.5   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Update the InferEngine to handle Strings in Object Literals thatnitind: iplog+

Description Chris Jaun CLA 2009-03-17 11:12:41 EDT
Build ID: WTP 3.1 m6

Steps To Reproduce:
Add the following to the JS editor:

var point = {x:1, y:2};
var myVar = 1;
var myObject = {"upper": {x:point.x, y:point.y},
		"lower": {x:(point.x + side), y:(point.y+side) }
};

Type "myObject." and try to use content assist.

No suggestions are given.

More information:
Comment 1 Chris Jaun CLA 2009-03-31 14:11:35 EDT
Created attachment 130438 [details]
Update the InferEngine to handle Strings in Object Literals
Comment 2 Chris Jaun CLA 2009-03-31 14:11:56 EDT
This should be fixed in 3.0.5 and 3.1.
Comment 3 Chris Jaun CLA 2009-04-01 13:54:57 EDT
*** Bug 259025 has been marked as a duplicate of this bug. ***
Comment 4 Nitin Dahyabhai CLA 2009-04-02 02:44:21 EDT
Applied to 3.1m7
Comment 5 Nitin Dahyabhai CLA 2009-04-13 17:17:49 EDT
Applied to 3.0.5, thanks, Chris.