1 write to TokenType
NuGet.Packaging (1)
Licenses\LicenseExpressionToken.cs (1)
27TokenType = tokenType;
16 references to TokenType
NuGet.Packaging (16)
Licenses\LicenseExpressionToken.cs (1)
32return $"Value: {Value}, Type: {TokenType}";
Licenses\NuGetLicenseExpressionParser.cs (15)
44var currentTokenType = token.TokenType; 45switch (token.TokenType) 48if (!firstPass && !token.TokenType.IsValidPrecedingToken(lastTokenType)) 57if (!firstPass && !token.TokenType.IsValidPrecedingToken(lastTokenType)) 65if (firstPass || !token.TokenType.IsValidPrecedingToken(lastTokenType)) 71while (operatorStack.Count > 0 && operatorStack.Peek().TokenType != LicenseTokenType.OPENING_BRACKET) 90if (firstPass && !token.TokenType.IsValidPrecedingToken(lastTokenType)) 95operatorStack.Peek().TokenType == LicenseTokenType.OPENING_BRACKET || // The last token is an opening bracket (treat it the same as empty 96token.TokenType < operatorStack.Peek().TokenType) // An operator that has higher priority than the operator on the stack 101else if (token.TokenType >= operatorStack.Peek().TokenType) 117if (operatorStack.Peek().TokenType != LicenseTokenType.OPENING_BRACKET) 171if (op.TokenType == LicenseTokenType.WITH) 187var logicalOperator = op.TokenType == LicenseTokenType.AND ? LogicalOperatorType.And : LogicalOperatorType.Or;