Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324874 - Function assigned to field of global object is not resolved
Summary: Function assigned to field of global object is not resolved
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: 3.2.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
: 325112 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-09 13:24 EDT by Chris Jaun CLA
Modified: 2010-11-23 13:45 EST (History)
1 user (show)

See Also:
thatnitind: review+


Attachments
patch (7.39 KB, patch)
2010-09-10 15:14 EDT, Chris Jaun CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Jaun CLA 2010-09-09 13:24:38 EDT
org = {};
org.eclipse = {};
org.eclipse.fun = function(){};

org.eclipse.fun();


eclipse and fun() are not found in content assist.

If validation is turned on the call to fun() is flagged as an error.

If I change "org = {};" to "var org = {};" then everything works.
Comment 1 Chris Jaun CLA 2010-09-10 15:14:56 EDT
Created attachment 178647 [details]
patch
Comment 2 Chris Jaun CLA 2010-09-10 15:15:06 EDT
Need to add some junits.
Comment 3 Chris Jaun CLA 2010-09-13 13:42:53 EDT
*** Bug 325112 has been marked as a duplicate of this bug. ***
Comment 4 Nitin Dahyabhai CLA 2010-09-13 15:51:08 EDT
InferEngine#getAssignemnt(IExpression) needs its spelling fixed.
Comment 5 Chris Jaun CLA 2010-11-23 13:45:46 EST
Checked into 3.2.3 and HEAD.