public static void SaveFile(AstFile file, string filePath = "file.dgml") { var builder = new AstDgmlBuilder(); builder.CreateCommon(); _ = builder.WriteFile(file); builder.SaveAs(filePath); }
public static void Save(AstNode node, string filePath = "node.dgml") { var builder = new AstDgmlBuilder(); builder.CreateCommon(); _ = builder.WriteNode(node); builder.SaveAs(filePath); }