Example #1
0
 public ParameterDeclaration(DeclarationSpecifiers specs, Declarator dec, Expression defaultValue)
 {
     DeclarationSpecifiers = specs;
     Name         = dec.DeclaredIdentifier;
     Declarator   = dec;
     DefaultValue = defaultValue;
 }
 public FunctionDefinition(DeclarationSpecifiers specifiers, Declarator declarator, List <Declaration>?parameterDeclarations, Block body)
 {
     Specifiers            = specifiers ?? throw new ArgumentNullException(nameof(specifiers));
     Declarator            = declarator ?? throw new ArgumentNullException(nameof(declarator));
     ParameterDeclarations = parameterDeclarations;
     Body = body ?? throw new ArgumentNullException(nameof(body));
 }
Example #3
0
 public TypeName(DeclarationSpecifiers specifiers, Declarator declarator)
 {
     Specifiers = specifiers;
     Declarator = declarator;
 }
Example #4
0
 protected Declaration(DeclarationSpecifiers specs, Declarator decl, Initializer init)
 {
     Specifiers  = specs;
     Declarator  = decl;
     Initializer = init;
 }
Example #5
0
 public PointerDeclarator(Pointer pointer, Declarator decl)
 {
     Pointer         = pointer;
     InnerDeclarator = decl;
 }
Example #6
0
 public ParameterDeclaration(DeclarationSpecifiers specs, Declarator dec)
 {
     DeclarationSpecifiers = specs;
     Name       = dec.DeclaredIdentifier;
     Declarator = dec;
 }
Example #7
0
 public PointerDeclarator(Pointer pointer, Declarator decl) : base(decl)
 {
     Pointer = pointer;
 }
Example #8
0
 public FunctionDeclarator(Declarator innerDeclarator, List <ParameterDeclaration> parameters)
     : base(innerDeclarator)
 {
     Parameters = parameters;
 }
 public InitDeclarator(Declarator declarator, Initializer?initializer)
 {
     Declarator  = declarator;
     Initializer = initializer;
 }