2024-08-15 16:18:32 +08:00
|
|
|
|
namespace CanonSharp.Pascal.SyntaxTree;
|
|
|
|
|
|
2024-08-18 11:11:54 +08:00
|
|
|
|
public sealed class ProgramBody(BlockNode constantDeclarations, BlockNode variableDeclarations,
|
|
|
|
|
BlockNode subprograms,
|
|
|
|
|
BlockNode mainBlock)
|
|
|
|
|
: SyntaxNodeBase
|
2024-08-15 16:18:32 +08:00
|
|
|
|
{
|
|
|
|
|
public override SyntaxNodeType NodeType => SyntaxNodeType.ProgramBody;
|
|
|
|
|
|
2024-08-16 17:07:53 +08:00
|
|
|
|
public BlockNode ConstantDeclarations => constantDeclarations;
|
|
|
|
|
|
|
|
|
|
public BlockNode VariableDeclarations => variableDeclarations;
|
|
|
|
|
|
2024-08-18 11:11:54 +08:00
|
|
|
|
public BlockNode Subprograms => subprograms;
|
|
|
|
|
|
2024-08-16 17:07:53 +08:00
|
|
|
|
public BlockNode MainBlock => mainBlock;
|
2024-08-15 16:18:32 +08:00
|
|
|
|
}
|