Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324241 - Reference to a global function does not get linked correctly when passed as function arguments
Summary: Reference to a global function does not get linked correctly when passed as f...
Status: RESOLVED FIXED
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Chris Jaun CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 326603
  Show dependency tree
 
Reported: 2010-09-01 15:51 EDT by Jim Zhang CLA
Modified: 2010-09-29 17:45 EDT (History)
1 user (show)

See Also:
thatnitind: review+


Attachments
patch and junit (4.38 KB, patch)
2010-09-07 14:31 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 Jim Zhang CLA 2010-09-01 15:51:13 EDT
Build Identifier: WTP 3.2

If I have a reference to a global function passed to a function call as an argument, it won't take you to the function definition if you click F3 on it.

Reproducible: Always

Steps to Reproduce:
1. declare a global function
2. pass the function reference to a dojo method, such as dojo.connect
3. click F3 on the reference, the tools should take you to the function's declaration, but that does not work as expected
Comment 1 Chris Jaun CLA 2010-09-07 14:31:54 EDT
Created attachment 178348 [details]
patch and junit
Comment 2 Chris Jaun CLA 2010-09-07 14:33:02 EDT
Went with a strategy of converting returning field bindings when method bindings where found in the case where we are specifically trying to resolve a field reference.
Comment 3 Chris Jaun CLA 2010-09-29 17:45:47 EDT
Checked into 3.2.3 and HEAD.