61 references to GetAliasInfo
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Semantics\OutVarTests.cs (10)
35133
Assert.Null(model.
GetAliasInfo
(varType)); // crashes
35172
Assert.Null(model.
GetAliasInfo
(varType)); // crashes
35216
Assert.Null(model.
GetAliasInfo
(varType)); // crashes
35247
Assert.Null(model.
GetAliasInfo
(varType)); // crashes
35286
Assert.Null(model.
GetAliasInfo
(varType)); // crashes
35318
Assert.Null(model.
GetAliasInfo
(varType));
35354
Assert.Null(model.
GetAliasInfo
(varType));
35393
Assert.Null(model.
GetAliasInfo
(varType));
35423
Assert.Null(model.
GetAliasInfo
(varType));
35460
Assert.Null(model.
GetAliasInfo
(varType));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (5)
Semantics\ColorColorTests.cs (1)
593
var alias = model.
GetAliasInfo
(expr);
Semantics\LocalFunctionTests.cs (4)
1781
Assert.Null(model.
GetAliasInfo
(a));
1804
Assert.Null(model.
GetAliasInfo
(clsCompliant));
1856
Assert.Null(model.
GetAliasInfo
(a));
1879
Assert.Null(model.
GetAliasInfo
(clsCompliant));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (43)
Compilation\SemanticModelAPITests.cs (13)
1279
Assert.Equal(aliasSymbol, model.
GetAliasInfo
(aliasQualifiedSyntax.Alias));
1312
Assert.Equal(aliasSymbol, model.
GetAliasInfo
(aliasQualifiedSyntax.Alias));
1749
var fieldTypeAliasInfo = model.
GetAliasInfo
(typeSyntax);
4612
return compilation.GetSemanticModel(tree).
GetAliasInfo
(node);
4627
var alias1 = model.
GetAliasInfo
(nodes[0]);
4628
var alias2 = model.
GetAliasInfo
(nodes[1]);
4646
Assert.Null(model.
GetAliasInfo
(identifier));
4663
Assert.Null(model.
GetAliasInfo
(identifier));
4678
Assert.Null(model.
GetAliasInfo
(identifier));
4694
Assert.Null(model.
GetAliasInfo
(identifier));
4710
Assert.Null(model.
GetAliasInfo
(identifier));
4729
Assert.Null(model.
GetAliasInfo
(identifier));
4745
Assert.Null(model.
GetAliasInfo
(identifier));
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (6)
3868
var alias1 = modelWeakReference.UseReference(sm => sm.
GetAliasInfo
(node));
3875
var alias2 = model2.
GetAliasInfo
(node);
4294
var aliasSymbol = speculativeModel.
GetAliasInfo
(attr3.Name as IdentifierNameSyntax);
4340
aliasSymbol = speculativeModel.
GetAliasInfo
(attr6.Name as IdentifierNameSyntax);
4363
aliasSymbol = speculativeModel.
GetAliasInfo
(attr7.Name as IdentifierNameSyntax);
4385
aliasSymbol = speculativeModel.
GetAliasInfo
(attr8.Name as IdentifierNameSyntax);
DocumentationComments\CrefTests.cs (2)
6216
var alias = model.
GetAliasInfo
(crefSyntax.DescendantNodesAndSelf().OfType<IdentifierNameSyntax>().Single());
6249
var alias = model.
GetAliasInfo
(parameterSyntax);
Symbols\GenericConstraintTests.cs (2)
7394
Assert.Null(model.
GetAliasInfo
(nest));
7419
Assert.Null(model.
GetAliasInfo
(nest));
Symbols\Source\ExternAliasTests.cs (1)
362
var alias1 = model.
GetAliasInfo
(qualifier);
Symbols\Source\FileModifierTests.cs (1)
3985
var aliasInfo = model.
GetAliasInfo
(methodNameSyntax);
Symbols\Source\UsingAliasTests.cs (18)
50
var alias1 = model.
GetAliasInfo
((IdentifierNameSyntax)base1);
72
var alias4 = model.
GetAliasInfo
((IdentifierNameSyntax)base4);
110
var alias1 = model.
GetAliasInfo
((IdentifierNameSyntax)base1);
132
var alias4 = model.
GetAliasInfo
((IdentifierNameSyntax)base4);
167
var alias1 = model.
GetAliasInfo
((IdentifierNameSyntax)base1);
187
var alias4 = model.
GetAliasInfo
((IdentifierNameSyntax)base4);
225
var alias1 = model.
GetAliasInfo
((IdentifierNameSyntax)base1);
245
var alias4 = model.
GetAliasInfo
((IdentifierNameSyntax)base4);
546
Assert.Equal(SymbolKind.Alias, model.
GetAliasInfo
(exprSyntaxToBind).Kind);
566
Assert.Equal(SymbolKind.Alias, model.
GetAliasInfo
(exprSyntaxToBind).Kind);
585
Assert.Equal(SymbolKind.Alias, model.
GetAliasInfo
(exprSyntaxToBind).Kind);
586
Assert.Equal("System.Int32[]", model.
GetAliasInfo
(exprSyntaxToBind).Target.ToTestDisplayString());
605
Assert.Equal(SymbolKind.Alias, model.
GetAliasInfo
(exprSyntaxToBind).Kind);
606
Assert.Equal("(System.Int32, System.Int32)", model.
GetAliasInfo
(exprSyntaxToBind).Target.ToTestDisplayString());
629
Assert.Equal("System.Int32?", model.
GetAliasInfo
(exprSyntaxToBind).Target.ToTestDisplayString());
652
Assert.Equal("System.Int32?", model.
GetAliasInfo
(exprSyntaxToBind).Target.ToTestDisplayString());
703
var alias = model.
GetAliasInfo
(node);
746
var alias = model.
GetAliasInfo
(node);
Microsoft.CodeAnalysis.CSharp.Test.Utilities (2)
CompilationTestUtils.cs (1)
293
summary.Alias = semanticModel.
GetAliasInfo
(identifier);
SemanticModelTestBase.cs (1)
158
return model.
GetAliasInfo
(syntaxToBind).GetSymbol();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
138
semanticModel.
GetAliasInfo
((IdentifierNameSyntax)node, cancellationToken) != null)