91 references to GetAliasInfo
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
33if (semanticModel.GetAliasInfo(typeSyntax) != null)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (13)
CodeGen\CodeGenDeconstructTests.cs (10)
3755Assert.Null(model.GetAliasInfo(x1Type)); 3804var x1Alias = model.GetAliasInfo(x1Type); 3812Assert.Null(model.GetAliasInfo(x2Type)); 5037Assert.Null(model.GetAliasInfo(xType)); 5043Assert.Equal("alias=System.Int32", model.GetAliasInfo(yType).ToTestDisplayString()); 5189Assert.Null(model.GetAliasInfo(x1Type)); 5820var x1Alias = model.GetAliasInfo(x1Type); 5828var x3Alias = model.GetAliasInfo(x3Type); 5872Assert.Null(model.GetAliasInfo(x1Type)); 5878Assert.Null(model.GetAliasInfo(x3Type));
CodeGen\CodeGenRefLocalTests.cs (3)
4040Assert.Null(model.GetAliasInfo(type)); 4077var alias = model.GetAliasInfo(type); 4111Assert.Null(model.GetAliasInfo(type));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (25)
Semantics\OutVarTests.cs (23)
17925Assert.Equal("a=System.Int32", model.GetAliasInfo(x1Decl.Type).ToTestDisplayString()); 17957Assert.Equal("var=System.Int32", model.GetAliasInfo(x1Decl.Type).ToTestDisplayString()); 18074Assert.Null(model.GetAliasInfo(x1Decl.Type)); 18109Assert.Null(model.GetAliasInfo(x1Decl.Type)); 18148Assert.Null(model.GetAliasInfo(x1Decl.Type)); 18189Assert.Null(model.GetAliasInfo(x1Decl.Type)); 18232Assert.Null(model.GetAliasInfo(x1Decl.Type)); 18275Assert.Null(model.GetAliasInfo(x1Decl.Type)); 18314Assert.Null(model.GetAliasInfo(x1Decl.Type)); 18390Assert.Null(model.GetAliasInfo(x1Decl.Type)); 19294Assert.Null(model.GetAliasInfo(x1Decl.Type)); 19372Assert.Null(model.GetAliasInfo(x1Decl.Type)); 32550Assert.Null(model.GetAliasInfo(x1Decl.Type)); 32578Assert.Equal("var=System.Int32", model.GetAliasInfo(x1Decl.Type).ToTestDisplayString()); 32606Assert.Equal("a=System.Int32", model.GetAliasInfo(x1Decl.Type).ToTestDisplayString()); 32632Assert.Null(model.GetAliasInfo(x1Decl.Type)); 33077Assert.Null(model.GetAliasInfo(declaration1.Type)); 33093Assert.Null(model.GetAliasInfo(declaration2.Type)); 33149Assert.Null(model.GetAliasInfo(declaration1.Type)); 33191Assert.Equal("alias1=System.Int32", model.GetAliasInfo(declaration1.Type).ToTestDisplayString()); 33207Assert.Equal("var=System.Int32", model.GetAliasInfo(declaration2.Type).ToTestDisplayString()); 33255Assert.Null(model.GetAliasInfo(declaration1.Type)); 33273Assert.Null(model.GetAliasInfo(declaration2.Type));
Semantics\PatternMatchingTests_Global.cs (2)
6377Assert.Equal("a=System.Int32", model.GetAliasInfo(x1.Type).ToTestDisplayString()); 6400Assert.Null(model.GetAliasInfo(x1.Type));
Microsoft.CodeAnalysis.CSharp.Features (3)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (3)
264semanticModel.GetAliasInfo(typeSyntax, cancellationToken)); 306semanticModel.GetAliasInfo(typeSyntax, cancellationToken)); 373var alias = semanticModel.GetAliasInfo(conditionalExpressionSyntax.Condition, cancellationToken);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (40)
Semantics\DeconstructionTests.cs (33)
4280Assert.Null(model.GetAliasInfo(declarations[0].Type)); 4298Assert.Null(model.GetAliasInfo(declarations[1].Type)); 4312Assert.Null(model.GetAliasInfo(declarations[2].Type)); 4411Assert.Null(model.GetAliasInfo(declarations[0].Type)); 4429Assert.Null(model.GetAliasInfo(declarations[1].Type)); 4443Assert.Null(model.GetAliasInfo(declarations[2].Type)); 4539Assert.Null(model.GetAliasInfo(declarations[0].Type)); 4560Assert.Null(model.GetAliasInfo(declarations[1].Type)); 4577Assert.Null(model.GetAliasInfo(declarations[2].Type)); 4685Assert.Equal("var=System.Int32", model.GetAliasInfo(declarations[0].Type).ToTestDisplayString()); 4699Assert.Equal("var=System.Int32", model.GetAliasInfo(declarations[1].Type).ToTestDisplayString()); 4779Assert.Equal("var=System.Int32", model.GetAliasInfo(declarations[0].Type).ToTestDisplayString()); 4793Assert.Equal("var=System.Int32", model.GetAliasInfo(declarations[1].Type).ToTestDisplayString()); 4857Assert.Equal("var=System.Int32", model.GetAliasInfo(declarations[0].Type).ToTestDisplayString()); 4874Assert.Equal("var=System.Int32", model.GetAliasInfo(declarations[1].Type).ToTestDisplayString()); 4956Assert.Equal("al=System.Int32", model.GetAliasInfo(declaration.Type).ToTestDisplayString()); 5002Assert.Equal("al=System.Int32", model.GetAliasInfo(declaration.Type).ToTestDisplayString()); 5063Assert.Equal("al=System.Int32", model.GetAliasInfo(declaration.Type).ToTestDisplayString()); 5225Assert.Null(model.GetAliasInfo(declarations[0].Type)); 5243Assert.Null(model.GetAliasInfo(declarations[1].Type)); 5257Assert.Null(model.GetAliasInfo(declarations[2].Type)); 5369Assert.Null(model.GetAliasInfo(declarations[0].Type)); 5387Assert.Null(model.GetAliasInfo(declarations[1].Type)); 5401Assert.Null(model.GetAliasInfo(declarations[2].Type)); 5506Assert.Null(model.GetAliasInfo(declarations[0].Type)); 5527Assert.Null(model.GetAliasInfo(declarations[1].Type)); 5544Assert.Null(model.GetAliasInfo(declarations[2].Type)); 5693Assert.Null(model.GetAliasInfo(declarations[0].Type)); 5707Assert.Null(model.GetAliasInfo(declarations[1].Type)); 5803Assert.Null(model.GetAliasInfo(declarations[0].Type)); 5817Assert.Null(model.GetAliasInfo(declarations[1].Type)); 5906Assert.Null(model.GetAliasInfo(declarations[0].Type)); 5923Assert.Null(model.GetAliasInfo(declarations[1].Type));
Semantics\GlobalUsingDirectiveTests.cs (7)
4246Assert.Equal("alias1=C1", model.GetAliasInfo(node.Type).ToTestDisplayString()); 4254Assert.Equal("alias1=C1", model.GetAliasInfo(node.Type).ToTestDisplayString()); 4282Assert.Equal("alias1=C1", model.GetAliasInfo(node.Type).ToTestDisplayString()); 4290Assert.Equal("alias1=C1", model.GetAliasInfo(node.Type).ToTestDisplayString()); 4298Assert.Equal("alias1=C1", model.GetAliasInfo(node.Type).ToTestDisplayString()); 4306Assert.Equal("alias1=C1", model.GetAliasInfo(node.Type).ToTestDisplayString()); 4318Assert.Equal("alias1=C3", model.GetAliasInfo(node.Type).ToTestDisplayString());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Compilation\SemanticModelAPITests.cs (1)
2902var symbol = speculativeModel.GetAliasInfo(speculatedAliasName);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
Simplification\CSharpSimplificationService.Expander.cs (1)
457var aliasInfo = _semanticModel.GetAliasInfo(originalSimpleName, _cancellationToken);
Simplification\Simplifiers\NameSimplifier.cs (1)
232var aliasInfo = semanticModel.GetAliasInfo(name, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\TypeSyntaxExtensions.cs (1)
33if (semanticModel.GetAliasInfo(typeSyntax) != null)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\GetExtendedSemanticInfoTests.vb (1)
8530Dim mG = DirectCast(model, SemanticModel).GetAliasInfo(SLDeclaration)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Simplification\Simplifiers\NameSimplifier.vb (2)
150Dim aliasInfo = semanticModel.GetAliasInfo(name, cancellationToken) 363Dim aliasSymbol = semanticModel.GetAliasInfo(name, cancellationToken)
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\FindReferences\FindReferenceCache.cs (1)
105return SemanticModel.GetAliasInfo(token.GetRequiredParent(), cancellationToken);
Shared\Extensions\SemanticModelExtensions.cs (1)
111aliasSymbol = semanticModel.GetAliasInfo(tokenParent, cancellationToken);