n...@mit.edu writes:
> Thanks Todd. That fixed my problem.
>
> Concerning the dummy nodes to want to add to an AST, you could try adding
> dummy methods to make them to conform to ast.Stmt or whatever?
>
You can, and you can add them as Expr's or Decl's but then you lose the
ability to use ast.
Thanks Todd. That fixed my problem.
Concerning the dummy nodes to want to add to an AST, you could try adding
dummy methods to make them to conform to ast.Stmt or whatever?
On Tuesday, August 28, 2018 at 6:33:12 PM UTC-4, Todd Neal wrote:
>
>
>
> na...@mit.edu writes:
>
> > As can be seen fr
n...@mit.edu writes:
> As can be seen from my recent posts, I've been playing a lot with the
> automatic generation if go programs using go/ast and related packages.
>
> My current problem is that when I use astutil.AddImport.
>
> When I rn the program below, which creates a new ast.File and u
As can be seen from my recent posts, I've been playing a lot with the
automatic generation if go programs using go/ast and related packages.
My current problem is that when I use astutil.AddImport.
When I rn the program below, which creates a new ast.File and uses
astutil.AddImport to import to