Bug 220185

Summary: utility for getting an ASTNode from the source location
Product: [Eclipse Project] JDT Reporter: Rodrigo Peretti <rodrigo>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: CLOSED DUPLICATE QA Contact:
Severity: enhancement    
Priority: P3 CC: Olivier_Thomann, srikanth_sankaran
Version: 3.4   
Target Milestone: 3.7 M2   
Hardware: All   
OS: All   
Whiteboard:

Description Rodrigo Peretti CLA 2008-02-25 09:21:24 EST
It would be nice if there was a utility where you could pass a location in the source code and get the ASTNode for it. You can achieve the same result by using a visitor but I'm guessing it could be optimized somehow.
Comment 1 Olivier Thomann CLA 2010-08-05 17:23:14 EDT
This is now done using the API in org.eclipse.jdt.core.dom.NodeFinder.

*** This bug has been marked as a duplicate of bug 53024 ***
Comment 2 Srikanth Sankaran CLA 2010-09-14 00:21:00 EDT
Verified for 3.7 M2