コード例 #1
0
        public static void SaveFile(AstFile file, string filePath = "file.dgml")
        {
            var builder = new AstDgmlBuilder();

            builder.CreateCommon();
            _ = builder.WriteFile(file);
            builder.SaveAs(filePath);
        }
コード例 #2
0
        public static void Save(AstNode node, string filePath = "node.dgml")
        {
            var builder = new AstDgmlBuilder();

            builder.CreateCommon();
            _ = builder.WriteNode(node);
            builder.SaveAs(filePath);
        }