Symbols\TypeSymbolExtensions.cs (8)
450return (TypeSymbol?)GetDelegateType(type) ?? type as FunctionPointerTypeSymbol;
585Debug.Assert(type is FunctionPointerTypeSymbol || type.IsDelegateType());
586if (type is FunctionPointerTypeSymbol { Signature: { Parameters: var functionPointerParameters } })
931var result = visitFunctionPointerType((FunctionPointerTypeSymbol)current, typeWithAnnotationsPredicate, typePredicate, arg, useDefaultType, canDigThroughNullable, visitCustomModifiers, out next);
952static 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)
1943var functionPointerType = (FunctionPointerTypeSymbol)type;
2042private static bool NormalizeTaskTypesInFunctionPointer(CSharpCompilation compilation, ref FunctionPointerTypeSymbol funcPtrType)