24 instantiations of PointerTypeSymbol
Microsoft.CodeAnalysis.CSharp (24)
Binder\Binder_Conversions.cs (1)
2409
stackAllocType = new
PointerTypeSymbol
(TypeWithAnnotations.Create(elementType));
Binder\Binder_Expressions.cs (3)
368
var type = new
PointerTypeSymbol
(TypeWithAnnotations.Create(boundStackAlloc.ElementType));
4456
new
PointerTypeSymbol
(BindType(typeSyntax, diagnostics)));
4495
new
PointerTypeSymbol
(elementType));
Binder\Binder_Operators.cs (1)
2553
TypeSymbol pointerType = new
PointerTypeSymbol
(TypeWithAnnotations.Create(operandType));
Binder\Binder_Statements.cs (1)
1365
TypeSymbol pointerType = new
PointerTypeSymbol
(TypeWithAnnotations.Create(elementType));
Binder\Binder_Symbols.cs (1)
601
return TypeWithAnnotations.Create(new
PointerTypeSymbol
(elementType));
Binder\Semantics\Conversions\Conversions.cs (1)
491
var sourceAsPointer = new
PointerTypeSymbol
(TypeWithAnnotations.Create(sourceExpression.ElementType));
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
582
var voidPointerType = new
PointerTypeSymbol
(TypeWithAnnotations.Create(Compilation.GetSpecialType(SpecialType.System_Void)));
Compilation\CSharpCompilation.cs (1)
2393
return new
PointerTypeSymbol
(TypeWithAnnotations.Create(elementType, elementNullableAnnotation));
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
383
return new
PointerTypeSymbol
(symbol.PointedAtTypeWithAnnotations.WithTypeAndModifiers(otherPointedAtType, otherModifiers));
906
return new
PointerTypeSymbol
(symbol.PointedAtTypeWithAnnotations.WithTypeAndModifiers(translatedPointedAtType, translatedModifiers));
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
374
var operandType = new
PointerTypeSymbol
(TypeWithAnnotations.Create(_factory.SpecialType(SpecialType.System_Void)));
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
560
BoundExpression firstElementAddress = new BoundAddressOfOperator(factory.Syntax, firstElement, type: new
PointerTypeSymbol
(arrayElementType));
Lowering\SyntheticBoundNodeFactory.cs (1)
1226
return new BoundPointerIndirectionOperator(Syntax, Default(new
PointerTypeSymbol
(type)), refersToLocation: false, type.Type);
Symbols\AbstractTypeMap.cs (1)
236
return new
PointerTypeSymbol
(pointedAtType);
Symbols\AssemblySymbol.cs (1)
777
return new
PointerTypeSymbol
(TypeWithAnnotations.Create(symbol));
Symbols\Metadata\PE\DynamicTypeDecoder.cs (1)
343
new
PointerTypeSymbol
(pointerType.PointedAtTypeWithAnnotations.WithTypeAndModifiers(transformedPointedAtType, pointerType.PointedAtTypeWithAnnotations.CustomModifiers));
Symbols\Metadata\PE\PEFieldSymbol.cs (1)
337
type = TypeWithAnnotations.Create(new
PointerTypeSymbol
(TypeWithAnnotations.Create(fixedElementType)));
Symbols\Metadata\PE\SymbolFactory.cs (1)
46
return new
PointerTypeSymbol
(CreateType(type, customModifiers));
Symbols\PointerTypeSymbol.cs (1)
282
return PointedAtTypeWithAnnotations.IsSameAs(newPointedAtType) ? this : new
PointerTypeSymbol
(newPointedAtType);
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
756
return new
PointerTypeSymbol
(newPointed);
Symbols\Source\SourceMemberFieldSymbol.cs (1)
561
type = TypeWithAnnotations.Create(new
PointerTypeSymbol
(type));
Symbols\TypeSymbolExtensions.cs (1)
2038
pointerType = new
PointerTypeSymbol
(pointedAtType);
105 references to PointerTypeSymbol
Microsoft.CodeAnalysis.CSharp (105)
Binder\Binder_Crefs.cs (1)
559
return ContainsNestedTypeOfUnconstructedGenericType(((
PointerTypeSymbol
)type).PointedAtType);
Binder\Binder_Expressions.cs (3)
368
var
type = new PointerTypeSymbol(TypeWithAnnotations.Create(boundStackAlloc.ElementType));
9539
PointerTypeSymbol
pointerType = (
PointerTypeSymbol
)expr.Type;
Binder\Binder_Operators.cs (2)
2476
var
operandType = operand.Type as
PointerTypeSymbol
;
Binder\Binder_Statements.cs (1)
1255
elementType = ((
PointerTypeSymbol
)fa.Type).PointedAtType;
Binder\Semantics\AccessCheck.cs (1)
155
return IsSymbolAccessibleCore(((
PointerTypeSymbol
)symbol).PointedAtType, within, null, out failedThroughTypeCheck, compilation, ref useSiteInfo, basesBeingResolved);
Binder\Semantics\Conversions\Conversions.cs (1)
491
var
sourceAsPointer = new PointerTypeSymbol(TypeWithAnnotations.Create(sourceExpression.ElementType));
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3373
return source.IsPointerOrFunctionPointer() && destination is
PointerTypeSymbol
{ PointedAtType: { SpecialType: SpecialType.System_Void } };
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (6)
542
PointerTypeSymbol
pointerType,
582
var
voidPointerType = new PointerTypeSymbol(TypeWithAnnotations.Create(Compilation.GetSpecialType(SpecialType.System_Void)));
683
var
leftType = left.Type as
PointerTypeSymbol
;
684
var
rightType = right.Type as
PointerTypeSymbol
;
Binder\Semantics\Operators\UnaryOperatorOverloadResolution.cs (2)
327
var
pointerType = operand.Type as
PointerTypeSymbol
;
Binder\Semantics\OverloadResolution\MethodTypeInference.cs (2)
1862
ExactInference(((
PointerTypeSymbol
)source.Type).PointedAtTypeWithAnnotations, ((
PointerTypeSymbol
)target.Type).PointedAtTypeWithAnnotations, ref useSiteInfo);
Binder\Semantics\OverloadResolution\OverloadResolution.cs (4)
2773
var
p1 = (
PointerTypeSymbol
)t1;
2774
var
p2 = (
PointerTypeSymbol
)t2;
CodeGen\EmitStackAllocInitializer.cs (2)
24
Debug.Assert(type is
PointerTypeSymbol
|| type is NamedTypeSymbol);
28
? ((
PointerTypeSymbol
)type).PointedAtTypeWithAnnotations
CodeGen\EmitStatement.cs (2)
1793
PointerTypeSymbol
pointerType = (
PointerTypeSymbol
)local.Type;
CodeGen\Optimizer.cs (1)
1020
left.Type.Equals(((
PointerTypeSymbol
)right.Type).PointedAtType, TypeCompareKind.AllIgnoreOptions);
Compilation\CSharpCompilation.cs (3)
2386
internal
PointerTypeSymbol
CreatePointerTypeSymbol(TypeSymbol elementType, NullableAnnotation elementNullableAnnotation = NullableAnnotation.Oblivious)
4369
csharpLeftType is
PointerTypeSymbol
{ PointedAtType.SpecialType: SpecialType.System_Void } &&
4370
csharpRightType is
PointerTypeSymbol
{ PointedAtType.SpecialType: SpecialType.System_Void })
DocumentationComments\DocumentationCommentIDVisitor.PartVisitor.cs (1)
220
public override object VisitPointerType(
PointerTypeSymbol
symbol, StringBuilder builder)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (6)
373
public override Symbol? VisitPointerType(
PointerTypeSymbol
symbol)
661
private bool ArePointerTypesEqual(
PointerTypeSymbol
type,
PointerTypeSymbol
other)
760
return ArePointerTypesEqual((
PointerTypeSymbol
)type, (
PointerTypeSymbol
)other);
902
public override Symbol VisitPointerType(
PointerTypeSymbol
symbol)
Emitter\Model\PEModuleBuilder.cs (2)
1155
return Translate((
PointerTypeSymbol
)typeSymbol);
1450
internal Cci.IPointerTypeReference Translate(
PointerTypeSymbol
symbol)
Emitter\Model\PointerTypeSymbolAdapter.cs (2)
145
internal PointerTypeSymbolAdapter(
PointerTypeSymbol
underlyingPointerTypeSymbol)
151
internal
PointerTypeSymbol
AdaptedPointerTypeSymbol { get; }
FlowAnalysis\NullableWalker.cs (2)
4576
PointerTypeSymbol
pointerType => pointerType.PointedAtTypeWithAnnotations,
4653
PointerTypeSymbol
pointerType => pointerType.WithPointedAtType(inferredType),
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (1)
374
var
operandType = new PointerTypeSymbol(TypeWithAnnotations.Create(_factory.SpecialType(SpecialType.System_Void)));
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (5)
2261
loweredRight = MakeSizeOfMultiplication(loweredRight, (
PointerTypeSymbol
)loweredLeft.Type, kind.IsChecked());
2266
loweredLeft = MakeSizeOfMultiplication(loweredLeft, (
PointerTypeSymbol
)loweredRight.Type, kind.IsChecked());
2302
private BoundExpression MakeSizeOfMultiplication(BoundExpression numericOperand,
PointerTypeSymbol
pointerType, bool isChecked)
2456
PointerTypeSymbol
pointerType = (
PointerTypeSymbol
)loweredLeft.Type;
Lowering\LocalRewriter\LocalRewriter_FixedStatement.cs (1)
247
TypeSymbol initializerType = ((
PointerTypeSymbol
)initializerExpr.Type).PointedAtType;
Symbols\AbstractTypeMap.cs (3)
110
result = SubstitutePointerType((
PointerTypeSymbol
)previous);
227
private
PointerTypeSymbol
SubstitutePointerType(
PointerTypeSymbol
t)
Symbols\Compilation_WellKnownMembers.cs (2)
958
HandleCustomModifiers(((
PointerTypeSymbol
)type).PointedAtTypeWithAnnotations.CustomModifiers.Length, transformFlagsBuilder);
1148
return type.Kind == SymbolKind.PointerType ? ((
PointerTypeSymbol
)type).PointedAtType : null;
Symbols\ConstraintsHelper.cs (1)
593
Binder.CheckManagedAddr(args.CurrentCompilation, ((
PointerTypeSymbol
)type).PointedAtType, args.Location, args.Diagnostics);
Symbols\Metadata\PE\DynamicTypeDecoder.cs (3)
167
return TransformPointerType((
PointerTypeSymbol
)type);
325
private
PointerTypeSymbol
TransformPointerType(
PointerTypeSymbol
pointerType)
Symbols\Metadata\PE\MetadataDecoder.cs (1)
225
return IsOrClosedOverATypeFromAssemblies(((
PointerTypeSymbol
)symbol).PointedAtType, assemblies);
Symbols\Metadata\PE\NativeIntegerTypeDecoder.cs (3)
89
return TransformPointerType((
PointerTypeSymbol
)type);
163
private
PointerTypeSymbol
? TransformPointerType(
PointerTypeSymbol
type)
Symbols\Metadata\PE\TupleTypeDecoder.cs (3)
171
return DecodePointerType((
PointerTypeSymbol
)type);
204
private
PointerTypeSymbol
DecodePointerType(
PointerTypeSymbol
type)
Symbols\PointerTypeSymbol.cs (5)
222
current = ((
PointerTypeSymbol
)current).PointedAtType;
230
return this.Equals(t2 as
PointerTypeSymbol
, comparison);
233
private bool Equals(
PointerTypeSymbol
? other, TypeCompareKind comparison)
276
TypeWithAnnotations pointedAtType = PointedAtTypeWithAnnotations.MergeEquivalentTypes(((
PointerTypeSymbol
)other).PointedAtTypeWithAnnotations, VarianceKind.None);
280
internal
PointerTypeSymbol
WithPointedAtType(TypeWithAnnotations newPointedAtType)
Symbols\PublicModel\PointerTypeSymbol.cs (2)
13
private readonly Symbols.
PointerTypeSymbol
_underlying;
16
public PointerTypeSymbol(Symbols.
PointerTypeSymbol
underlying, CodeAnalysis.NullableAnnotation nullableAnnotation)
Symbols\Retargeting\RetargetingSymbolTranslator.cs (4)
654
return IsOrClosedOverAnExplicitLocalType(((
PointerTypeSymbol
)symbol).PointedAtType);
746
public
PointerTypeSymbol
Retarget(
PointerTypeSymbol
type)
1339
public override Symbol VisitPointerType(
PointerTypeSymbol
symbol, RetargetOptions options)
Symbols\Source\SourceFixedFieldSymbol.cs (4)
47
var item1 = new TypedConstant(systemType, TypedConstantKind.Type, ((
PointerTypeSymbol
)this.Type).PointedAtType);
109
TypeSymbol elementType = ((
PointerTypeSymbol
)this.Type).PointedAtType;
160
_internalField = new SynthesizedFieldSymbol(this, ((
PointerTypeSymbol
)field.Type).PointedAtType, FixedElementFieldName, isPublic: true);
183
var elementType = ((
PointerTypeSymbol
)_field.Type).PointedAtType;
Symbols\Source\SourceMemberFieldSymbol.cs (1)
573
var elementType = ((
PointerTypeSymbol
)type.Type).PointedAtType;
Symbols\SymbolDistinguisher.cs (1)
150
symbol = ((
PointerTypeSymbol
)symbol).PointedAtType;
Symbols\SymbolExtensions.cs (1)
671
internal static IPointerTypeSymbol? GetPublicSymbol(this
PointerTypeSymbol
? symbol)
Symbols\SymbolVisitor.cs (1)
95
public virtual void VisitPointerType(
PointerTypeSymbol
symbol)
Symbols\SymbolVisitor`1.cs (1)
95
public virtual TResult VisitPointerType(
PointerTypeSymbol
symbol)
Symbols\SymbolVisitor`2.cs (2)
112
/// Called when visiting a <see cref="
PointerTypeSymbol
" />; Override this with specific
118
public virtual TResult VisitPointerType(
PointerTypeSymbol
symbol, TArgument argument)
Symbols\TypeSymbolExtensions.cs (6)
926
next = ((
PointerTypeSymbol
)current).PointedAtTypeWithAnnotations;
1496
return type is
PointerTypeSymbol
;
1551
return type is
PointerTypeSymbol
p && p.PointedAtType.IsVoidType();
1936
var
pointerType = (
PointerTypeSymbol
)type;
2030
private static bool NormalizeTaskTypesInPointer(CSharpCompilation compilation, ref
PointerTypeSymbol
pointerType)
Symbols\TypeUnification.cs (5)
135
PointerTypeSymbol
pt1 = (
PointerTypeSymbol
)t1.Type;
136
PointerTypeSymbol
pt2 = (
PointerTypeSymbol
)t2.Type;
272
return Contains(((
PointerTypeSymbol
)type).PointedAtType, typeParam);
Utilities\TypeSymbolExtensions.cs (4)
38
var
pointer = (
PointerTypeSymbol
)type;
106
var
pointer = (
PointerTypeSymbol
)type;