2 types derived from AliasSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\AliasSymbol.cs (2)
276internal sealed class AliasSymbolFromSyntax : AliasSymbol 432internal sealed class AliasSymbolFromResolvedTarget : AliasSymbol
101 references to AliasSymbol
Microsoft.CodeAnalysis.CSharp (84)
Binder\AliasAndExternAliasDirective.cs (2)
16public readonly AliasSymbol Alias; 20public AliasAndExternAliasDirective(AliasSymbol alias, ExternAliasDirectiveSyntax? externAliasDirective, bool skipInLookup)
Binder\AliasAndUsingDirective.cs (2)
12public readonly AliasSymbol Alias; 15public AliasAndUsingDirective(AliasSymbol alias, UsingDirectiveSyntax? usingDirective)
Binder\Binder_Deconstruct.cs (1)
750AliasSymbol alias;
Binder\Binder_Expressions.cs (10)
930AliasSymbol alias; 1372AliasSymbol alias; 1425AliasSymbol alias; 1532TypeWithAnnotations typeWithAnnotations = this.BindType(node.Type, diagnostics, out AliasSymbol alias); 2185var alias = (AliasSymbol)symbol; 2428var alias = symbol as AliasSymbol; 3127AliasSymbol alias; 3174AliasSymbol alias;
Binder\Binder_Lookup.cs (3)
1395? ((AliasSymbol)symbol).GetAliasTarget(basesBeingResolved) 1579internal bool CanAddLookupSymbolInfo(Symbol symbol, LookupOptions options, LookupSymbolsInfo info, TypeSymbol accessThroughType, AliasSymbol aliasSymbol = null) 1938static void addAliasSymbolToResult(LookupSymbolsInfo result, AliasSymbol aliasSymbol, LookupOptions options, Binder originalBinder)
Binder\Binder_Operators.cs (2)
3340TypeWithAnnotations targetTypeWithAnnotations = BindType(possibleType, bindAsTypeDiagnostics, out AliasSymbol alias); 3691AliasSymbol alias;
Binder\Binder_Patterns.cs (1)
858TypeWithAnnotations declType = BindType(typeSyntax, diagnostics, out AliasSymbol aliasOpt);
Binder\Binder_Statements.cs (5)
724AliasSymbol alias; 784private TypeWithAnnotations BindVariableTypeWithAnnotations(CSharpSyntaxNode declarationNode, BindingDiagnosticBag diagnostics, TypeSyntax typeSyntax, ref bool isConst, out bool isVar, out AliasSymbol alias) 953AliasSymbol aliasOpt, 979AliasSymbol aliasOpt, 2816AliasSymbol alias;
Binder\Binder_Symbols.cs (12)
78internal TypeWithAnnotations BindTypeOrVarKeyword(TypeSyntax syntax, BindingDiagnosticBag diagnostics, out bool isVar, out AliasSymbol alias) 311internal TypeWithAnnotations BindType(ExpressionSyntax syntax, BindingDiagnosticBag diagnostics, out AliasSymbol alias, ConsList<TypeSymbol> basesBeingResolved = null) 580NamespaceOrTypeSymbol left = bindingResult is AliasSymbol alias ? alias.Target : (NamespaceOrTypeSymbol)bindingResult; 910var aliasTarget = ((AliasSymbol)bindingResult).GetAliasTarget(basesBeingResolved); 961if (((AliasSymbol)s).Target.Kind == SymbolKind.NamedType) return true; 1088return ((AliasSymbol)symbol).GetAliasTarget(basesBeingResolved); 1098AliasSymbol discarded; 1105private NamespaceOrTypeOrAliasSymbolWithAnnotations UnwrapAlias(in NamespaceOrTypeOrAliasSymbolWithAnnotations symbol, out AliasSymbol alias, BindingDiagnosticBag diagnostics, SyntaxNode syntax, ConsList<TypeSymbol> basesBeingResolved = null) 1118AliasSymbol discarded; 1122private Symbol UnwrapAlias(Symbol symbol, out AliasSymbol alias, BindingDiagnosticBag diagnostics, SyntaxNode syntax, ConsList<TypeSymbol> basesBeingResolved = null) 1129alias = (AliasSymbol)symbol; 2320if ((symbols.Count > 1) || (symbols[0] is NamespaceOrTypeSymbol || symbols[0] is AliasSymbol) ||
Binder\ForEachLoopBinder.cs (1)
298AliasSymbol alias;
Binder\ImportChain.cs (1)
105var symbol = aliasAndUsingDirective.Alias;
Binder\Semantics\AccessCheck.cs (1)
161return IsSymbolAccessibleCore(((AliasSymbol)symbol).Target, within, null, out failedThroughTypeCheck, compilation, ref useSiteInfo, basesBeingResolved);
BoundTree\Constructors.cs (5)
543public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, bool hasErrors = false) 549public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, TypeWithAnnotations typeWithAnnotations, bool hasErrors = false) 554public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, TypeWithAnnotations typeWithAnnotations, bool hasErrors = false) 559public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, TypeSymbol type, bool hasErrors = false) 564public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, ImmutableArray<BoundExpression> dimensionsOpt, TypeWithAnnotations typeWithAnnotations, bool hasErrors = false)
Compilation\AttributeSemanticModel.cs (4)
18private readonly AliasSymbol _aliasOpt; 25AliasSymbol aliasOpt, 39public static AttributeSemanticModel Create(PublicSemanticModel containingSemanticModel, AttributeSyntax syntax, NamedTypeSymbol attributeType, AliasSymbol aliasOpt, Symbol? attributeTarget, Binder rootBinder, ImmutableDictionary<Symbol, Symbol>? parentRemappedSymbolsOpt) 48public static SpeculativeSemanticModelWithMemberModel CreateSpeculative(SyntaxTreeSemanticModel parentSemanticModel, AttributeSyntax syntax, NamedTypeSymbol attributeType, AliasSymbol aliasOpt, Binder rootBinder, ImmutableDictionary<Symbol, Symbol> parentRemappedSymbolsOpt, int position)
Compilation\CSharpCompilation.cs (4)
57private AliasSymbol? _lazyGlobalNamespaceAlias; // alias symbol used to resolve "global::". 1645internal AliasSymbol GlobalNamespaceAlias 2585private AliasSymbol CreateGlobalNamespaceAlias() 2587return AliasSymbol.CreateGlobalNamespaceAlias(this.GlobalNamespace);
Compilation\CSharpSemanticModel.cs (4)
412AliasSymbol aliasOpt; // not needed. 1204? (crefSymbols[0] as AliasSymbol).GetPublicSymbol() 2360return symbol is AliasSymbol aliasSym ? aliasSym.Target : symbol; 2771AliasSymbol aliasOpt;
Compilation\PublicSemanticModel.cs (1)
19AliasSymbol aliasOpt;
Compilation\SpeculativeSemanticModelWithMemberModel.cs (1)
46AliasSymbol aliasOpt,
Compilation\SyntaxTreeSemanticModel.cs (1)
760internal PublicSemanticModel CreateSpeculativeAttributeSemanticModel(int position, AttributeSyntax attribute, Binder binder, AliasSymbol aliasOpt, NamedTypeSymbol attributeType)
Compiler\DocumentationCommentCompiler.cs (1)
1090symbol = ((AliasSymbol)symbol).GetAliasTarget(basesBeingResolved: null);
Generated\BoundNodes.xml.Generated.cs (7)
1068public BoundTypeExpression(SyntaxNode syntax, AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, TypeSymbol type, bool hasErrors = false) 1080public AliasSymbol? AliasOpt { get; } 1089public BoundTypeExpression Update(AliasSymbol? aliasOpt, BoundTypeExpression? boundContainingTypeOpt, ImmutableArray<BoundExpression> boundDimensionsOpt, TypeWithAnnotations typeWithAnnotations, TypeSymbol type) 1141public BoundNamespaceExpression(SyntaxNode syntax, NamespaceSymbol namespaceSymbol, AliasSymbol? aliasOpt, bool hasErrors) 1151public BoundNamespaceExpression(SyntaxNode syntax, NamespaceSymbol namespaceSymbol, AliasSymbol? aliasOpt) 1163public AliasSymbol? AliasOpt { get; } 1168public BoundNamespaceExpression Update(NamespaceSymbol namespaceSymbol, AliasSymbol? aliasOpt)
Symbols\AliasSymbol.cs (5)
68internal static AliasSymbol CreateGlobalNamespaceAlias(NamespaceSymbol globalNamespace) 73internal static AliasSymbol CreateCustomDebugInfoAlias(NamespaceOrTypeSymbol targetSymbol, SyntaxToken aliasToken, Symbol containingSymbol, bool isExtern) 78internal AliasSymbol ToNewSubmission(CSharpCompilation compilation) 255AliasSymbol? other = obj as AliasSymbol;
Symbols\PublicModel\AliasSymbol.cs (2)
11private readonly Symbols.AliasSymbol _underlying; 13public AliasSymbol(Symbols.AliasSymbol underlying)
Symbols\SymbolExtensions.cs (4)
279return IsTypeOrTypeAlias(((AliasSymbol)symbol).Target); 647internal static IAliasSymbol? GetPublicSymbol(this AliasSymbol? symbol) 790internal static AliasSymbol? GetSymbol(this IAliasSymbol? symbol) 792return symbol.GetSymbol<AliasSymbol>();
Symbols\SymbolVisitor.cs (1)
25public virtual void VisitAlias(AliasSymbol symbol)
Symbols\SymbolVisitor`1.cs (1)
25public virtual TResult VisitAlias(AliasSymbol symbol)
Symbols\SymbolVisitor`2.cs (2)
269/// Called when visiting an <see cref="AliasSymbol" />; Override this with specific 275public virtual TResult VisitAlias(AliasSymbol symbol, TArgument argument)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (17)
Compilation\SemanticModelGetSemanticInfoTests.cs (17)
733var aliasInfo = GetAliasInfoForTest(sourceCode); 758var aliasInfo = GetAliasInfoForTest(sourceCode); 4413var aliasInfo = GetAliasInfoForTest(sourceCode); 4451var aliasInfo = GetAliasInfoForTest(sourceCode); 9309var aliasInfo = GetAliasInfoForTest(sourceCode); 9932var aliasInfo = GetAliasInfoForTest(sourceCode); 9968var aliasInfo = GetAliasInfoForTest(sourceCode); 10004var aliasInfo = GetAliasInfoForTest(sourceCode); 10040var aliasInfo = GetAliasInfoForTest(sourceCode); 10076var aliasInfo = GetAliasInfoForTest(sourceCode); 10265var aliasInfo = GetAliasInfoForTest(sourceCode); 10300var aliasInfo = GetAliasInfoForTest(sourceCode); 10335var aliasInfo = GetAliasInfoForTest(sourceCode); 10369var aliasInfo = GetAliasInfoForTest(sourceCode); 10403var aliasInfo = GetAliasInfoForTest(sourceCode); 11637var aliasInfo = GetAliasInfoForTest(sourceCode); 11671var aliasInfo = GetAliasInfoForTest(sourceCode);