How can I get an ASTNode from an existing disk file ?

SyntaxEditor .NET Languages Add-on for Windows Forms Forum

Posted 16 years ago by Van den Driessche Willy
Version: 4.0.0277
Avatar
I'm trying to get an astnode for a visual basic file stored on disk. I want to use this node to perform so dynamic code rewriting. How can I get from a disk file to an AST Node ?

BTW: it would help if I don't need to pass via something visual for this task.

Comments (2)

Posted 16 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hello, please take a look at our Document Outline QuickStart in the sample project. That shows you how you can load a document from disk and process the CompilationUnit that was parsed.


Actipro Software Support

Posted 16 years ago by Van den Driessche Willy
Avatar
Ok, thanks a lot. Feel a little stupid now but the object model is not all that trivial. It works, though.
The latest build of this product (v24.1.0) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.