public static void Encode(Escape.Ast.Program program, bool includeLocation, TextWriter stdout) { new JsonEncoder(stdout, includeLocation).Visit(program); }
protected abstract void Visit(Escape.Ast.Program node);
protected override void Visit(Escape.Ast.Program node) { Encode(node, Member("body", node.Body)); }