Symbols\TypeSymbolExtensions.cs (8)
451return (TypeSymbol?)GetDelegateType(type) ?? type as FunctionPointerTypeSymbol;
586Debug.Assert(type is FunctionPointerTypeSymbol || type.IsDelegateType());
587if (type is FunctionPointerTypeSymbol { Signature: { Parameters: var functionPointerParameters } })
933var result = visitFunctionPointerType((FunctionPointerTypeSymbol)current, typeWithAnnotationsPredicate, typePredicate, arg, useDefaultType, canDigThroughNullable, visitCustomModifiers, out next);
954static TypeSymbol? visitFunctionPointerType(FunctionPointerTypeSymbol type, Func<TypeWithAnnotations, T, bool, bool>? typeWithAnnotationsPredicate, Func<TypeSymbol, T, bool, bool>? typePredicate, T arg, bool useDefaultType, bool canDigThroughNullable, bool visitCustomModifiers, out TypeWithAnnotations next)
1944var functionPointerType = (FunctionPointerTypeSymbol)type;
2043private static bool NormalizeTaskTypesInFunctionPointer(CSharpCompilation compilation, ref FunctionPointerTypeSymbol funcPtrType)