Beispiel #1
0
        public static string GenerateApex(BaseSyntax ast, int tabSize = 4)
        {
            var generator = new ApexCodeGenerator {
                IndentSize = tabSize
            };

            ast.Accept(generator);
            return(generator.Code.ToString());
        }
Beispiel #2
0
 public static string ToApex(this BaseSyntax node, int tabSize = 4) =>
 ApexCodeGenerator.GenerateApex(node, tabSize);