Re: [Jruby-devel] JRuby Ast

2006-06-09 Thread Lukas Felber
Thomas E Enebo wrote: > In the above code snippet to find Dir class AST we would need two > references. So I think this task is problematic. If you consider > that builtin classes do not have an AST at all (they are implemented > entirely in Java) then there may not even be an AST for a class.

Re: [Jruby-devel] JRuby Ast

2006-06-07 Thread Christopher Williams
Lukas, On 6/6/06, Lukas Felber <[EMAIL PROTECTED]> wrote: Thomas E Enebo wrote:>   We do not directly link back to AST from an object (if this is what> you are asking).  That would not work well since multiple AST nodes could> reference the same object.> Ok I think I expressed myself a bit bad. I'l

Re: [Jruby-devel] JRuby Ast

2006-06-06 Thread David Corbin
> My only other thought is you could create a visitor which walks all the > ASTs you want to potentially refactor and then build your own set of > references so you can ask a question like getAstNode(ClassName, MethodName) > or getAstNode(ClassName) and get back what you want. My first example >

Re: [Jruby-devel] JRuby Ast

2006-06-06 Thread Thomas E Enebo
On Tue, 06 Jun 2006, Lukas Felber defenestrated me: > Thomas E Enebo wrote: > > On Mon, 29 May 2006, Lukas Felber defenestrated me: > > > >> I (Lukas Felber) am one of the three Swiss guys working on refactorings > >> for the RDT eclipse plugin. > >> > >> I have a Question concerning the common

Re: [Jruby-devel] JRuby Ast

2006-06-06 Thread Lukas Felber
Thomas E Enebo wrote: > On Mon, 29 May 2006, Lukas Felber defenestrated me: > >> I (Lukas Felber) am one of the three Swiss guys working on refactorings >> for the RDT eclipse plugin. >> >> I have a Question concerning the common Classes of Ruby (like Object or >> String). Is there a way to ge

Re: [Jruby-devel] JRuby Ast

2006-05-30 Thread Thomas E Enebo
On Mon, 29 May 2006, Lukas Felber defenestrated me: > > I (Lukas Felber) am one of the three Swiss guys working on refactorings > for the RDT eclipse plugin. > > I have a Question concerning the common Classes of Ruby (like Object or > String). Is there a way to get to the JRuby Ast of those cl