How to print ASTNode to code?

Hi, I was learn swift AST, and i want make a new VarDecl, it looks well, but how to make a code?
i use SourceLoc() so it no Range, can i insert it to my swift file? how to print like swift code?
Thanks.

Just print.