public ParameterDeclarationAstNode( IReadOnlyList <SpecifierAstNode>?specifiers, DeclaratorAstNode declarator, int line, int column) : base(line, column) { Specifiers = specifiers; Declarator = declarator; }
public OldStyleParameterizedDeclaratorAstNode( DeclaratorAstNode declarator, IReadOnlyList <string>?parameterNameList, int line, int column) : base(line, column) { Declarator = declarator; ParameterNameList = parameterNameList; }
public InitDeclaratorAstNode(DeclaratorAstNode declarator, InitializerAstNode initializer, int line, int column) : base(line, column) { if (declarator.Name == null) { throw new InvalidOperationException( "Can't use unnamed declarator with initializer."); } Declarator = declarator; Initializer = initializer; }