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

Bug 324241

Summary: Reference to a global function does not get linked correctly when passed as function arguments
Product: [WebTools] JSDT Reporter: Jim Zhang <jzhang>
Component: GeneralAssignee: Chris Jaun <cmjaun>
Status: RESOLVED FIXED QA Contact: Nitin Dahyabhai <thatnitind>
Severity: normal    
Priority: P3 CC: cmjaun
Version: unspecifiedFlags: thatnitind: review+
Target Milestone: 3.2.3   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on:    
Bug Blocks: 326603    
Attachments:
Description Flags
patch and junit none

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.