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