48 references to IsPointerOrFunctionPointer
Microsoft.CodeAnalysis.CSharp (48)
Binder\Binder_Expressions.cs (2)
6493
if (typeArgument.Type.
IsPointerOrFunctionPointer
() || typeArgument.Type.IsRestrictedType())
9370
if ((!accessType.IsReferenceType && !accessType.IsValueType) || accessType.
IsPointerOrFunctionPointer
() || accessType.IsRestrictedType())
Binder\Binder_Operators.cs (5)
363
return !type.
IsPointerOrFunctionPointer
() && !type.IsRestrictedType() && !type.IsVoidType();
3161
if ((object)operandType != null && operandType.
IsPointerOrFunctionPointer
() || targetType.
IsPointerOrFunctionPointer
())
3729
Debug.Assert(!targetType.
IsPointerOrFunctionPointer
(), "Should have been caught above");
3730
if (operandType.
IsPointerOrFunctionPointer
())
Binder\Binder_Patterns.cs (5)
601
if (inputType.IsNonNullableValueType() && !inputType.
IsPointerOrFunctionPointer
())
725
else if (inputType.
IsPointerOrFunctionPointer
() || patternType.
IsPointerOrFunctionPointer
())
956
if (inputType.
IsPointerOrFunctionPointer
())
1314
if ((inputType.
IsPointerOrFunctionPointer
() && node.Designation.Kind() == SyntaxKind.ParenthesizedVariableDesignation)
Binder\Binder_WithExpression.cs (1)
30
if (receiverType.IsValueType && !receiverType.
IsPointerOrFunctionPointer
())
Binder\ForEachLoopBinder.cs (1)
521
(builder.ElementType.
IsPointerOrFunctionPointer
() && collectionExpr.Type.IsArray()) ||
Binder\Semantics\Conversions\ConversionsBase.cs (11)
1180
if (destination.
IsPointerOrFunctionPointer
())
2027
if (otherType.
IsPointerOrFunctionPointer
())
2380
return expressionType?.Kind == SymbolKind.DynamicType && !destination.
IsPointerOrFunctionPointer
();
2390
return source.Kind == SymbolKind.DynamicType && !destination.
IsPointerOrFunctionPointer
();
3120
return !source.
IsPointerOrFunctionPointer
();
3144
return source.
IsPointerOrFunctionPointer
() && destination is PointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } };
3580
if (destination.
IsPointerOrFunctionPointer
())
3648
return source.
IsPointerOrFunctionPointer
() && destination.
IsPointerOrFunctionPointer
();
3656
if (!source.
IsPointerOrFunctionPointer
())
3674
if (!destination.
IsPointerOrFunctionPointer
())
CodeGen\EmitExpression.cs (1)
3224
if (type.
IsPointerOrFunctionPointer
() || type.SpecialType == SpecialType.System_UIntPtr)
CodeGen\Optimizer.cs (1)
995
assignmentLocal.Type.
IsPointerOrFunctionPointer
() && right.Kind == BoundKind.Conversion &&
FlowAnalysis\DefiniteAssignment.cs (1)
881
if ((object)type != null && type.
IsPointerOrFunctionPointer
())
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
65
if (e != null && (object)e.Type != null && e.Type.
IsPointerOrFunctionPointer
()) NoteUnsafe(e);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
233
_ when variableType.
IsPointerOrFunctionPointer
()
452
if (parameter.Type.IsVoidPointer() && !targetType.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
371
if (rewrittenExpr.Type.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2001
exprType.
IsPointerOrFunctionPointer
());
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1285
&& !ats.ElementType.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1395
if (source.
IsPointerOrFunctionPointer
())
1420
if (source.
IsPointerOrFunctionPointer
())
1445
if (target.
IsPointerOrFunctionPointer
())
1470
if (target.
IsPointerOrFunctionPointer
())
Lowering\SyntheticBoundNodeFactory.cs (2)
1170
return type.
IsPointerOrFunctionPointer
()
1629
exprType.
IsPointerOrFunctionPointer
());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
329
!type.
IsPointerOrFunctionPointer
() &&
Symbols\ConstraintsHelper.cs (1)
881
if (typeArgument.Type.
IsPointerOrFunctionPointer
() || typeArgument.IsRestrictedType() || typeArgument.IsVoidType())
Symbols\FieldSymbol.cs (1)
293
return this.Type.
IsPointerOrFunctionPointer
();
Symbols\Source\SourceMemberFieldSymbol.cs (1)
423
return TypeWithAnnotations.DefaultType.
IsPointerOrFunctionPointer
();
Symbols\Source\SourcePropertySymbolBase.cs (1)
358
return TypeWithAnnotations.DefaultType.
IsPointerOrFunctionPointer
();
Symbols\TypeSymbolExtensions.cs (2)
32
return type.IsReferenceType || type.
IsPointerOrFunctionPointer
() || type.IsNullableType();
140
&& !type.
IsPointerOrFunctionPointer
()
Symbols\TypeUnification.cs (1)
185
if (t2.Type.
IsPointerOrFunctionPointer
() || t2.IsVoidType())