[antlr-interest] Why was dupTree() removed from BaseTree

Terence Parr parrt at cs.usfca.edu
Thu Sep 25 17:42:39 PDT 2008


On Sep 25, 2008, at 5:13 PM, Oliver B. Fischer wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Dear all,
>
> I am migrating from 3.0.1 to 3.1 and recognized that dupTree() has  
> been
> removed from BaseTree.
>
> I used this method in many places in my code. That is the intended
> replacement for this methodn?

Sorry about that...I think we figured it was generic enough; moved to  
BaseTreeAdaptor:

	public Object dupTree(Object tree) {...}

Will that work?

We needed to move to ast rewriting stuff in v3.1

Ter


More information about the antlr-interest mailing list