Beispiel #1
0
        public static string Generate(ClassDeclaration cd)
        {
            var generator = new ApexCodeGenerator();

            cd.Accept(generator);
            return(generator.Code.ToString());
        }
Beispiel #2
0
        public static string GenerateApex(BaseSyntax ast, int tabSize = 4)
        {
            var generator = new ApexCodeGenerator {
                IndentSize = tabSize
            };

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