2 implementations of Target
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\AliasSymbol.cs (1)
21INamespaceOrTypeSymbol IAliasSymbol.Target
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\AliasSymbol.vb (1)
109Private ReadOnly Property IAliasSymbol_Target As INamespaceOrTypeSymbol Implements IAliasSymbol.Target
197 references to Target
Microsoft.CodeAnalysis (3)
Compilation\Compilation.cs (1)
1711s = ((IAliasSymbol)s).Target;
DocumentationCommentId.cs (1)
569return symbol.Target.Accept(this);
SymbolDisplay\AbstractSymbolDisplayVisitor_Minimal.cs (1)
126return aliasSymbol.Target as ITypeSymbol;
Microsoft.CodeAnalysis.CodeStyle (12)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
478var namespaceOrType = symbol is IAliasSymbol alias ? alias.Target : symbol as INamespaceOrTypeSymbol; 568IAliasSymbol aliasSymbol => aliasSymbol.Target as ITypeSymbol,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
146return symbol.Target.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
96return IsSymbolAccessibleCore(((IAliasSymbol)symbol).Target, within, throughType, out failedThroughTypeCheck);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (1)
19=> symbol.Target.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (3)
21visitor.WriteSymbolKey(symbol.Target); 29var targetResolution = reader.ReadSymbolKey(contextualSymbol?.Target, out var targetFailureReason); 69SymbolEquivalenceComparer.Instance.Equals(aliasSymbol.Target, target))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (2)
62if (builder.ContainsKey(alias.Target)) 66builder.Add(alias.Target, alias);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (2)
175=> symbol.IsKind(SymbolKind.Alias, out IAliasSymbol? alias) ? alias.Target : symbol; 182symbol = ((IAliasSymbol)symbol).Target;
Microsoft.CodeAnalysis.CSharp (4)
SymbolDisplay\SymbolDisplayVisitor.cs (1)
340symbol.Target.Accept(this);
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (3)
37if ((object?)boundAlias != null && alias.Target.Equals(symbol)) 225&& !builder.ContainsKey(aliasSymbol.Target)) 227builder.Add(aliasSymbol.Target, aliasSymbol);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
154var name = GenerateName(alias.Target);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
3048var target = ((IAliasSymbol)symbol).Target;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
48? ((IAliasSymbol)firstSymbol).Target
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (8)
CodeGen\CodeGenDeconstructTests.cs (6)
3805Assert.Equal(SymbolKind.NamedType, x1Alias.Target.Kind); 3806Assert.Equal("D", x1Alias.Target.ToDisplayString()); 5821Assert.Equal(SymbolKind.NamedType, x1Alias.Target.Kind); 5822Assert.Equal("byte", x1Alias.Target.ToDisplayString()); 5829Assert.Equal(SymbolKind.NamedType, x3Alias.Target.Kind); 5830Assert.Equal("byte", x3Alias.Target.ToDisplayString());
CodeGen\CodeGenRefLocalTests.cs (2)
4078Assert.Equal(SymbolKind.NamedType, alias.Target.Kind); 4079Assert.Equal("C", alias.Target.ToDisplayString());
Microsoft.CodeAnalysis.CSharp.Features (4)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (2)
35if (alias.Target.IsType && 36((INamedTypeSymbol)alias.Target).IsInterfaceType() &&
Completion\CompletionProviders\SymbolCompletionProvider.cs (1)
261else if (symbol.IsKind(SymbolKind.NamedType) || symbol is IAliasSymbol aliasSymbol && aliasSymbol.Target.IsType)
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.cs (1)
101var name = alias.Target.Name;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (40)
Semantics\GlobalUsingDirectiveTests.cs (38)
3854Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3857Assert.Equal("C2", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 3860Assert.Equal("C3", model.GetDeclaredSymbol(aliases[2]).Target.ToTestDisplayString()); 3863Assert.Equal("C4", model.GetDeclaredSymbol(aliases[3]).Target.ToTestDisplayString()); 3880Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3883Assert.Equal("C3", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 3886Assert.Equal("C4", model.GetDeclaredSymbol(aliases[2]).Target.ToTestDisplayString()); 3894Assert.Equal("C2", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3911Assert.Equal("C3", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3914Assert.Equal("C4", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 3922Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3925Assert.Equal("C2", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 3944Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3947Assert.Equal("C2", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 3964Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3972Assert.Equal("C2", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3994Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 3997Assert.Equal("C2", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 4010Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4013Assert.Equal("C2", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 4016Assert.Equal("C3", model.GetDeclaredSymbol(aliases[2]).Target.ToTestDisplayString()); 4019Assert.Equal("C4", model.GetDeclaredSymbol(aliases[3]).Target.ToTestDisplayString()); 4030Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4033Assert.Equal("C3", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 4036Assert.Equal("C4", model.GetDeclaredSymbol(aliases[2]).Target.ToTestDisplayString()); 4044Assert.Equal("C2", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4055Assert.Equal("C3", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4058Assert.Equal("C4", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 4066Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4069Assert.Equal("C2", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 4082Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4085Assert.Equal("C2", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 4096Assert.Equal("C1", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4104Assert.Equal("C2", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4123Assert.Equal("C3", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4126Assert.Equal("C4", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString()); 4155Assert.Equal("C3", model.GetDeclaredSymbol(aliases[0]).Target.ToTestDisplayString()); 4158Assert.Equal("C4", model.GetDeclaredSymbol(aliases[1]).Target.ToTestDisplayString());
Semantics\InteractiveUsingTests.cs (2)
91Assert.Equal(typeSymbol, ((IAliasSymbol)aliasSymbol).Target); 121Assert.Equal(typeSymbol, ((IAliasSymbol)aliasSymbol).Target);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (60)
Compilation\GetImportScopesTests.cs (23)
244Assert.True(scopes.Single().Aliases.Single() is { Name: "S", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) } }); 260Assert.True(scopes.Single().Aliases.Single() is { Name: "S", Target: { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) } }); 291Assert.True(scopes.Single().Aliases.Single() is { Name: "S", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) } }); 319Assert.True(scopes.Single().Aliases.Single() is { Name: "S", Target: { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) } }); 336Assert.True(scopes.Single().Aliases.Any(a => a is { Name: "S", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) } })); 337Assert.True(scopes.Single().Aliases.Any(a => a is { Name: "M", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(Microsoft) } })); 364Assert.True(scopes.Single().Aliases.Single() is { Name: "S", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) } }); 387Assert.True(scopes[0].Aliases.Single() is { Name: "M", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(Microsoft) } }); 389Assert.True(scopes[1].Aliases.Single() is { Name: "S", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(System) } }); 437Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 459Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 480Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 499Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 516Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 536Assert.True(scopes.Single().ExternAliases.Any(a => a is { Name: "CORE1", Target: INamespaceSymbol { IsGlobalNamespace: true } })); 537Assert.True(scopes.Single().ExternAliases.Any(a => a is { Name: "CORE2", Target: INamespaceSymbol { IsGlobalNamespace: true } })); 567Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE1", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 593Assert.True(scopes[0].ExternAliases.Single() is { Name: "CORE2", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 595Assert.True(scopes[1].ExternAliases.Single() is { Name: "CORE1", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 622Assert.True(scopes.Single().Aliases.Single() is { Name: "M", Target: INamespaceSymbol { Name: nameof(Microsoft) } }); 652Assert.True(scopes.Single().Aliases.Single() is { Name: "M", Target: INamespaceSymbol { Name: nameof(Microsoft) } }); 688Assert.True(scopes.Single().Aliases.Any(i => i is { Name: "M", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: true, Name: nameof(Microsoft) } })); 690Assert.True(scopes.Single().Aliases.Any(i => i is { Name: "T", Target: INamespaceSymbol { ContainingNamespace.IsGlobalNamespace: false, Name: nameof(System.Threading) } }));
Compilation\SemanticModelAPITests.cs (6)
1235Assert.Equal(symbol.Target, comp.GlobalNamespace.GetMember<INamespaceSymbol>("System")); 1270var aliasTarget = (INamespaceSymbol)aliasSymbol.Target; 1309Assert.IsType<MissingNamespaceSymbol>(aliasSymbol.Target.GetSymbol()); 1732Assert.Equal(classQ, aliasSymbol.Target); 2905Assert.Equal("System.ArgumentException", symbol.Target.ToDisplayString()); 3852var target = (INamespaceSymbol)((IAliasSymbol)symbol).Target;
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (12)
3928Assert.Equal("System", alias1.Target.ToDisplayString()); 3932Assert.Equal("System.IO", alias2.Target.ToDisplayString()); 4297Assert.NotNull(aliasSymbol.Target); 4298Assert.Equal("ObsoleteAttribute", aliasSymbol.Target.Name); 4343Assert.NotNull(aliasSymbol.Target); 4344Assert.Equal("ObsoleteAttribute", aliasSymbol.Target.Name); 4366Assert.NotNull(aliasSymbol.Target); 4367Assert.Equal("ObsoleteAttribute", aliasSymbol.Target.Name); 4388Assert.NotNull(aliasSymbol.Target); 4389Assert.Equal("ObsoleteAttribute", aliasSymbol.Target.Name); 4543Assert.Equal(@namespace, alias.Target); 4580Assert.Equal(@namespace, alias.Target);
Compilation\SymbolVisitorTests.cs (2)
47symbol.Target.Accept(this); 216symbol.Target.Accept(this);
DocumentationComments\CrefTests.cs (2)
6219Assert.Equal(info.Symbol, alias.Target); 6252Assert.Equal(info.Symbol, alias.Target);
Symbols\Source\ExternAliasTests.cs (4)
411return (INamespaceSymbol)aliasSymbol.Target; 437return (INamespaceSymbol)aliasSymbol.Target; 490Assert.Equal(aliasedGlobalNamespace, externAliasSymbol.Target); 496Assert.Equal(typeC, usingAliasSymbol.Target);
Symbols\Source\UsingAliasTests.cs (11)
55Assert.Equal(info1.Symbol, alias1.Target); 115Assert.Equal(info1.Symbol, alias1.Target); 279Assert.Equal(alias.Target, usingAliasType); 586Assert.Equal("System.Int32[]", model.GetAliasInfo(exprSyntaxToBind).Target.ToTestDisplayString()); 606Assert.Equal("(System.Int32, System.Int32)", model.GetAliasInfo(exprSyntaxToBind).Target.ToTestDisplayString()); 629Assert.Equal("System.Int32?", model.GetAliasInfo(exprSyntaxToBind).Target.ToTestDisplayString()); 652Assert.Equal("System.Int32?", model.GetAliasInfo(exprSyntaxToBind).Target.ToTestDisplayString()); 705Assert.Equal(SymbolKind.ErrorType, alias.Target.Kind); 706Assert.Equal("LongNamespace", alias.Target.ToTestDisplayString()); 748Assert.Equal(SymbolKind.ErrorType, alias.Target.Kind); 749Assert.Equal("LongNamespace", alias.Target.ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Recommendations\CSharpRecommendationServiceRunner.cs (3)
296return new(GetSymbolsForEnumBaseList(aliasSymbol.Target)); 300aliasSymbol.Target)); 739symbol = alias.Target;
Simplification\CSharpSimplificationService.Expander.cs (1)
460var aliasTarget = aliasInfo.Target;
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
305if (boundSymbols[0] is IAliasSymbol && aliasReplacement.Target.Equals(symbol))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamespaceGenerator.cs (1)
154var name = GenerateName(alias.Target);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ContextQuery\SyntaxTreeExtensions.cs (1)
3048var target = ((IAliasSymbol)symbol).Target;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
48? ((IAliasSymbol)firstSymbol).Target
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
AbstractTypeParameterChecker.cs (1)
46Visit(symbol.Target);
Microsoft.CodeAnalysis.Features (9)
Common\TaggedText.cs (2)
112if (alias.Target is INamespaceSymbol) 114else if (alias.Target is INamedTypeSymbol namedType)
Completion\Providers\ImportCompletionProvider\AbstractExtensionMethodImportCompletionProvider.cs (1)
110IAliasSymbol aliasSymbol => aliasSymbol.Target as ITypeSymbol,
GoToDefinition\GoToDefinitionFeatureHelpers.cs (2)
27if (alias.Target is INamespaceSymbol ns && ns.IsGlobalNamespace) 40symbol = alias.Target;
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
361await AddDescriptionPartAsync(alias.Target).ConfigureAwait(false);
Rename\SymbolicRenameInfo.cs (1)
78if (this.Symbol.IsAttribute() || (this.Symbol is IAliasSymbol alias && alias.Target.IsAttribute()))
Shared\Extensions\ISymbolExtensions_2.cs (2)
23return ((IAliasSymbol)symbol).Target.GetGlyph(); 196IAliasSymbol alias => alias.Target.GetDocumentationComment(compilation, expandIncludes: true, expandInheritdoc: true, cancellationToken: cancellationToken),
Microsoft.CodeAnalysis.VisualBasic (3)
SymbolDisplay\SymbolDisplayVisitor.vb (1)
194symbol.Target.Accept(Me)
SymbolDisplay\SymbolDisplayVisitor_Minimal.vb (1)
138If boundAlias IsNot Nothing AndAlso boundAlias.Target.Equals(symbol) Then
Symbols\AliasSymbol.vb (1)
109Private ReadOnly Property IAliasSymbol_Target As INamespaceOrTypeSymbol Implements IAliasSymbol.Target
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamespaceGenerator.vb (1)
109Dim name = GenerateName([alias].Target)
Microsoft.CodeAnalysis.VisualBasic.Features (2)
Completion\CompletionProviders\ImplementsClauseCompletionProvider.vb (1)
114symbol = DirectCast(symbol, IAliasSymbol).Target
Diagnostics\Analyzers\TypeSyntaxSimplifierWalker.vb (1)
86_aliasedNames = _aliasedNames.Add(aliasSymbol.Target.Name)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (9)
Compilation\GetImportScopesTests.vb (3)
48Return symbol.Name = aliasName AndAlso symbol.Target.Name = targetName AndAlso TypeOf symbol.Target Is INamespaceSymbol AndAlso DirectCast(symbol.Target, INamespaceSymbol).ContainingNamespace.IsGlobalNamespace = inGlobalNamespace
Compilation\SemanticModelAPITests.vb (6)
1273Assert.NotNull(aliasSymbol.Target) 1274Assert.Equal("ObsoleteAttribute", aliasSymbol.Target.Name) 1321Assert.NotNull(aliasSymbol.Target) 1322Assert.Equal("ObsoleteAttribute", aliasSymbol.Target.Name) 1357Assert.NotNull(aliasSymbol.Target) 1358Assert.Equal("ObsoleteAttribute", aliasSymbol.Target.Name)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (1)
DocumentationComments\DocCommentTests.vb (1)
11904Assert.Equal(e.Target, actual.Target.ToDisplayString)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (7)
CaseCorrection\VisualBasicCaseCorrectionService.Rewriter.vb (1)
168(TypeOf symbol Is IAliasSymbol AndAlso TypeOf DirectCast(symbol, IAliasSymbol).Target Is INamespaceOrTypeSymbol) OrElse
Recommendations\VisualBasicRecommendationServiceRunner.vb (2)
450symbol = DirectCast(symbol, IAliasSymbol).Target 491symbol = DirectCast(symbol, IAliasSymbol).Target
Rename\VisualBasicRenameRewriterLanguageService.vb (1)
528Debug.Assert(Me._renamedSymbol.IsAttribute() OrElse Me._aliasSymbol.Target.IsAttribute())
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
170If boundAlias IsNot Nothing And aliasReplacement.Target.Equals(symbol) Then
Simplification\VisualBasicSimplificationService.Expander.vb (1)
500Dim aliasTarget = aliasInfo.Target
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamespaceGenerator.vb (1)
109Dim name = GenerateName([alias].Target)
Microsoft.CodeAnalysis.Workspaces (19)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (1)
233!syntaxFacts.StringComparer.Equals(aliasSymbol.Name, aliasSymbol.Target.Name))
FindSymbols\FindReferences\FindReferencesSearchEngine.SymbolSet.cs (2)
117if (aliasSymbol.Target is INamedTypeSymbol or INamespaceSymbol) 118searchSymbol = aliasSymbol.Target;
ObsoleteSymbol\AbstractObsoleteSymbolService.cs (1)
196symbol = alias.Target;
Recommendations\AbstractRecommendationServiceRunner.cs (2)
302var aliases = semanticModel.LookupSymbols(_context.Position, container).OfType<IAliasSymbol>().Where(a => systemNamespace.Equals(a.Target)); 327var aliases = _context.SemanticModel.LookupSymbols(_context.Position, container).OfType<IAliasSymbol>().Where(a => specialTypeSymbol.Equals(a.Target));
Rename\SymbolicRenameLocations.ReferenceProcessing.cs (1)
77var target = ((IAliasSymbol)originalSymbol).Target;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
478var namespaceOrType = symbol is IAliasSymbol alias ? alias.Target : symbol as INamespaceOrTypeSymbol; 568IAliasSymbol aliasSymbol => aliasSymbol.Target as ITypeSymbol,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.RequiresUnsafeModifierVisitor.cs (1)
146return symbol.Target.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions_Accessibility.cs (1)
96return IsSymbolAccessibleCore(((IAliasSymbol)symbol).Target, within, throughType, out failedThroughTypeCheck);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.MinimalAccessibilityVisitor.cs (1)
19=> symbol.Target.Accept(this);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (3)
21visitor.WriteSymbolKey(symbol.Target); 29var targetResolution = reader.ReadSymbolKey(contextualSymbol?.Target, out var targetFailureReason); 69SymbolEquivalenceComparer.Instance.Equals(aliasSymbol.Target, target))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AliasSymbolCache.cs (2)
62if (builder.ContainsKey(alias.Target)) 66builder.Add(alias.Target, alias);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (2)
175=> symbol.IsKind(SymbolKind.Alias, out IAliasSymbol? alias) ? alias.Target : symbol; 182symbol = ((IAliasSymbol)symbol).Target;
Microsoft.VisualStudio.LanguageServices (1)
Library\VsNavInfo\NavInfoFactory.cs (1)
41symbol = aliasSymbol.Target;
Microsoft.VisualStudio.LanguageServices.CSharp (1)
CodeModel\MethodXml\MethodXmlBuilder.cs (1)
491leftHandSymbol = ((IAliasSymbol)leftHandSymbol).Target;
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
GlyphExtensionsTests.cs (1)
221aliasMock.SetupGet(s => s.Target).Returns(target);