Пример #1
0
        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");
        }
Пример #2
0
        public static StatementSyntax Transpile(this Syntax.ElseSyntax elseNode)
        {
            _ = elseNode ?? throw new ArgumentNullException(nameof(elseNode));

            return(SyntaxFactory.Block(elseNode.StatementListNode.Transpile()));
        }