1 implementation of PointedAtType
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\PointerTypeSymbol.cs (1)
34ITypeSymbol IPointerTypeSymbol.PointedAtType
127 references to PointedAtType
Microsoft.CodeAnalysis (2)
Compilation\Compilation.cs (1)
1705s = ((IPointerTypeSymbol)s).PointedAtType;
DocumentationCommentId.cs (1)
645this.Visit(symbol.PointedAtType);
Microsoft.CodeAnalysis.CodeStyle (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (2)
102return IsSymbolAccessibleCore(((IPointerTypeSymbol)symbol).PointedAtType, within, null, out failedThroughTypeCheck); 162return IsSymbolAccessibleCore(pointerType.PointedAtType, within, null, out failedThroughTypeCheck);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
55var elementType = symbol.PointedAtType.Accept(this); 56if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
70symbol.PointedAtType.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (4)
318IPointerTypeSymbol p => ContainsAnonymousType(p.PointedAtType), 348type = pointerType.PointedAtType; 572return p1.PointedAtType.IsMoreSpecificThan(p2.PointedAtType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (1)
66=> symbol.PointedAtType.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
120var pointedAtType = symbol.PointedAtType.Accept(this); 121if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
53var elementType = symbol.PointedAtType.Accept(this); 54if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
57var elementType = symbol.PointedAtType.Accept(this); 58if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
57/// the "same" <see cref="IPointerTypeSymbol.PointedAtType"/>.</item>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PointerTypeSymbolKey.cs (2)
14=> visitor.WriteSymbolKey(symbol.PointedAtType); 19var pointedAtTypeResolution = reader.ReadSymbolKey(contextualSymbol?.PointedAtType, out var pointedAtTypeFailureReason);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
578AreEquivalent(x.PointedAtType, y.PointedAtType, equivalentTypesWithDifferingAssemblies);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
236GetHashCode(x.PointedAtType, currentHash));
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
130typeToGenerateIn = pointerType.PointedAtType as INamedTypeSymbol;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
57=> symbol.PointedAtType.Accept(this);
Microsoft.CodeAnalysis.CSharp (1)
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
140symbol.PointedAtType.Accept(this.NotFirstVisitor);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.State.cs (1)
123type = pointerType.PointedAtType;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (4)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
356PointerType(symbol.PointedAtType.GenerateTypeSyntax()),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
685DetermineTypeParameterMapping(((IPointerTypeSymbol)inferredType).PointedAtType, ((IPointerTypeSymbol)returnType).PointedAtType, result); 1931yield return new TypeInferenceInfo(pointerType.PointedAtType);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
CodeGen\CodeGenTupleTest.cs (2)
14443Assert.False(m5TuplePointer.PointedAtType.IsTupleType); 14450Assert.True(m5TuplePointer.PointedAtType.IsTupleType);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (37)
Semantics\FunctionPointerTests.cs (1)
211Assert.True(typeInfo.ConvertedType is IPointerTypeSymbol { PointedAtType: { SpecialType: SpecialType.System_Void } });
Semantics\RefLocalsAndReturnsTests.cs (2)
4783Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)model.GetTypeInfo(left).Type).PointedAtType.SpecialType); 4811Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)model.GetTypeInfo(left).Type).PointedAtType.SpecialType);
Semantics\StackAllocInitializerTests.cs (13)
1054Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.SpecialType); 1062Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 1063Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 1078Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 1079Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 1086Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 1087Assert.Equal(SpecialType.System_Double, ((IPointerTypeSymbol)obj5Value.ConvertedType).PointedAtType.SpecialType); 1165Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 1166Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 1181Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 1182Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 1189Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 1190Assert.Equal(SpecialType.System_Double, ((IPointerTypeSymbol)obj5Value.ConvertedType).PointedAtType.SpecialType);
Semantics\StackAllocSpanExpressionsTests.cs (13)
60Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj1Value.Type).PointedAtType.SpecialType); 68Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 69Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 84Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 85Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 92Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 93Assert.Equal(SpecialType.System_Double, ((IPointerTypeSymbol)obj5Value.ConvertedType).PointedAtType.SpecialType); 143Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.Type).PointedAtType.SpecialType); 144Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj2Value.ConvertedType).PointedAtType.SpecialType); 159Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.Type).PointedAtType.SpecialType); 160Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj4Value.ConvertedType).PointedAtType.SpecialType); 167Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)obj5Value.Type).PointedAtType.SpecialType); 168Assert.Equal(SpecialType.System_Double, ((IPointerTypeSymbol)obj5Value.ConvertedType).PointedAtType.SpecialType);
Semantics\UnsafeTests.cs (8)
7272Assert.Equal(SpecialType.System_Int32, ((IPointerTypeSymbol)type).PointedAtType.SpecialType); 7341Assert.Equal(TypeKind.Error, ((IPointerTypeSymbol)typeInfo.Type).PointedAtType.TypeKind); 7379Assert.Equal(TypeKind.Error, ((IPointerTypeSymbol)typeInfo.Type).PointedAtType.TypeKind); 8388Assert.NotEqual(SpecialType.System_Void, ((IPointerTypeSymbol)type).PointedAtType.SpecialType); 8392Assert.Equal(SpecialType.System_Void, ((IPointerTypeSymbol)convertedType).PointedAtType.SpecialType); 10187Assert.Equal(SpecialType.System_Char, ((IPointerTypeSymbol)type).PointedAtType.SpecialType); 11311Assert.Equal(SpecialType.System_Char, ((IPointerTypeSymbol)stackAllocSummary.Type).PointedAtType.SpecialType); 11312Assert.Equal(SpecialType.System_Void, ((IPointerTypeSymbol)stackAllocSummary.ConvertedType).PointedAtType.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\SymbolVisitorTests.cs (3)
154symbol.PointedAtType.Accept(this); 337symbol.PointedAtType.Accept(this); 489symbol.PointedAtType.Accept(this, argument);
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\TypeStyle\CSharpTypeStyleHelper.State.cs (1)
123type = pointerType.PointedAtType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
356PointerType(symbol.PointedAtType.GenerateTypeSyntax()),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (3)
685DetermineTypeParameterMapping(((IPointerTypeSymbol)inferredType).PointedAtType, ((IPointerTypeSymbol)returnType).PointedAtType, result); 1931yield return new TypeInferenceInfo(pointerType.PointedAtType);
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
56Visit(symbol.PointedAtType);
Microsoft.CodeAnalysis.Features (8)
ExtractMethod\MethodExtractor.TypeParameterCollector.cs (1)
47=> pointerTypeSymbol.PointedAtType.Accept(this);
LanguageServices\AnonymousTypeDisplayService\AbstractStructuralTypeDisplayService.StructuralTypeCollectorVisitor.cs (1)
117=> symbol.PointedAtType.Accept(this);
QuickInfo\CommonSemanticQuickInfoProvider.ErrorVisitor.cs (1)
79=> Visit(symbol.PointedAtType);
RQName\RQNodeBuilder.cs (1)
271var pointedAtType = BuildType(pointerType.PointedAtType);
Shared\Extensions\ISymbolExtensions_2.cs (1)
129return ((IPointerTypeSymbol)symbol).PointedAtType.GetGlyph();
Shared\Extensions\ISymbolExtensions_Sorting.cs (1)
47IPointerTypeSymbol pointerType => GetNamedType(pointerType.PointedAtType),
src\Analyzers\Core\CodeFixes\GenerateMember\AbstractGenerateMemberService.cs (1)
130typeToGenerateIn = pointerType.PointedAtType as INamedTypeSymbol;
src\Analyzers\Core\CodeFixes\GenerateParameterizedMember\TypeParameterSubstitution.cs (1)
57=> symbol.PointedAtType.Accept(this);
Microsoft.CodeAnalysis.VisualBasic (1)
SymbolDisplay\SymbolDisplayVisitor.Types.vb (1)
77symbol.PointedAtType.Accept(Me.NotFirstVisitor())
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
199Return symbol.PointedAtType.Accept(Me)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
199Return symbol.PointedAtType.Accept(Me)
Microsoft.CodeAnalysis.Workspaces (24)
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.UnderlyingNamedTypeVisitor.cs (1)
29=> Visit(symbol.PointedAtType);
Recommendations\AbstractRecommendationServiceRunner.cs (1)
372container = pointerType.PointedAtType;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (2)
102return IsSymbolAccessibleCore(((IPointerTypeSymbol)symbol).PointedAtType, within, null, out failedThroughTypeCheck); 162return IsSymbolAccessibleCore(pointerType.PointedAtType, within, null, out failedThroughTypeCheck);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.AnonymousTypeRemover.cs (2)
55var elementType = symbol.PointedAtType.Accept(this); 56if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
70symbol.PointedAtType.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (4)
318IPointerTypeSymbol p => ContainsAnonymousType(p.PointedAtType), 348type = pointerType.PointedAtType; 572return p1.PointedAtType.IsMoreSpecificThan(p2.PointedAtType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (1)
66=> symbol.PointedAtType.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.SubstituteTypesVisitor.cs (2)
120var pointedAtType = symbol.PointedAtType.Accept(this); 121if (pointedAtType != null && pointedAtType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnavailableTypeParameterRemover.cs (2)
53var elementType = symbol.PointedAtType.Accept(this); 54if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.UnnamedErrorTypeRemover.cs (2)
57var elementType = symbol.PointedAtType.Accept(this); 58if (elementType != null && elementType.Equals(symbol.PointedAtType))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
57/// the "same" <see cref="IPointerTypeSymbol.PointedAtType"/>.</item>
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PointerTypeSymbolKey.cs (2)
14=> visitor.WriteSymbolKey(symbol.PointedAtType); 19var pointedAtTypeResolution = reader.ReadSymbolKey(contextualSymbol?.PointedAtType, out var pointedAtTypeFailureReason);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (2)
578AreEquivalent(x.PointedAtType, y.PointedAtType, equivalentTypesWithDifferingAssemblies);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (1)
236GetHashCode(x.PointedAtType, currentHash));
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
65case IPointerTypeSymbol { PointedAtType.SpecialType: SpecialType.System_Void }:
Microsoft.Interop.SourceGeneration (2)
ArrayMarshallingInfoProvider.cs (1)
49if (elementType is IPointerTypeSymbol { PointedAtType: ITypeSymbol pointedAt })
ManualTypeMarshallingHelper.cs (1)
374innerType = pointerType.PointedAtType;
Microsoft.VisualStudio.LanguageServices (7)
Library\VsNavInfo\NavInfoFactory.cs (1)
83typeSymbol = ((IPointerTypeSymbol)typeSymbol).PointedAtType;
Progression\GraphNodeIdCreation.cs (6)
216while (pointerType.PointedAtType.TypeKind == TypeKind.Pointer) 219pointerType = (IPointerTypeSymbol)pointerType.PointedAtType; 224GraphNodeId.GetPartial(CodeQualifiedName.Name, pointerType.PointedAtType.Name), 228if (pointerType.PointedAtType.ContainingType != null) 230partials.Add(await GetPartialForTypeAsync(pointerType.PointedAtType.ContainingType, CodeGraphNodeIdName.ParentType, solution, cancellationToken).ConfigureAwait(false)); 282symbol = ((IPointerTypeSymbol)symbol).PointedAtType;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
246pointerTypeMock.SetupGet(s => s.PointedAtType).Returns(pointedAtType);
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
762typeSymbol = DirectCast(typeSymbol, IPointerTypeSymbol).PointedAtType