Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran-dev] How to add a call statement node in a subroutine node in photran ast?

Hi Kobol,

Take a look at ExtractProcedureRefactoring.java in the core.vpg package, specifically the function called "insertSubroutineCall".

In general, most of the interesting AST manipulation code is in the refactorings, so your best bet is to find a refactoring that does something kind of like what you want to do and then use that as a starting point for writing your own code.

Jeff

Back to the top