Bug 220185 - utility for getting an ASTNode from the source location
Summary: utility for getting an ASTNode from the source location
Status: CLOSED DUPLICATE of bug 53024
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: 3.7 M2   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-25 09:21 EST by Rodrigo Peretti CLA
Modified: 2010-09-14 00:21 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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