Re: [RDT-Dev] AST from Editor

2007-01-26 Thread Christopher Williams
murphee, There's no shortcut right now to grab the root AST node from an editor. You can grab the IRubyScript from an editor, and then traverse the IRubyElement model hierarchy. You can also provide the root AST to findNode on Members (fields, methods, classes, modules) and get the corresponding

[RDT-Dev] AST from Editor

2007-01-25 Thread Werner Schuster (murphee)
Chris and all RDTers, is there any standard way of getting from an Editor - JRuby AST? I am basically just getting the String from the Editor/Document, and then running the Ruby Parser on it... but this happens for various systems (Outline, Syntax Coloring, Realtime Lint, etc), it'd be convenient