コード例 #1
0
 public PreprocessorToken(
     string text,
     TextUnit first,
     PreprocessorTokenType preprocessorTokenType)
 {
     Text  = text ?? throw new ArgumentNullException(nameof(text));
     First = first;
     PreprocessorTokenType = preprocessorTokenType;
 }
コード例 #2
0
ファイル: Define.cs プロジェクト: Maseya/MushROMs
 public Define(
     TextUnit start,
     string name,
     IEnumerable <PreprocessorToken> tokens)
 {
     Start  = start;
     Name   = name ?? throw new ArgumentNullException(nameof(name));
     Tokens = new ReadOnlyCollection <PreprocessorToken>(
         new List <PreprocessorToken>(tokens));
 }