15 references to IsRestrictedType
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Lambda.cs (1)
298else if (returnType.IsRestrictedType(ignoreSpanLikeTypes: true))
Binder\Binder_Symbols.cs (1)
646if (type.IsRestrictedType())
Errors\LazyArrayElementCantBeRefAnyDiagnosticInfo.cs (1)
34if (_possiblyRestrictedTypeSymbol.IsRestrictedType())
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
579if (p.TypeWithAnnotations.IsRestrictedType())
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (2)
84if (local.TypeWithAnnotations.IsRestrictedType()) 100Debug.Assert(parameter.TypeWithAnnotations.IsRestrictedType());
Symbols\ConstraintsHelper.cs (1)
935if (typeArgument.Type.IsPointerOrFunctionPointer() || typeArgument.IsRestrictedType(ignoreSpanLikeTypes: true) || typeArgument.IsVoidType())
Symbols\FunctionPointers\FunctionPointerMethodSymbol.cs (1)
81else if (returnType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\LocalFunctionSymbol.cs (1)
280if (returnType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\ParameterHelpers.cs (1)
692typeWithAnnotations.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
64if (returnType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1888if (!fieldSupported || elementType.Type.IsPointerOrFunctionPointer() || elementType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
139if (returnType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\SourceUserDefinedOperatorSymbolBase.cs (1)
256if (returnType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\TypeWithAnnotations.cs (1)
1098internal override bool IsRestrictedType(TypeSymbol typeSymbol, bool ignoreSpanLikeTypes) => _underlying.IsRestrictedType(ignoreSpanLikeTypes);