コード例 #1
0
ファイル: FileSyntax.cs プロジェクト: yungshing/War3Net
 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));
 }
コード例 #2
0
ファイル: FileSyntax.cs プロジェクト: yungshing/War3Net
 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));
 }