[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [cdt-dev] DOM Visitor interface
|
Hi Andrew,
the interface is very useful! Please consider taking in some of the
static methods of CPPVisitor and CVisitor (at least those that are
the same for both):
getContainingScope, getContainingBlockItem, ...
An obvious alternative is to extend the interface of IAstNode by
getContainingScope, ....
Markus.
> -----Original Message-----
> From: cdt-dev-admin@xxxxxxxxxxx
> [mailto:cdt-dev-admin@xxxxxxxxxxx] On Behalf Of Douglas Schaefer
> Sent: Donnerstag, 24. Februar 2005 20:32
> To: cdt-dev@xxxxxxxxxxx
> Subject: Re: [cdt-dev] DOM Visitor interface
>
> Cool. Thanks, Andrew.
>
> Doug Schaefer
> Ottawa Lab, IBM Rational Software Division
>
>
>
> Andrew Niefer/Ottawa/IBM@IBMCA
> Sent by: cdt-dev-admin@xxxxxxxxxxx
> 02/24/2005 02:24 PM
> Please respond to
> cdt-dev
>
>
> To
> cdt-dev@xxxxxxxxxxx
> cc
>
> Subject
> Re: [cdt-dev] DOM Visitor interface
>
>
>
>
>
>
> It has been pointed out that this extracted interface is
> perhaps misnamed.
> It can be considered to be the opposite of the classic
> visitor pattern.
> I will be revisiting this and will take some time to look at
> the JDT, so
> we
> may move closer to the standard idea of a visitor.
>
> So the moral is, don't become too attached to this interface,
> it is still
> very much in flux. We will try to have something more or
> less stable by
> M5. (03/14)
>
> -Andrew
>
> cdt-dev-admin@xxxxxxxxxxx wrote on 02/24/2005 05:26:57 AM:
>
> > Is there a 3.0.0 build coming, where the SDK will includes this?
> > Or is it just available over CVS?
> >
> > > For those who are interested, I have extracted a public
> interface that
> can
> > > be used to visit the new AST.
> > > The base interface is org.eclipse.cdt.core.dom.ast.IASTVisitor
> > > There are 2 extensions:
> org.eclipse.cdt.core.dom.ast.c.ICASTVisitor
> and
> > > org.eclispse.cdt.core.dom.ast.cpp.ICPPASTVisitor
> > >
> > > Use IASTTranslationUnit.getVisitor() to get an instance of the
> visitor.
> > >
> > > -Andrew
> > >
> > > _______________________________________________
> > > cdt-dev mailing list
> > > cdt-dev@xxxxxxxxxxx
> > > http://dev.eclipse.org/mailman/listinfo/cdt-dev
> > >
> >
> > --
> > Lassen Sie Ihren Gedanken freien Lauf... z.B. per FreeSMS
> > GMX bietet bis zu 100 FreeSMS/Monat: http://www.gmx.net/de/go/mail
> > _______________________________________________
> > cdt-dev mailing list
> > cdt-dev@xxxxxxxxxxx
> > http://dev.eclipse.org/mailman/listinfo/cdt-dev
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-dev
>
>
> _______________________________________________
> cdt-dev mailing list
> cdt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/cdt-dev
>