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