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