42 references to IsPointerType
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Expressions.cs (1)
9879
Debug.Assert(expr.Type.
IsPointerType
());
Binder\Binder_Patterns.cs (2)
573
else if (inputType.
IsPointerType
())
1325
|| (inputType.
IsPointerType
() && Compilation.LanguageVersion < MessageID.IDS_FeatureRecursivePatterns.RequiredVersion()))
Binder\Binder_Statements.cs (2)
1085
if (!declTypeOpt.Type.
IsPointerType
())
1225
Debug.Assert(declType.
IsPointerType
());
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
613
ExactOrBoundsKind kind = GetRefKind(arg).IsManagedReference() || target.Type.
IsPointerType
() ? ExactOrBoundsKind.Exact : ExactOrBoundsKind.LowerBound;
CodeGen\EmitAddress.cs (1)
102
Debug.Assert(operand.Type.
IsPointerType
());
CodeGen\EmitStatement.cs (1)
1797
Debug.Assert(local.TypeWithAnnotations.Type.
IsPointerType
());
Compilation\CSharpCompilation.cs (5)
4445
csharpLeftType.
IsPointerType
() &&
4454
csharpRightType.
IsPointerType
() &&
4463
csharpLeftType.
IsPointerType
() &&
4472
csharpLeftType.
IsPointerType
() &&
4563
if (csharpOperandType.
IsPointerType
() &&
Compilation\MemberSemanticModel.cs (1)
964
if (enumeratorInfoOpt.CurrentConversion is null && enumeratorInfoOpt.ElementType.
IsPointerType
())
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
45
if (type.
IsPointerType
())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (27)
Semantics\OperatorTests.cs (24)
7580
else if (type.
IsPointerType
() &&
7638
expectChecked = (type.IsDynamic() || type.
IsPointerType
() ||
7676
if (type.IsValueType && !type.
IsPointerType
())
8161
if (leftType.IsDynamic() && !rightType.
IsPointerType
() && !rightType.IsRestrictedType())
8165
else if (rightType.IsDynamic() && !leftType.
IsPointerType
() && !leftType.IsRestrictedType())
8194
((leftType.IsStringType() && !rightType.
IsPointerType
()) || (!leftType.
IsPointerType
() && rightType.IsStringType())))
8209
(((leftType.IsIntegralType() || leftType.IsCharType()) && rightType.
IsPointerType
()) ||
8210
(leftType.
IsPointerType
() && (rightType.IsIntegralType() || rightType.IsCharType()))))
8212
if (leftType.
IsPointerType
())
8224
(leftType.
IsPointerType
() && (rightType.IsIntegralType() || rightType.IsCharType())))
8229
else if (op == BinaryOperatorKind.Subtraction && leftType.
IsPointerType
() && TypeSymbol.Equals(leftType, rightType, TypeCompareKind.ConsiderEverything2))
8280
leftType.
IsPointerType
() && rightType.
IsPointerType
())
8294
if (leftType.IsValueType && !leftType.
IsPointerType
())
8296
if (rightType.IsValueType && !rightType.
IsPointerType
())
8311
else if (rightType.IsValueType && !rightType.
IsPointerType
())
8379
else if ((leftType.IsEnumType() || leftType.
IsPointerType
()) && (rightType.IsIntegralType() || rightType.IsCharType()))
8385
else if ((rightType.IsEnumType() || rightType.
IsPointerType
()) && (leftType.IsIntegralType() || leftType.IsCharType()))
8472
if (leftType.IsValueType && !leftType.
IsPointerType
())
8474
if (rightType.IsValueType && !rightType.
IsPointerType
())
8491
Assert.Equal(rightType.
IsPointerType
() ? null : symbol1, symbol3);
8498
else if (rightType.IsValueType && !rightType.
IsPointerType
())
8509
Assert.Equal(leftType.
IsPointerType
() ? null : symbol1, symbol4);
Semantics\UnsafeTests.cs (3)
5946
Assert.True(returnType.
IsPointerType
());
5950
Assert.True(parameterType.
IsPointerType
());
12349
Assert.True(field.Type.
IsPointerType
());