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)); }
public TypeName(DeclarationSpecifiers specifiers, Declarator declarator) { Specifiers = specifiers; Declarator = declarator; }
protected Declaration(DeclarationSpecifiers specs, Declarator decl, Initializer init) { Specifiers = specs; Declarator = decl; Initializer = init; }
public PointerDeclarator(Pointer pointer, Declarator decl) { Pointer = pointer; InnerDeclarator = decl; }
public ParameterDeclaration(DeclarationSpecifiers specs, Declarator dec) { DeclarationSpecifiers = specs; Name = dec.DeclaredIdentifier; Declarator = dec; }
public PointerDeclarator(Pointer pointer, Declarator decl) : base(decl) { Pointer = pointer; }
public FunctionDeclarator(Declarator innerDeclarator, List <ParameterDeclaration> parameters) : base(innerDeclarator) { Parameters = parameters; }
public InitDeclarator(Declarator declarator, Initializer?initializer) { Declarator = declarator; Initializer = initializer; }