CanonSharp/CanonSharp.Pascal/SyntaxTree/BlockNode.cs

9 lines
273 B
C#
Raw Permalink Normal View History

namespace CanonSharp.Pascal.SyntaxTree;
public sealed class BlockNode(IEnumerable<SyntaxNodeBase> statements) : SyntaxNodeBase
{
public override SyntaxNodeType NodeType => SyntaxNodeType.Block;
public IList<SyntaxNodeBase> Statements => statements.ToList();
}