File: Linker.Dataflow\MethodParameterValue.cs
Web Access
Project: src\src\tools\illink\src\linker\Mono.Linker.csproj (illink)
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
 
using System.Diagnostics.CodeAnalysis;
using ILLink.Shared.TypeSystemProxy;
using Mono.Linker;
using TypeReference = Mono.Cecil.TypeReference;
 
namespace ILLink.Shared.TrimAnalysis
{
 
	/// <summary>
	/// A value that came from a method parameter - such as the result of a ldarg.
	/// </summary>
	internal partial record MethodParameterValue
	{
		public MethodParameterValue (TypeReference? staticType, ParameterProxy param, DynamicallyAccessedMemberTypes dynamicallyAccessedMemberTypes, ITryResolveMetadata resolver)
		{
			StaticType = staticType == null ? null : new (staticType, resolver);
			DynamicallyAccessedMemberTypes = dynamicallyAccessedMemberTypes;
			Parameter = param;
		}
 
		public override DynamicallyAccessedMemberTypes DynamicallyAccessedMemberTypes { get; }
	}
}