2 instantiations of SourceNamespaceSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\Source\SourceModuleSymbol.cs (1)
199
var globalNS = new
SourceNamespaceSymbol
(
Symbols\Source\SourceNamespaceSymbol.cs (1)
405
return new
SourceNamespaceSymbol
(_module, this, (MergedNamespaceDeclaration)declaration, diagnostics);
51 references to SourceNamespaceSymbol
Microsoft.CodeAnalysis.CSharp (51)
Binder\Binder_Lookup.cs (1)
283
submissionImports = ((
SourceNamespaceSymbol
)Compilation.SourceModule.GlobalNamespace).GetImports(declarationSyntax, basesBeingResolved);
Binder\BinderFactory.BinderFactoryVisitor.cs (5)
921
outer = AddInImportsBinders((
SourceNamespaceSymbol
)outer.Compilation.SourceModule.GetModuleNamespace(ns), namespaceDecl, outer, inUsing);
984
result = WithUsingNamespacesAndTypesBinder.Create((
SourceNamespaceSymbol
)compilation.SourceModule.GlobalNamespace, compilationUnit, result,
1003
result = AddInImportsBinders((
SourceNamespaceSymbol
)compilation.SourceModule.GlobalNamespace, compilationUnit, result, inUsing);
1017
result = AddInImportsBinders((
SourceNamespaceSymbol
)compilation.SourceModule.GlobalNamespace, compilationUnit, result, inUsing);
1034
private static Binder AddInImportsBinders(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next, bool inUsing)
Binder\InSubmissionClassBinder.cs (2)
60
internal override ImmutableArray<AliasAndExternAliasDirective> ExternAliases => ((
SourceNamespaceSymbol
)Compilation.SourceModule.GlobalNamespace).GetExternAliases(_declarationSyntax);
62
internal override ImmutableArray<AliasAndUsingDirective> UsingAliases => ((
SourceNamespaceSymbol
)Compilation.SourceModule.GlobalNamespace).GetUsingAliases(_declarationSyntax, basesBeingResolved: null);
Binder\WithExternAliasesBinder.cs (3)
72
internal static WithExternAliasesBinder Create(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next)
84
private readonly
SourceNamespaceSymbol
_declaringSymbol;
88
internal FromSyntax(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next)
Binder\WithExternAndUsingAliasesBinder.cs (5)
93
internal static new WithExternAndUsingAliasesBinder Create(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next)
98
internal static WithExternAndUsingAliasesBinder Create(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, WithUsingNamespacesAndTypesBinder next)
110
private readonly
SourceNamespaceSymbol
_declaringSymbol;
117
internal FromSyntax(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, WithUsingNamespacesAndTypesBinder next)
178
foreach (var declaration in ((
SourceNamespaceSymbol
)Compilation.SourceModule.GlobalNamespace).MergedDeclaration.Declarations)
Binder\WithUsingNamespacesAndTypesBinder.cs (5)
254
internal static WithUsingNamespacesAndTypesBinder Create(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next, bool withPreviousSubmissionImports = false, bool withImportChainEntry = false)
271
private readonly
SourceNamespaceSymbol
_declaringSymbol;
275
internal FromSyntax(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next, bool withImportChainEntry)
301
private readonly
SourceNamespaceSymbol
_declaringSymbol;
305
internal FromSyntaxWithPreviousSubmissionImports(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, Binder next, bool withImportChainEntry)
Compilation\CSharpCompilation.cs (5)
1627
return ((
SourceNamespaceSymbol
)SourceModule.GlobalNamespace).GetImports((CSharpSyntaxNode)tree.GetRoot(), basesBeingResolved: null);
3099
foreach (var singleDeclaration in ((
SourceNamespaceSymbol
)SourceModule.GlobalNamespace).MergedDeclaration.Declarations)
5003
_cache[mergedNamespace.ConstituentNamespaces.OfType<
SourceNamespaceSymbol
>().First().MergedDeclaration] = symbol;
5007
var
sourceNamespace = symbol as
SourceNamespaceSymbol
;
Symbols\AliasSymbol.cs (2)
285
internal AliasSymbolFromSyntax(
SourceNamespaceSymbol
containingSymbol, UsingDirectiveSyntax syntax)
293
internal AliasSymbolFromSyntax(
SourceNamespaceSymbol
containingSymbol, ExternAliasDirectiveSyntax syntax)
Symbols\Source\SourceModuleSymbol.cs (2)
199
var
globalNS = new SourceNamespaceSymbol(
380
else if (item is
SourceNamespaceSymbol
@namespace)
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (18)
413
internal ImmutableArray<AliasAndExternAliasDirective> GetExternAliases(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax)
418
internal ImmutableArray<AliasAndExternAliasDirective> GetExternAliases(
SourceNamespaceSymbol
declaringSymbol, SyntaxReference declarationSyntax)
423
private ExternAliasesAndDiagnostics GetExternAliasesAndDiagnostics(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax)
467
SourceNamespaceSymbol
declaringSymbol,
510
internal ImmutableArray<AliasAndUsingDirective> GetUsingAliases(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
515
internal ImmutableArray<AliasAndUsingDirective> GetGlobalUsingAliases(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
520
internal ImmutableDictionary<string, AliasAndUsingDirective> GetUsingAliasesMap(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
525
internal ImmutableDictionary<string, AliasAndUsingDirective> GetGlobalUsingAliasesMap(
SourceNamespaceSymbol
declaringSymbol, SyntaxReference declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
530
internal ImmutableArray<NamespaceOrTypeAndUsingDirective> GetUsingNamespacesOrTypes(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
535
private UsingsAndDiagnostics GetUsingsAndDiagnostics(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
540
internal ImmutableArray<NamespaceOrTypeAndUsingDirective> GetGlobalUsingNamespacesOrTypes(
SourceNamespaceSymbol
declaringSymbol, SyntaxReference declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
545
private UsingsAndDiagnostics GetGlobalUsingsAndDiagnostics(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
550
private UsingsAndDiagnostics GetUsingsAndDiagnostics(ref UsingsAndDiagnostics? usings,
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved, bool onlyGlobal)
617
SourceNamespaceSymbol
declaringSymbol,
898
internal Imports GetImports(
SourceNamespaceSymbol
declaringSymbol, CSharpSyntaxNode declarationSyntax, ConsList<TypeSymbol>? basesBeingResolved)
912
internal void Complete(
SourceNamespaceSymbol
declaringSymbol, SyntaxReference declarationSyntax, CancellationToken cancellationToken)
962
private static void Validate(
SourceNamespaceSymbol
declaringSymbol, SyntaxReference declarationSyntax, ExternAliasesAndDiagnostics externAliasesAndDiagnostics, UsingsAndDiagnostics usingsAndDiagnostics, DiagnosticBag? globalUsingDiagnostics)
1149
internal void Complete(
SourceNamespaceSymbol
declaringSymbol, CancellationToken cancellationToken)
Symbols\Source\SourceNamespaceSymbol.cs (1)
391
else if (otherSymbol is
SourceNamespaceSymbol
{ MergedDeclaration.NameLocations: var namespaceNameLocations })
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (2)
224
var
declaringSymbol = (
SourceNamespaceSymbol
)compilation.SourceModule.GlobalNamespace;