4 instantiations of NuGetLicense
NuGet.Packaging (4)
Licenses\NuGetLicense.cs (4)
55
new
NuGetLicense
(licenseIdentifier, plus: false, isStandardLicense: true) :
67
new
NuGetLicense
(cleanIdentifier, plus: plus, isStandardLicense: true) :
107
return new
NuGetLicense
(licenseIdentifier, plus: false, isStandardLicense: true); // UNLICENSED is considered a standard license.
113
return 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)
48
internal static
NuGetLicense
ParseIdentifier(string licenseIdentifier, bool allowUnlicensed = false)
93
private 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)
20
return ((
NuGetLicense
)expression).IsStandardLicense;
47
public static void OnEachLeafNode(this NuGetLicenseExpression expression, Action<
NuGetLicense
>? licenseProcessor, Action<NuGetLicenseException>? exceptionProcessor)
52
var
license = (
NuGetLicense
)expression;
82
public static bool IsUnlicensed(this
NuGetLicense
license)
84
return license.Identifier.Equals(
NuGetLicense
.UNLICENSED, StringComparison.Ordinal);
92
return ((
NuGetLicense
)expression).IsUnlicensed();
Licenses\NuGetLicenseExpressionParser.cs (4)
138
return value.Item1 ?
NuGetLicense
.ParseIdentifier(((LicenseExpressionToken)value.Item2).Value, allowUnlicensed: true) : (NuGetLicenseExpression)value.Item2;
181
var withNode = new WithOperator(
NuGetLicense
.ParseIdentifier(left.Value), NuGetLicenseException.ParseIdentifier(right.Value));
190
NuGetLicense
.ParseIdentifier(((LicenseExpressionToken)rightOperand.Item2).Value) :
194
NuGetLicense
.ParseIdentifier(((LicenseExpressionToken)leftOperand.Item2).Value) :
Licenses\WithOperator.cs (2)
14
public WithOperator(
NuGetLicense
license, NuGetLicenseException exception) :
24
public
NuGetLicense
License { get; private set; }
NuspecReader.cs (2)
544
Action<
NuGetLicense
> licenseProcessor = delegate (
NuGetLicense
nugetLicense)
Rules\UnrecognizedLicenseIdentifierRule.cs (2)
40
var
license = (
NuGetLicense
)expression;
NuGet.Protocol (2)
Model\PackageSearchMetadata.cs (2)
228
Action<
NuGetLicense
> licenseProcessor = delegate (
NuGetLicense
nugetLicense)