コード例 #1
0
 public ParameterDeclarationAstNode(
     IReadOnlyList <SpecifierAstNode>?specifiers,
     DeclaratorAstNode declarator, int line, int column)
     : base(line, column)
 {
     Specifiers = specifiers;
     Declarator = declarator;
 }
コード例 #2
0
 public OldStyleParameterizedDeclaratorAstNode(
     DeclaratorAstNode declarator,
     IReadOnlyList <string>?parameterNameList,
     int line, int column)
     : base(line, column)
 {
     Declarator        = declarator;
     ParameterNameList = parameterNameList;
 }
コード例 #3
0
 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;
 }