Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 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));
 }