public FileSyntax(EmptyNode emptyNode, DeclarationListSyntax declarationsNode, FunctionListSyntax functionsNode, TokenNode endOfFileNode) : base(emptyNode, declarationsNode, functionsNode, endOfFileNode) { _empty = emptyNode ?? throw new ArgumentNullException(nameof(emptyNode)); _declrs = declarationsNode ?? throw new ArgumentNullException(nameof(declarationsNode)); _functions = functionsNode ?? throw new ArgumentNullException(nameof(functionsNode)); _eof = endOfFileNode ?? throw new ArgumentNullException(nameof(endOfFileNode)); }
public FileSyntax(LineDelimiterSyntax eolNode, DeclarationListSyntax declarationsNode, FunctionListSyntax functionsNode, TokenNode endOfFileNode) : base(eolNode, declarationsNode, functionsNode, endOfFileNode) { _eol = eolNode ?? throw new ArgumentNullException(nameof(eolNode)); _declrs = declarationsNode ?? throw new ArgumentNullException(nameof(declarationsNode)); _functions = functionsNode ?? throw new ArgumentNullException(nameof(functionsNode)); _eof = endOfFileNode ?? throw new ArgumentNullException(nameof(endOfFileNode)); }