Files

17 lines
747 B
C#
Raw Permalink Normal View History

2026-08-27 10:56:38 -06:00
using System.Collections.Immutable;
namespace Microsoft.CodeAnalysis.CSharp.Symbols;
internal sealed class SynthesizedDelegateConstructor : SynthesizedInstanceConstructor
{
private readonly ImmutableArray<ParameterSymbol> _parameters;
public override ImmutableArray<ParameterSymbol> Parameters => _parameters;
public SynthesizedDelegateConstructor(NamedTypeSymbol containingType, TypeSymbol objectType, TypeSymbol intPtrType)
: base(containingType)
{
_parameters = ImmutableArray.Create(SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(objectType), 0, (RefKind)0, "object", (ScopedKind)0), SynthesizedParameterSymbol.Create(this, TypeWithAnnotations.Create(intPtrType), 1, (RefKind)0, "method", (ScopedKind)0));
}
}