[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.jdt] Re: How to make copies of ASTNodes

Spoke too soon. Was standing near ASTNode.copySubtree() all this time.


Sri Gunturi wrote:

I was wondering if it could be possible to make a copy of an ASTNode with all the identifiers, offsets etc. copied over to the new copy node? I have seen ASTRewrite but havent had success with createCopyTarget() - all the identifiers etc. are marked as MISSING.