1 write to Alias
Microsoft.CodeAnalysis.CSharp (1)
Binder\AliasAndExternAliasDirective.cs (1)
22this.Alias = alias;
15 references to Alias
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Lookup.cs (3)
427if (!a.SkipInLookup && a.Alias.Name == name) 432var res = originalBinder.CheckViability(a.Alias, arity, options, null, diagnose, ref useSiteInfo, basesBeingResolved); 1933addAliasSymbolToResult(result, externAlias.Alias, options, originalBinder);
Binder\ImportChain.cs (1)
70usedNamespaces.Add(Cci.UsedNamespaceOrType.CreateExternAlias(alias.Alias.Name));
Binder\Imports.cs (2)
55ExternAliases.Select(ea => $"extern alias {ea.Alias.Name}"))); 205replacedExternAliases.AddAll(externs2.Select(e => e.Alias.Name));
Compilation\SyntaxTreeSemanticModel.cs (2)
1969if (alias.Alias.GetFirstLocation().SourceSpan == declarationSyntax.Identifier.Span) 1971return 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. 367mergedAliases.ContainsKey(externAlias.Alias.Name)) 370diagnostics.Add(ErrorCode.ERR_DuplicateAlias, externAlias.Alias.GetFirstLocation(), externAlias.Alias.Name); 696if (externAlias.Alias.Name == identifierValueText) 1036var target = (NamespaceSymbol)alias.Alias.GetAliasTarget(null); 1039if (alias.Alias is AliasSymbolFromSyntax aliasFromSyntax)