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