using Canon.Core.Enums; namespace Canon.Core.SyntaxNodes; public class CompoundStatement : NonTerminatedSyntaxNode { public override NonTerminatorType Type => NonTerminatorType.CompoundStatement; public IEnumerable Statements => Children[1].Convert().Statements; public static CompoundStatement Create(List children) { return new CompoundStatement { Children = children }; } }