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