43 references to IsPointerType
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Expressions.cs (1)
8197
Debug.Assert(expr.Type.
IsPointerType
());
Binder\Binder_Patterns.cs (2)
563
else if (inputType.
IsPointerType
())
1315
|| (inputType.
IsPointerType
() && Compilation.LanguageVersion < MessageID.IDS_FeatureRecursivePatterns.RequiredVersion()))
Binder\Binder_Statements.cs (2)
1086
if (!declTypeOpt.Type.
IsPointerType
())
1234
Debug.Assert(declType.
IsPointerType
());
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (1)
586
ExactOrBoundsKind kind = GetRefKind(arg).IsManagedReference() || target.Type.
IsPointerType
() ? ExactOrBoundsKind.Exact : ExactOrBoundsKind.LowerBound;
CodeGen\EmitAddress.cs (1)
104
Debug.Assert(operand.Type.
IsPointerType
());
CodeGen\EmitStatement.cs (1)
1767
Debug.Assert(local.TypeWithAnnotations.Type.
IsPointerType
());
Compilation\CSharpCompilation.cs (5)
4083
csharpLeftType.
IsPointerType
() &&
4092
csharpRightType.
IsPointerType
() &&
4101
csharpLeftType.
IsPointerType
() &&
4110
csharpLeftType.
IsPointerType
() &&
4201
if (csharpOperandType.
IsPointerType
() &&
Compilation\MemberSemanticModel.cs (1)
953
if (enumeratorInfoOpt.ElementType.
IsPointerType
())
Lowering\LocalRewriter\LocalRewriter_StackAlloc.cs (1)
45
if (type.
IsPointerType
())
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (1)
Symbols\PlaceholderLocalSymbol.cs (1)
157
if (type.
IsPointerType
())
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (27)
Semantics\OperatorTests.cs (24)
7578
else if (type.
IsPointerType
() &&
7636
expectChecked = (type.IsDynamic() || type.
IsPointerType
() ||
7674
if (type.IsValueType && !type.
IsPointerType
())
8159
if (leftType.IsDynamic() && !rightType.
IsPointerType
() && !rightType.IsRestrictedType())
8163
else if (rightType.IsDynamic() && !leftType.
IsPointerType
() && !leftType.IsRestrictedType())
8192
((leftType.IsStringType() && !rightType.
IsPointerType
()) || (!leftType.
IsPointerType
() && rightType.IsStringType())))
8207
(((leftType.IsIntegralType() || leftType.IsCharType()) && rightType.
IsPointerType
()) ||
8208
(leftType.
IsPointerType
() && (rightType.IsIntegralType() || rightType.IsCharType()))))
8210
if (leftType.
IsPointerType
())
8222
(leftType.
IsPointerType
() && (rightType.IsIntegralType() || rightType.IsCharType())))
8227
else if (op == BinaryOperatorKind.Subtraction && leftType.
IsPointerType
() && TypeSymbol.Equals(leftType, rightType, TypeCompareKind.ConsiderEverything2))
8278
leftType.
IsPointerType
() && rightType.
IsPointerType
())
8292
if (leftType.IsValueType && !leftType.
IsPointerType
())
8294
if (rightType.IsValueType && !rightType.
IsPointerType
())
8309
else if (rightType.IsValueType && !rightType.
IsPointerType
())
8377
else if ((leftType.IsEnumType() || leftType.
IsPointerType
()) && (rightType.IsIntegralType() || rightType.IsCharType()))
8383
else if ((rightType.IsEnumType() || rightType.
IsPointerType
()) && (leftType.IsIntegralType() || leftType.IsCharType()))
8470
if (leftType.IsValueType && !leftType.
IsPointerType
())
8472
if (rightType.IsValueType && !rightType.
IsPointerType
())
8489
Assert.Equal(rightType.
IsPointerType
() ? null : symbol1, symbol3);
8496
else if (rightType.IsValueType && !rightType.
IsPointerType
())
8507
Assert.Equal(leftType.
IsPointerType
() ? null : symbol1, symbol4);
Semantics\UnsafeTests.cs (3)
3123
Assert.True(returnType.
IsPointerType
());
3127
Assert.True(parameterType.
IsPointerType
());
9467
Assert.True(field.Type.
IsPointerType
());