54 references to IsPointerOrFunctionPointer
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder_AnonymousTypes.cs (1)
226
else if (expressionType.
IsPointerOrFunctionPointer
())
Binder\Binder_Conversions.cs (1)
492
if (elementType.
IsPointerOrFunctionPointer
() || elementType.IsRestrictedType())
Binder\Binder_Expressions.cs (2)
7463
if (typeArgument.Type.
IsPointerOrFunctionPointer
() || typeArgument.Type.IsRestrictedType())
10784
if ((!accessType.IsReferenceType && !accessType.IsValueType) || accessType.
IsPointerOrFunctionPointer
() || accessType.IsRestrictedType())
Binder\Binder_Operators.cs (5)
363
return !type.
IsPointerOrFunctionPointer
() && !type.IsRestrictedType() && !type.IsVoidType();
3204
if ((object)operandType != null && operandType.
IsPointerOrFunctionPointer
() || targetType.
IsPointerOrFunctionPointer
())
3799
Debug.Assert(!targetType.
IsPointerOrFunctionPointer
(), "Should have been caught above");
3800
if (operandType.
IsPointerOrFunctionPointer
())
Binder\Binder_Patterns.cs (5)
610
if (inputType.IsNonNullableValueType() && !inputType.
IsPointerOrFunctionPointer
())
734
else if (inputType.
IsPointerOrFunctionPointer
() || patternType.
IsPointerOrFunctionPointer
())
965
if (inputType.
IsPointerOrFunctionPointer
())
1323
if ((inputType.
IsPointerOrFunctionPointer
() && node.Designation.Kind() == SyntaxKind.ParenthesizedVariableDesignation)
Binder\Binder_WithExpression.cs (1)
30
if (receiverType.IsValueType && !receiverType.
IsPointerOrFunctionPointer
())
Binder\ExecutableCodeBinder.cs (1)
116
else if (parameter.Type.
IsPointerOrFunctionPointer
())
Binder\ForEachLoopBinder.cs (1)
543
(builder.ElementType.
IsPointerOrFunctionPointer
() && collectionExpr.Type.IsArray()) ||
Binder\Semantics\Conversions\ConversionsBase.cs (11)
1246
if (destination.
IsPointerOrFunctionPointer
())
2153
if (otherType.
IsPointerOrFunctionPointer
())
2506
return expressionType?.Kind == SymbolKind.DynamicType && !destination.
IsPointerOrFunctionPointer
();
2516
return source.Kind == SymbolKind.DynamicType && !destination.
IsPointerOrFunctionPointer
();
3326
return !source.
IsPointerOrFunctionPointer
();
3350
return source.
IsPointerOrFunctionPointer
() && destination is PointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } };
3796
if (destination.
IsPointerOrFunctionPointer
())
3864
return source.
IsPointerOrFunctionPointer
() && destination.
IsPointerOrFunctionPointer
();
3872
if (!source.
IsPointerOrFunctionPointer
())
3890
if (!destination.
IsPointerOrFunctionPointer
())
CodeGen\EmitExpression.cs (1)
3446
if (type.
IsPointerOrFunctionPointer
() || type.SpecialType == SpecialType.System_UIntPtr)
CodeGen\Optimizer.cs (1)
996
assignmentLocal.Type.
IsPointerOrFunctionPointer
() && right.Kind == BoundKind.Conversion &&
FlowAnalysis\DefiniteAssignment.cs (1)
909
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
()
450
if (parameter.Type.IsVoidPointer() && !targetType.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
371
if (rewrittenExpr.Type.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2081
exprType.
IsPointerOrFunctionPointer
());
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1421
if (elementType.
IsPointerOrFunctionPointer
())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1451
if (source.
IsPointerOrFunctionPointer
())
1476
if (source.
IsPointerOrFunctionPointer
())
1501
if (target.
IsPointerOrFunctionPointer
())
1526
if (target.
IsPointerOrFunctionPointer
())
Lowering\SyntheticBoundNodeFactory.cs (2)
1289
return type.
IsPointerOrFunctionPointer
()
1809
exprType.
IsPointerOrFunctionPointer
());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
334
!type.
IsPointerOrFunctionPointer
() &&
Symbols\ConstraintsHelper.cs (1)
935
if (typeArgument.Type.
IsPointerOrFunctionPointer
() || typeArgument.IsRestrictedType(ignoreSpanLikeTypes: true) || typeArgument.IsVoidType())
Symbols\FieldSymbol.cs (1)
293
return this.Type.
IsPointerOrFunctionPointer
();
Symbols\Source\SourceMemberFieldSymbol.cs (1)
427
return TypeWithAnnotations.DefaultType.
IsPointerOrFunctionPointer
();
Symbols\Source\SourceMethodSymbol.cs (1)
69
else if (parameter.Type.
IsPointerOrFunctionPointer
())
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1885
if (!fieldSupported || elementType.Type.
IsPointerOrFunctionPointer
() || elementType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\SourcePropertySymbolBase.cs (1)
375
return TypeWithAnnotations.DefaultType.
IsPointerOrFunctionPointer
();
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
139
if (parameterType.
IsPointerOrFunctionPointer
())
Symbols\TypeSymbolExtensions.cs (2)
31
return type.IsReferenceType || type.
IsPointerOrFunctionPointer
() || type.IsNullableType();
139
&& !type.
IsPointerOrFunctionPointer
()
Symbols\TypeUnification.cs (1)
185
if (t2.Type.
IsPointerOrFunctionPointer
() || t2.IsVoidType())