17 lines
747 B
C#
17 lines
747 B
C#
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));
|
||
|
|
}
|
||
|
|
}
|