public static void Transpile(this Syntax.ElseSyntax elseNode, ref StringBuilder sb) { _ = elseNode ?? throw new ArgumentNullException(nameof(elseNode)); sb.AppendLine("else"); elseNode.StatementListNode.Transpile(ref sb); sb.Append("end"); }
public static StatementSyntax Transpile(this Syntax.ElseSyntax elseNode) { _ = elseNode ?? throw new ArgumentNullException(nameof(elseNode)); return(SyntaxFactory.Block(elseNode.StatementListNode.Transpile())); }