Beispiel #1
0
 public UnifiedShaderParsingUnexpectedTokenException(UnifiedShaderParserV1.UnifiedShaderToken token, params string[] allowedStringTokens) : base(
         "Unexpected token " + token + ", expected string token with value in " + allowedStringTokens.Select(x => "'" + x + "'").Aggregate((a, b) => a + ", " + b))
 {
 }
Beispiel #2
0
 public UnifiedShaderParsingUnexpectedTokenException(UnifiedShaderParserV1.UnifiedShaderToken token, params UnifiedShaderParserV1.UnifiedShaderTokenType[] allowedTokens) : base(
         "Unexpected token " + token + ", expected token with type in " + allowedTokens.Select(x => x.ToString()).Aggregate((a, b) => a + ", " + b))
 {
 }