1 write to Alias
Microsoft.CodeAnalysis.CSharp (1)
Binder\AliasAndExternAliasDirective.cs (1)
22
this.
Alias
= alias;
15 references to Alias
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Lookup.cs (3)
427
if (!a.SkipInLookup && a.
Alias
.Name == name)
432
var res = originalBinder.CheckViability(a.
Alias
, arity, options, null, diagnose, ref useSiteInfo, basesBeingResolved);
1933
addAliasSymbolToResult(result, externAlias.
Alias
, options, originalBinder);
Binder\ImportChain.cs (1)
70
usedNamespaces.Add(Cci.UsedNamespaceOrType.CreateExternAlias(alias.
Alias
.Name));
Binder\Imports.cs (2)
55
ExternAliases.Select(ea => $"extern alias {ea.
Alias
.Name}")));
205
replacedExternAliases.AddAll(externs2.Select(e => e.
Alias
.Name));
Compilation\SyntaxTreeSemanticModel.cs (2)
1969
if (alias.
Alias
.GetFirstLocation().SourceSpan == declarationSyntax.Identifier.Span)
1971
return alias.
Alias
.GetPublicSymbol();
Symbols\Source\SourceNamespaceSymbol.AliasesAndUsings.cs (7)
366
!globalAliasesMap.ContainsKey(externAlias.
Alias
.Name) && // If we have a global alias with the same name declared in the same compilation unit, we already reported the conflict on the global alias.
367
mergedAliases.ContainsKey(externAlias.
Alias
.Name))
370
diagnostics.Add(ErrorCode.ERR_DuplicateAlias, externAlias.
Alias
.GetFirstLocation(), externAlias.
Alias
.Name);
696
if (externAlias.
Alias
.Name == identifierValueText)
1036
var target = (NamespaceSymbol)alias.
Alias
.GetAliasTarget(null);
1039
if (alias.
Alias
is AliasSymbolFromSyntax aliasFromSyntax)