16 lines
454 B
C#
16 lines
454 B
C#
|
using Canon.Core.Enums;
|
|||
|
|
|||
|
namespace Canon.Core.SyntaxNodes;
|
|||
|
|
|||
|
public class CompoundStatement : NonTerminatedSyntaxNode
|
|||
|
{
|
|||
|
public override NonTerminatorType Type => NonTerminatorType.CompoundStatement;
|
|||
|
|
|||
|
public IEnumerable<Statement> Statements => Children[1].Convert<StatementList>().Statements;
|
|||
|
|
|||
|
public static CompoundStatement Create(List<SyntaxNodeBase> children)
|
|||
|
{
|
|||
|
return new CompoundStatement { Children = children };
|
|||
|
}
|
|||
|
}
|