Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ParameterReferenceValue.cs « Linker.Dataflow « linker « src - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 79bdfdeab3b13136c1f73804eb786dd865053cdc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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 ILLink.Shared.DataFlow;
using Mono.Cecil;
using Mono.Linker;

namespace ILLink.Shared.TrimAnalysis
{
	public partial record ParameterReferenceValue (MethodDefinition MethodDefinition, int ParameterIndex)
		: ReferenceValue (MethodDefinition.HasImplicitThis () && ParameterIndex == 0 ? MethodDefinition.DeclaringType
			: MethodDefinition.Parameters[MethodDefinition.HasImplicitThis () ? --ParameterIndex : ParameterIndex].ParameterType)
	{
		public override SingleValue DeepCopy ()
		{
			return this;
		}
	}
}