4 instantiations of NuGetLicense
NuGet.Packaging (4)
Licenses\NuGetLicense.cs (4)
55new NuGetLicense(licenseIdentifier, plus: false, isStandardLicense: true) : 67new NuGetLicense(cleanIdentifier, plus: plus, isStandardLicense: true) : 107return new NuGetLicense(licenseIdentifier, plus: false, isStandardLicense: true); // UNLICENSED is considered a standard license. 113return new NuGetLicense(licenseIdentifier, plus: plus, isStandardLicense: false);
24 references to NuGetLicense
NuGet.Packaging (22)
Licenses\LicenseExpressionType.cs (1)
8/// License type means that it's a <see cref="NuGetLicense"/>. Operator means that it's a <see cref="LicenseOperator"/>
Licenses\NuGetLicense.cs (2)
48internal static NuGetLicense ParseIdentifier(string licenseIdentifier, bool allowUnlicensed = false) 93private static NuGetLicense ProcessLicenseNotInStandardData(string licenseIdentifier, bool plus, bool allowUnlicensed)
Licenses\NuGetLicenseExpression.cs (2)
8/// This is an abstract class so based on the Type, it can be either a <see cref="NuGetLicense"/> or a <see cref="LicenseOperator"/>. 15/// License type means that it's a <see cref="NuGetLicense"/>.
Licenses\NuGetLicenseExpressionExtensions.cs (7)
20return ((NuGetLicense)expression).IsStandardLicense; 47public static void OnEachLeafNode(this NuGetLicenseExpression expression, Action<NuGetLicense>? licenseProcessor, Action<NuGetLicenseException>? exceptionProcessor) 52var license = (NuGetLicense)expression; 82public static bool IsUnlicensed(this NuGetLicense license) 84return license.Identifier.Equals(NuGetLicense.UNLICENSED, StringComparison.Ordinal); 92return ((NuGetLicense)expression).IsUnlicensed();
Licenses\NuGetLicenseExpressionParser.cs (4)
138return value.Item1 ? NuGetLicense.ParseIdentifier(((LicenseExpressionToken)value.Item2).Value, allowUnlicensed: true) : (NuGetLicenseExpression)value.Item2; 181var withNode = new WithOperator(NuGetLicense.ParseIdentifier(left.Value), NuGetLicenseException.ParseIdentifier(right.Value)); 190NuGetLicense.ParseIdentifier(((LicenseExpressionToken)rightOperand.Item2).Value) : 194NuGetLicense.ParseIdentifier(((LicenseExpressionToken)leftOperand.Item2).Value) :
Licenses\WithOperator.cs (2)
14public WithOperator(NuGetLicense license, NuGetLicenseException exception) : 24public NuGetLicense License { get; private set; }
NuspecReader.cs (2)
544Action<NuGetLicense> licenseProcessor = delegate (NuGetLicense nugetLicense)
Rules\UnrecognizedLicenseIdentifierRule.cs (2)
40var license = (NuGetLicense)expression;
NuGet.Protocol (2)
Model\PackageSearchMetadata.cs (2)
228Action<NuGetLicense> licenseProcessor = delegate (NuGetLicense nugetLicense)