32 references to IsRestrictedType
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_AnonymousTypes.cs (1)
231
else if (expressionType.
IsRestrictedType
())
Binder\Binder_Expressions.cs (5)
1210
if ((object)argument.Type != null && argument.Type.
IsRestrictedType
())
3030
&& type.
IsRestrictedType
())
3423
if (bestType.
IsRestrictedType
())
6493
if (typeArgument.Type.IsPointerOrFunctionPointer() || typeArgument.Type.
IsRestrictedType
())
9370
if ((!accessType.IsReferenceType && !accessType.IsValueType) || accessType.IsPointerOrFunctionPointer() || accessType.
IsRestrictedType
())
Binder\Binder_Invocation.cs (3)
886
if (call.ReceiverOpt.Type.
IsRestrictedType
() && !TypeSymbol.Equals(call.Method.ContainingType, call.ReceiverOpt.Type, TypeCompareKind.ConsiderEverything2))
892
else if (call.ReceiverOpt.Kind == BoundKind.BaseReference && this.ContainingType.
IsRestrictedType
())
905
dynInvoke.Expression.Type.
IsRestrictedType
())
Binder\Binder_Operators.cs (3)
363
return !type.IsPointerOrFunctionPointer() && !type.
IsRestrictedType
() && !type.IsVoidType();
3473
if (targetType.
IsRestrictedType
() || operandType.
IsRestrictedType
())
Binder\ForEachLoopBinder.cs (1)
506
if (getEnumeratorType.
IsRestrictedType
() && (IsDirectlyInIterator || IsInAsyncMethod()))
Binder\Semantics\Conversions\Conversions.cs (1)
359
if (method.RequiresInstanceReceiver && methodGroup.Receiver?.Type?.
IsRestrictedType
() == true)
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3113
if (source.
IsRestrictedType
())
3586
if (destination.
IsRestrictedType
())
Lowering\ClosureConversion\ClosureConversion.Analysis.Tree.cs (1)
679
if (type.
IsRestrictedType
() == true)
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
367
type.
IsRestrictedType
())
Lowering\StateMachineRewriter\IteratorAndAsyncCaptureWalker.cs (3)
125
!parameter.Type.
IsRestrictedType
(),
129
!local.Type.
IsRestrictedType
(),
195
if (type.
IsRestrictedType
())
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
330
!type.
IsRestrictedType
();
Symbols\Source\SourceMemberFieldSymbol.cs (1)
62
else if (type.
IsRestrictedType
(ignoreSpanLikeTypes: true))
Symbols\Source\SourceMethodSymbol.cs (1)
73
else if (parameter.Type.
IsRestrictedType
())
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1569
if (!this.
IsRestrictedType
(ignoreSpanLikeTypes: true))
Symbols\Source\SourcePropertySymbolBase.cs (1)
1526
if (type.
IsRestrictedType
(ignoreSpanLikeTypes: true))
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
150
else if (parameterType.
IsRestrictedType
())
Symbols\TypeSymbolExtensions.cs (1)
141
&& !type.
IsRestrictedType
();
Symbols\TypeWithAnnotations.cs (1)
871
internal override bool IsRestrictedType(TypeSymbol typeSymbol, bool ignoreSpanLikeTypes) => typeSymbol.
IsRestrictedType
(ignoreSpanLikeTypes);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_IsByRefLike.cs (1)
1069
var shouldHaveMarker = hasCompilerFeatureRequired && !peType.
IsRestrictedType
(ignoreSpanLikeTypes: true);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\OperatorTests.cs (2)
8159
if (leftType.IsDynamic() && !rightType.IsPointerType() && !rightType.
IsRestrictedType
())
8163
else if (rightType.IsDynamic() && !leftType.IsPointerType() && !leftType.
IsRestrictedType
())