1 implementation of ExternAliases
Microsoft.CodeAnalysis (1)
Compilation\IImportScope.cs (1)
147public ImmutableArray<IAliasSymbol> ExternAliases { get; }
65 references to ExternAliases
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
InteractiveSessionTests.cs (1)
1186Assert.Empty(scope.ExternAliases);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (45)
Compilation\GetImportScopesTests.cs (45)
58Assert.Empty(scopes.Single().ExternAliases); 74Assert.Empty(scopes.Single().ExternAliases); 105Assert.Empty(scopes.Single().ExternAliases); 133Assert.Empty(scopes.Single().ExternAliases); 152Assert.Empty(scopes.Single().ExternAliases); 247Assert.Empty(scopes.Single().ExternAliases); 263Assert.Empty(scopes.Single().ExternAliases); 294Assert.Empty(scopes.Single().ExternAliases); 322Assert.Empty(scopes.Single().ExternAliases); 341Assert.Empty(scopes.Single().ExternAliases); 417Assert.Single(scopes.Single().ExternAliases); 418Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE" }); 419Assert.True(scopes.Single().ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax); 436Assert.Single(scopes.Single().ExternAliases); 437Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 438Assert.True(scopes.Single().ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax); 458Assert.Single(scopes.Single().ExternAliases); 459Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 460Assert.True(scopes.Single().ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax); 479Assert.Single(scopes.Single().ExternAliases); 480Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 481Assert.True(scopes.Single().ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax); 498Assert.Single(scopes.Single().ExternAliases); 499Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 500Assert.True(scopes.Single().ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax); 515Assert.Single(scopes.Single().ExternAliases); 516Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 517Assert.True(scopes.Single().ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax); 535Assert.Equal(2, scopes.Single().ExternAliases.Length); 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 } })); 538Assert.True(scopes.Single().ExternAliases.Any(a => a.DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax { Identifier.Text: "CORE1" })); 539Assert.True(scopes.Single().ExternAliases.Any(a => a.DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax { Identifier.Text: "CORE2" })); 566Assert.Single(scopes.Single().ExternAliases); 567Assert.True(scopes.Single().ExternAliases.Single() is { Name: "CORE1", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 568Assert.True(scopes.Single().ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax { Identifier.Text: "CORE1" }); 591Assert.Single(scopes[0].ExternAliases); 592Assert.Single(scopes[1].ExternAliases); 593Assert.True(scopes[0].ExternAliases.Single() is { Name: "CORE2", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 594Assert.True(scopes[0].ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax { Identifier.Text: "CORE2" }); 595Assert.True(scopes[1].ExternAliases.Single() is { Name: "CORE1", Target: INamespaceSymbol { IsGlobalNamespace: true } }); 596Assert.True(scopes[1].ExternAliases.Single().DeclaringSyntaxReferences.Single().GetSyntax() is ExternAliasDirectiveSyntax { Identifier.Text: "CORE1" }); 619Assert.Empty(scopes.Single().ExternAliases); 655Assert.Empty(scopes.Single().ExternAliases); 693Assert.Empty(scopes.Single().ExternAliases);
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (19)
Compilation\GetImportScopesTests.vb (19)
77Assert.Empty(scopes.Single().ExternAliases) 94Assert.Empty(scopes.Single().ExternAliases) 130Assert.Empty(scopes.Single().ExternAliases) 156Assert.Empty(scopes.Single().ExternAliases) 179Assert.Empty(scopes.Single().ExternAliases) 204Assert.Empty(scopes.Single().ExternAliases) 224Assert.Empty(scopes.Single().ExternAliases) 241Assert.Empty(scopes.Single().ExternAliases) 261Assert.Empty(scopes.Single().ExternAliases) 282Assert.Empty(scopes.Single().ExternAliases) 306Assert.Empty(scopes.Single().ExternAliases) 330Assert.Empty(scopes.Single().ExternAliases) 354Assert.Empty(scopes.Single().ExternAliases) 372Assert.Empty(scopes.Single().ExternAliases) 394Assert.Empty(scopes.Single().ExternAliases) 418Assert.Empty(scopes.Single().ExternAliases) 445Assert.Empty(scopes.Single().ExternAliases) 469Assert.Empty(scopes.Single().ExternAliases) 495Assert.Empty(scopes.Single().ExternAliases)