57 references to IsPointerOrFunctionPointer
Microsoft.CodeAnalysis.CSharp (57)
Binder\Binder_AnonymousTypes.cs (1)
226
else if (expressionType.
IsPointerOrFunctionPointer
())
Binder\Binder_Conversions.cs (1)
808
if (elementType.
IsPointerOrFunctionPointer
() || elementType.IsRestrictedType())
Binder\Binder_Expressions.cs (3)
7859
if (typeArgument.Type.
IsPointerOrFunctionPointer
() || typeArgument.Type.IsRestrictedType())
10297
if (!result.HasErrors && receiver.Type?.
IsPointerOrFunctionPointer
() == true)
12397
if (accessType.IsValueType && !accessType.IsNullableType() && !accessType.IsVoidType() && !accessType.
IsPointerOrFunctionPointer
())
Binder\Binder_Operators.cs (5)
796
return !type.
IsPointerOrFunctionPointer
() && !type.IsRestrictedType() && !type.IsVoidType();
4808
if ((object)operandType != null && operandType.
IsPointerOrFunctionPointer
() || targetType.
IsPointerOrFunctionPointer
())
5457
Debug.Assert(!targetType.
IsPointerOrFunctionPointer
(), "Should have been caught above");
5458
if (operandType.
IsPointerOrFunctionPointer
())
Binder\Binder_Patterns.cs (5)
1208
if (inputType.IsNonNullableValueType() && !inputType.
IsPointerOrFunctionPointer
())
1382
else if (inputType.
IsPointerOrFunctionPointer
() || patternType.
IsPointerOrFunctionPointer
())
1682
if (inputType.
IsPointerOrFunctionPointer
())
2057
if ((inputType.
IsPointerOrFunctionPointer
() && node.Designation.Kind() == SyntaxKind.ParenthesizedVariableDesignation)
Binder\Binder_WithExpression.cs (1)
30
if (receiverType.IsValueType && !receiverType.
IsPointerOrFunctionPointer
())
Binder\ExecutableCodeBinder.cs (1)
120
else if (parameter.Type.
IsPointerOrFunctionPointer
() && !isReceiverParameter)
Binder\ForEachLoopBinder.cs (1)
558
(builder.ElementType.
IsPointerOrFunctionPointer
() && collectionExpr.Type.IsArray()) ||
Binder\Semantics\Conversions\ConversionsBase.cs (11)
1277
if (destination.
IsPointerOrFunctionPointer
())
2190
if (otherType.
IsPointerOrFunctionPointer
())
2549
return expressionType?.Kind == SymbolKind.DynamicType && !destination.
IsPointerOrFunctionPointer
();
2559
return source.Kind == SymbolKind.DynamicType && !destination.
IsPointerOrFunctionPointer
();
3369
return !source.
IsPointerOrFunctionPointer
();
3393
return source.
IsPointerOrFunctionPointer
() && destination is PointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } };
3839
if (destination.
IsPointerOrFunctionPointer
())
3907
return source.
IsPointerOrFunctionPointer
() && destination.
IsPointerOrFunctionPointer
();
3915
if (!source.
IsPointerOrFunctionPointer
())
3933
if (!destination.
IsPointerOrFunctionPointer
())
CodeGen\EmitExpression.cs (1)
3496
if (type.
IsPointerOrFunctionPointer
() || type.SpecialType == SpecialType.System_UIntPtr)
CodeGen\Optimizer.cs (1)
995
assignmentLocal.Type.
IsPointerOrFunctionPointer
() && right.Kind == BoundKind.Conversion &&
FlowAnalysis\DefiniteAssignment.cs (1)
863
if ((object)type != null && type.
IsPointerOrFunctionPointer
())
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
66
if (e != null && (object)e.Type != null && e.Type.
IsPointerOrFunctionPointer
()) NoteUnsafe(e);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
233
_ when variableType.
IsPointerOrFunctionPointer
()
457
if (parameter.Type.IsVoidPointer() && !targetType.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
400
if (rewrittenExpr.Type.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2100
exprType.
IsPointerOrFunctionPointer
());
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1506
if (elementType.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1662
if (source.
IsPointerOrFunctionPointer
())
1687
if (source.
IsPointerOrFunctionPointer
())
1712
if (target.
IsPointerOrFunctionPointer
())
1737
if (target.
IsPointerOrFunctionPointer
())
Lowering\SyntheticBoundNodeFactory.cs (2)
1272
return type.
IsPointerOrFunctionPointer
()
1772
exprType.
IsPointerOrFunctionPointer
());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
328
!type.
IsPointerOrFunctionPointer
() &&
Symbols\ConstraintsHelper.cs (1)
956
if (typeArgument.Type.
IsPointerOrFunctionPointer
() || typeArgument.IsRestrictedType(ignoreSpanLikeTypes: true) || typeArgument.IsVoidType())
Symbols\FieldSymbol.cs (1)
293
return this.Type.
IsPointerOrFunctionPointer
();
Symbols\Source\SourceMemberFieldSymbol.cs (2)
71
else if (!this.IsStatic && (ContainingType.IsRecord || ContainingType.IsRecordStruct) && type.
IsPointerOrFunctionPointer
())
471
return TypeWithAnnotations.DefaultType.
IsPointerOrFunctionPointer
();
Symbols\Source\SourceMethodSymbol.cs (1)
74
else if (parameter.Type.
IsPointerOrFunctionPointer
() && !isExtensionParameter)
Symbols\Source\SourceNamedTypeSymbol.cs (1)
2054
if (!fieldSupported || elementType.Type.
IsPointerOrFunctionPointer
() || elementType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\SourcePropertySymbolBase.cs (2)
436
return TypeWithAnnotations.DefaultType.
IsPointerOrFunctionPointer
();
1925
if (!this.IsStatic && (ContainingType.IsRecord || ContainingType.IsRecordStruct) && type.
IsPointerOrFunctionPointer
())
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
150
if (parameterType.
IsPointerOrFunctionPointer
() || parameterType.IsRestrictedType())
Symbols\TypeSymbolExtensions.cs (2)
41
return type.IsReferenceType || type.
IsPointerOrFunctionPointer
() || type.IsNullableType();
149
&& !type.
IsPointerOrFunctionPointer
()
Symbols\TypeUnification.cs (1)
204
if (t2.Type.
IsPointerOrFunctionPointer
() || t2.IsVoidType())