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