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