5 instantiations of FunctionPointerMethodSymbol
Microsoft.CodeAnalysis.CSharp (5)
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (5)
97return new FunctionPointerMethodSymbol( 253return new FunctionPointerMethodSymbol( 299return new FunctionPointerMethodSymbol( 331=> new FunctionPointerMethodSymbol(callingConvention, retAndParamTypes, useUpdatedEscapeRules: containingModule.UseUpdatedEscapeRules); 338=> new FunctionPointerMethodSymbol(
69 references to FunctionPointerMethodSymbol
Microsoft.CodeAnalysis.CSharp (62)
Binder\Binder.ValueChecks.cs (5)
2428if (method is FunctionPointerMethodSymbol) 3467var methodSymbol = ptrInvocation.FunctionPointer.Signature; 3906FunctionPointerMethodSymbol signature = functionPointerInvocation.FunctionPointer.Signature; 4174var ptrSymbol = ptrInvocation.FunctionPointer.Signature; 4889var ptrSymbol = ptrInvocation.FunctionPointer.Signature;
Binder\Binder_Invocation.cs (4)
2349var overloadResolutionResult = OverloadResolutionResult<FunctionPointerMethodSymbol>.GetInstance(); 2351var methodsBuilder = ArrayBuilder<FunctionPointerMethodSymbol>.GetInstance(1); 2363ImmutableArray<FunctionPointerMethodSymbol> methods = methodsBuilder.ToImmutableAndFree(); 2390MemberResolutionResult<FunctionPointerMethodSymbol> methodResult = overloadResolutionResult.ValidResult;
Binder\RefSafetyAnalysis.cs (1)
864var method = node.FunctionPointer.Signature;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (5)
1462? new CallingConventionInfo(method.CallingConvention, ((FunctionPointerMethodSymbol)method).GetCallingConventionModifiers()) 1886private static bool FunctionPointerCallingConventionsEqual(FunctionPointerMethodSymbol sourceSignature, FunctionPointerMethodSymbol targetSignature) 1901private static bool FunctionPointerRefKindsEqual(FunctionPointerMethodSymbol sourceSignature, FunctionPointerMethodSymbol targetSignature)
Binder\Semantics\OverloadResolution\OverloadResolution.cs (2)
556ArrayBuilder<FunctionPointerMethodSymbol> funcPtrBuilder, 558OverloadResolutionResult<FunctionPointerMethodSymbol> overloadResolutionResult,
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (4)
473if (firstSupported.Member is FunctionPointerMethodSymbol 488&& (firstSupported.Member is not FunctionPointerMethodSymbol)) 936FunctionPointerMethodSymbol functionPointerMethodBeingInvoked = symbols.IsDefault || symbols.Length != 1 938: symbols[0] as FunctionPointerMethodSymbol;
CodeGen\EmitExpression.cs (1)
4029FunctionPointerMethodSymbol method = ptrInvocation.FunctionPointer.Signature;
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
388var sig = symbol.Signature; 672var sig = type.Signature; 673var otherSig = other.Signature; 911var sig = symbol.Signature;
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (3)
59/// as a StandaloneMethodSig. To do this, we wrap the <see cref="FunctionPointerMethodSymbol"/> in a 64private readonly FunctionPointerMethodSymbol _underlying; 67internal FunctionPointerMethodSignature(FunctionPointerMethodSymbol underlying)
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
666var requiresInstanceReceiver = methodOrIndexer.RequiresInstanceReceiver() && methodOrIndexer is not MethodSymbol { MethodKind: MethodKind.Constructor } and not FunctionPointerMethodSymbol;
Symbols\Compilation_WellKnownMembers.cs (1)
1002var sig = funcPtr.Signature;
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (13)
23public static FunctionPointerMethodSymbol CreateFromSource(FunctionPointerTypeSyntax syntax, Binder typeBinder, BindingDiagnosticBag diagnostics, ConsList<TypeSymbol> basesBeingResolved, bool suppressUseSiteDiagnostics) 243internal static FunctionPointerMethodSymbol CreateFromPartsForTest( 267internal static FunctionPointerMethodSymbol CreateFromParts( 330public static FunctionPointerMethodSymbol CreateFromMetadata(ModuleSymbol containingModule, CallingConvention callingConvention, ImmutableArray<ParamInfo<TypeSymbol>> retAndParamTypes) 333public FunctionPointerMethodSymbol SubstituteParameterSymbols( 348internal FunctionPointerMethodSymbol MergeEquivalentTypes(FunctionPointerMethodSymbol signature, VarianceKind variance) 400public FunctionPointerMethodSymbol SetNullabilityForReferenceTypes(Func<TypeWithAnnotations, TypeWithAnnotations> transform) 558static ImmutableArray<FunctionPointerParameterSymbol> makeParametersFromMetadata(ReadOnlySpan<ParamInfo<TypeSymbol>> parameterTypes, FunctionPointerMethodSymbol parent) 603internal FunctionPointerMethodSymbol ApplyNullableTransforms(byte defaultTransformFlag, ImmutableArray<byte> transforms, ref int position) 705if (!(other is FunctionPointerMethodSymbol method)) 713internal bool Equals(FunctionPointerMethodSymbol other, TypeCompareKind compareKind) 721private bool EqualsNoParameters(FunctionPointerMethodSymbol other, TypeCompareKind compareKind)
Symbols\FunctionPointers\FunctionPointerParameterSymbol.cs (2)
14private readonly FunctionPointerMethodSymbol _containingSymbol; 16public FunctionPointerParameterSymbol(TypeWithAnnotations typeWithAnnotations, RefKind refKind, int ordinal, FunctionPointerMethodSymbol containingSymbol, ImmutableArray<CustomModifier> refCustomModifiers)
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (9)
20FunctionPointerMethodSymbol.CreateFromSource( 40=> new FunctionPointerTypeSymbol(FunctionPointerMethodSymbol.CreateFromPartsForTest(callingConvention, returnType, refCustomModifiers, returnRefKind, parameterTypes, parameterRefCustomModifiers, parameterRefKinds, compilation)); 53=> new FunctionPointerTypeSymbol(FunctionPointerMethodSymbol.CreateFromParts(callingConvention, callingConventionModifiers, returnType, returnRefKind, parameterTypes, parameterRefKinds, compilation)); 57FunctionPointerMethodSymbol.CreateFromMetadata(containingModule, callingConvention, retAndParamTypes)); 66private FunctionPointerTypeSymbol(FunctionPointerMethodSymbol signature) 71public FunctionPointerMethodSymbol Signature { get; } 137var newSignature = Signature.ApplyNullableTransforms(defaultTransformFlag, transforms, ref position); 163var mergedSignature = Signature.MergeEquivalentTypes(((FunctionPointerTypeSymbol)other).Signature, variance); 174var substitutedSignature = Signature.SetNullabilityForReferenceTypes(transform);
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
352var sig = type.Signature;
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
761var signature = type.Signature;
Symbols\Source\ParameterHelpers.cs (5)
65FunctionPointerMethodSymbol owner, 70return MakeParameters<FunctionPointerParameterSyntax, FunctionPointerParameterSymbol, FunctionPointerMethodSymbol>( 81parameterCreationFunc: (Binder binder, FunctionPointerMethodSymbol owner, TypeWithAnnotations parameterType, 130Debug.Assert(!parsingFunctionPointer || owner is FunctionPointerMethodSymbol); 678Debug.Assert(containingSymbol is null || (containingSymbol is FunctionPointerMethodSymbol or { ContainingType: not null }));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenFunctionPointersTests.cs (2)
303var signature = ((FunctionPointerTypeSymbol)field.Type).Signature; 379var signature = ((FunctionPointerTypeSymbol)field.Type).Signature;
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\FunctionPointerTypeSymbolTests.cs (4)
196var firstSignature = ((FunctionPointerTypeSymbol)m.Parameters[0].Type).Signature; 197var secondSignature = ((FunctionPointerTypeSymbol)m.Parameters[1].Type).Signature; 399var sixthParamParam = ((FunctionPointerTypeSymbol)sixthParam.Parameters.Single().Type).Signature; 679var signature = ((FunctionPointerTypeSymbol)m.Parameters.Single().Type).Signature;
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
FunctionPointerUtilities.cs (1)
277var signature = funcPtr.Signature;