Beispiel #1
0
 public PreprocessorToken(
     string text,
     TextUnit first,
     PreprocessorTokenType preprocessorTokenType)
 {
     Text  = text ?? throw new ArgumentNullException(nameof(text));
     First = first;
     PreprocessorTokenType = preprocessorTokenType;
 }
Beispiel #2
0
 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));
 }