15 references to IsFunctionPointer
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Conversions.cs (1)
2910
if (delegateType.
IsFunctionPointer
())
Binder\Binder_Lookup.cs (1)
1745
return (object)type != null && (type.IsDelegateType() || type.IsDynamic() || type.
IsFunctionPointer
());
Binder\Binder_Statements.cs (2)
1087
Error(localDiagnostics, declTypeOpt.Type.
IsFunctionPointer
() ? ErrorCode.ERR_CannotUseFunctionPointerAsFixedLocal : ErrorCode.ERR_BadFixedInitType, declarator);
2403
case BoundKind.AddressOfOperator when targetType.
IsFunctionPointer
():
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (8)
994
var isFunctionPointer = delegateOrFunctionPointerType.
IsFunctionPointer
();
1050
var isFunctionPointer = delegateOrFunctionPointerType.
IsFunctionPointer
();
1431
if (delegateOrFunctionPointerType.
IsFunctionPointer
() != (source.Kind == BoundKind.UnconvertedAddressOfOperator))
2421
if ((sourceParam.Type.IsReferenceType || sourceParam.Type.
IsFunctionPointer
()) && sourceParam.RefKind == RefKind.None)
2431
if ((sourceSignature.ReturnType.IsReferenceType || sourceSignature.ReturnType.
IsFunctionPointer
()) && sourceSignature.RefKind == RefKind.None)
2484
Debug.Assert(source.Type.IsReferenceType || source.Type.
IsFunctionPointer
());
2771
if ((sourceParam.Type.IsReferenceType || sourceParam.Type.
IsFunctionPointer
()) && sourceParam.RefKind == RefKind.None)
2781
if ((sourceSignature.ReturnType.IsReferenceType || sourceSignature.ReturnType.
IsFunctionPointer
()) && sourceSignature.RefKind == RefKind.None)
Binder\Semantics\OverloadResolution\OverloadResolutionResult.cs (1)
702
diagnostics.Add(delegateOrFunctionPointerType.
IsFunctionPointer
() ? ErrorCode.ERR_FuncPtrRefMismatch : ErrorCode.ERR_DelegateRefMismatch,
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
884
else if (parentIsConversion && convertedToType.
IsFunctionPointer
())
Symbols\TypeSymbolExtensions.cs (1)
1279
type.VisitType((TypeSymbol t, object? _, bool _) => t.
IsFunctionPointer
(), null) is object;