jackfiled
cf19f8197e
Reviewed-on: https://git.bupt-hpc.cn/jackfiled/CanonSharp/pulls/3 Co-authored-by: jackfiled <xcrenchangjun@outlook.com> Co-committed-by: jackfiled <xcrenchangjun@outlook.com>
19 lines
499 B
C#
19 lines
499 B
C#
using CanonSharp.Pascal.Scanner;
|
|
|
|
namespace CanonSharp.Pascal.SyntaxTree;
|
|
|
|
public sealed class ProcedureCallNode : SyntaxNodeBase
|
|
{
|
|
public ProcedureCallNode(LexicalToken identifier, IEnumerable<SyntaxNodeBase> parameters)
|
|
{
|
|
Identifier = identifier;
|
|
Parameters.AddRange(parameters);
|
|
}
|
|
|
|
public override SyntaxNodeType NodeType => SyntaxNodeType.ProcedureCall;
|
|
|
|
public LexicalToken Identifier { get; }
|
|
|
|
public List<SyntaxNodeBase> Parameters { get; } = [];
|
|
}
|