2 types derived from NuGetLicenseExpression
NuGet.Packaging (2)
Licenses\LicenseOperator.cs (1)
10
public abstract class LicenseOperator :
NuGetLicenseExpression
Licenses\NuGetLicense.cs (1)
13
public class NuGetLicense :
NuGetLicenseExpression
53 references to NuGetLicenseExpression
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
220
expression:
NuGetLicenseExpression
.Parse(PackageLicenseExpression),
NuGet.Build.Tasks.Pack (2)
PackTaskLogic.cs (2)
281
var
expression =
NuGetLicenseExpression
.Parse(request.PackageLicenseExpression);
NuGet.CommandLine.XPlat (21)
_generated\10\PackageSearchJsonContext.NuGetLicenseExpression.g.cs (14)
13
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
>? _NuGetLicenseExpression;
19
public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
> NuGetLicenseExpression
22
get => _NuGetLicenseExpression ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
>)Options.GetTypeInfo(typeof(global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
));
25
private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
> Create_NuGetLicenseExpression(global::System.Text.Json.JsonSerializerOptions options)
27
if (!TryGetTypeInfoForRuntimeCustomConverter<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
> jsonTypeInfo))
29
var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
>
39
jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
>(options, objectInfo);
56
DeclaringType = typeof(global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
),
58
Getter = static obj => ((global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
)obj).Type,
66
AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.Licenses.LicenseExpressionType), global::System.Array.Empty<global::System.Type>(), null),
76
private void NuGetLicenseExpressionSerializeHandler(global::System.Text.Json.Utf8JsonWriter writer, global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
? value)
87
global::System.Text.Json.JsonSerializer.Serialize(writer, ((global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
)value).Type, LicenseExpressionType);
_generated\36\PackageSearchJsonContext.GetJsonTypeInfo.g.cs (1)
62
if (type == typeof(global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
))
_generated\8\PackageSearchJsonContext.LicenseMetadata.g.cs (6)
32
ObjectWithParameterizedConstructorCreator = static args => new global::NuGet.Packaging.LicenseMetadata((global::NuGet.Packaging.LicenseType)args[0], (string)args[1], (global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
)args[2], (global::System.Collections.Generic.IReadOnlyList<string>)args[3], (global::System.Version)args[4]),
35
ConstructorAttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetConstructor(InstanceMemberBindingFlags, binder: null, new[] {typeof(global::NuGet.Packaging.LicenseType), typeof(string), typeof(global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
), typeof(global::System.Collections.Generic.IReadOnlyList<string>), typeof(global::System.Version)}, modifiers: null),
92
var info2 = new global::System.Text.Json.Serialization.Metadata.JsonPropertyInfoValues<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
>
107
AttributeProviderFactory = static () => typeof(global::NuGet.Packaging.LicenseMetadata).GetProperty("LicenseExpression", InstanceMemberBindingFlags, null, typeof(global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
), global::System.Array.Empty<global::System.Type>(), null),
110
properties[2] = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreatePropertyInfo<global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
>(options, info2);
229
ParameterType = typeof(global::NuGet.Packaging.Licenses.
NuGetLicenseExpression
),
NuGet.Packaging (26)
Licenses\LicenseExpressionType.cs (1)
7
/// Represents the expression type of a <see cref="
NuGetLicenseExpression
"/>.
Licenses\LicenseOperatorType.cs (1)
7
/// Represents the type of <see cref="LicenseOperator"/> <see cref="
NuGetLicenseExpression
"/>.
Licenses\LogicalOperator.cs (5)
12
/// This operator will always have a left and a right side, both of which are <see cref="
NuGetLicenseExpression
"/> and never null.
16
public LogicalOperator(LogicalOperatorType logicalOperatorType,
NuGetLicenseExpression
left,
NuGetLicenseExpression
right) :
27
public
NuGetLicenseExpression
Left { get; }
28
public
NuGetLicenseExpression
Right { get; }
Licenses\NuGetLicenseExpression.cs (1)
33
public static
NuGetLicenseExpression
Parse(string expression)
Licenses\NuGetLicenseExpressionExtensions.cs (3)
15
public static bool HasOnlyStandardIdentifiers(this
NuGetLicenseExpression
expression)
47
public static void OnEachLeafNode(this
NuGetLicenseExpression
expression, Action<NuGetLicense>? licenseProcessor, Action<NuGetLicenseException>? exceptionProcessor)
87
public static bool IsUnlicensed(this
NuGetLicenseExpression
expression)
Licenses\NuGetLicenseExpressionParser.cs (6)
28
internal static
NuGetLicenseExpression
Parse(string expression)
138
return value.Item1 ? NuGetLicense.ParseIdentifier(((LicenseExpressionToken)value.Item2).Value, allowUnlicensed: true) : (
NuGetLicenseExpression
)value.Item2;
189
var
right = rightOperand.Item1 ?
191
(
NuGetLicenseExpression
)rightOperand.Item2;
193
var
left = leftOperand.Item1 ?
195
(
NuGetLicenseExpression
)leftOperand.Item2;
Licenses\WithOperator.cs (1)
9
/// Represents a <see cref="
NuGetLicenseExpression
"/> that's a WITH operator.
NuspecReader.cs (3)
485
var
expression =
NuGetLicenseExpression
.Parse(license!);
541
private static IList<string>? GetNonStandardLicenseIdentifiers(
NuGetLicenseExpression
expression)
PackageCreation\Authoring\LicenseMetadata.cs (2)
36
public
NuGetLicenseExpression
? LicenseExpression { get; }
48
public LicenseMetadata(LicenseType type, string license,
NuGetLicenseExpression
? expression, IReadOnlyList<string>? warningsAndErrors, Version version)
PackageCreation\Authoring\ManifestReader.cs (2)
221
var
expression =
NuGetLicenseExpression
.Parse(license!);
Rules\UnrecognizedLicenseIdentifierRule.cs (1)
35
private void ValidateAllLicenseLeafs(
NuGetLicenseExpression
expression, IList<PackagingLogMessage> logMessages)
NuGet.Protocol (3)
Model\PackageSearchMetadata.cs (3)
178
NuGetLicenseExpression
parsedExpression = null;
184
parsedExpression =
NuGetLicenseExpression
.Parse(trimmedLicenseExpression);
225
private static IList<string> GetNonStandardLicenseIdentifiers(
NuGetLicenseExpression
expression)