54 references to IsPointerOrFunctionPointer
Microsoft.CodeAnalysis.CSharp (54)
Binder\Binder_AnonymousTypes.cs (1)
226else if (expressionType.IsPointerOrFunctionPointer())
Binder\Binder_Conversions.cs (1)
731if (elementType.IsPointerOrFunctionPointer() || elementType.IsRestrictedType())
Binder\Binder_Expressions.cs (2)
7562if (typeArgument.Type.IsPointerOrFunctionPointer() || typeArgument.Type.IsRestrictedType()) 10978if ((!accessType.IsReferenceType && !accessType.IsValueType) || accessType.IsPointerOrFunctionPointer() || accessType.IsRestrictedType())
Binder\Binder_Operators.cs (5)
363return !type.IsPointerOrFunctionPointer() && !type.IsRestrictedType() && !type.IsVoidType(); 3204if ((object)operandType != null && operandType.IsPointerOrFunctionPointer() || targetType.IsPointerOrFunctionPointer()) 3801Debug.Assert(!targetType.IsPointerOrFunctionPointer(), "Should have been caught above"); 3802if (operandType.IsPointerOrFunctionPointer())
Binder\Binder_Patterns.cs (5)
610if (inputType.IsNonNullableValueType() && !inputType.IsPointerOrFunctionPointer()) 734else if (inputType.IsPointerOrFunctionPointer() || patternType.IsPointerOrFunctionPointer()) 965if (inputType.IsPointerOrFunctionPointer()) 1323if ((inputType.IsPointerOrFunctionPointer() && node.Designation.Kind() == SyntaxKind.ParenthesizedVariableDesignation)
Binder\Binder_WithExpression.cs (1)
30if (receiverType.IsValueType && !receiverType.IsPointerOrFunctionPointer())
Binder\ExecutableCodeBinder.cs (1)
116else if (parameter.Type.IsPointerOrFunctionPointer())
Binder\ForEachLoopBinder.cs (1)
543(builder.ElementType.IsPointerOrFunctionPointer() && collectionExpr.Type.IsArray()) ||
Binder\Semantics\Conversions\ConversionsBase.cs (11)
1262if (destination.IsPointerOrFunctionPointer()) 2176if (otherType.IsPointerOrFunctionPointer()) 2529return expressionType?.Kind == SymbolKind.DynamicType && !destination.IsPointerOrFunctionPointer(); 2539return source.Kind == SymbolKind.DynamicType && !destination.IsPointerOrFunctionPointer(); 3349return !source.IsPointerOrFunctionPointer(); 3373return source.IsPointerOrFunctionPointer() && destination is PointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } }; 3819if (destination.IsPointerOrFunctionPointer()) 3887return source.IsPointerOrFunctionPointer() && destination.IsPointerOrFunctionPointer(); 3895if (!source.IsPointerOrFunctionPointer()) 3913if (!destination.IsPointerOrFunctionPointer())
CodeGen\EmitExpression.cs (1)
3446if (type.IsPointerOrFunctionPointer() || type.SpecialType == SpecialType.System_UIntPtr)
CodeGen\Optimizer.cs (1)
996assignmentLocal.Type.IsPointerOrFunctionPointer() && right.Kind == BoundKind.Conversion &&
FlowAnalysis\DefiniteAssignment.cs (1)
911if ((object)type != null && type.IsPointerOrFunctionPointer())
Lowering\DiagnosticsPass_ExpressionTrees.cs (1)
66if (e != null && (object)e.Type != null && e.Type.IsPointerOrFunctionPointer()) NoteUnsafe(e);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (2)
233_ when variableType.IsPointerOrFunctionPointer() 450if (parameter.Type.IsVoidPointer() && !targetType.IsPointerOrFunctionPointer())
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
371if (rewrittenExpr.Type.IsPointerOrFunctionPointer())
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2081exprType.IsPointerOrFunctionPointer());
Lowering\LocalRewriter\LocalRewriter_Call.cs (1)
1420if (elementType.IsPointerOrFunctionPointer())
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (4)
1548if (source.IsPointerOrFunctionPointer()) 1573if (source.IsPointerOrFunctionPointer()) 1598if (target.IsPointerOrFunctionPointer()) 1623if (target.IsPointerOrFunctionPointer())
Lowering\SyntheticBoundNodeFactory.cs (2)
1233return type.IsPointerOrFunctionPointer() 1753exprType.IsPointerOrFunctionPointer());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (1)
334!type.IsPointerOrFunctionPointer() &&
Symbols\ConstraintsHelper.cs (1)
935if (typeArgument.Type.IsPointerOrFunctionPointer() || typeArgument.IsRestrictedType(ignoreSpanLikeTypes: true) || typeArgument.IsVoidType())
Symbols\FieldSymbol.cs (1)
293return this.Type.IsPointerOrFunctionPointer();
Symbols\Source\SourceMemberFieldSymbol.cs (1)
427return TypeWithAnnotations.DefaultType.IsPointerOrFunctionPointer();
Symbols\Source\SourceMethodSymbol.cs (1)
69else if (parameter.Type.IsPointerOrFunctionPointer())
Symbols\Source\SourceNamedTypeSymbol.cs (1)
1888if (!fieldSupported || elementType.Type.IsPointerOrFunctionPointer() || elementType.IsRestrictedType(ignoreSpanLikeTypes: true))
Symbols\Source\SourcePropertySymbolBase.cs (1)
433return TypeWithAnnotations.DefaultType.IsPointerOrFunctionPointer();
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
139if (parameterType.IsPointerOrFunctionPointer())
Symbols\TypeSymbolExtensions.cs (2)
40return type.IsReferenceType || type.IsPointerOrFunctionPointer() || type.IsNullableType(); 148&& !type.IsPointerOrFunctionPointer()
Symbols\TypeUnification.cs (1)
185if (t2.Type.IsPointerOrFunctionPointer() || t2.IsVoidType())