56 references to GetDeclaredSymbol
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (42)
Semantics\AccessCheckTests.cs (2)
743
IAliasSymbol aliasA = model.
GetDeclaredSymbol
(tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().Where(u => u.Alias != null).Single()) as IAliasSymbol;
897
IAliasSymbol SomeAlias = model.
GetDeclaredSymbol
(tree.GetRoot().DescendantNodes().OfType<UsingDirectiveSyntax>().Where(u => u.Alias != null).Single());
Semantics\GlobalUsingDirectiveTests.cs (38)
3854
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3857
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
3860
Assert.Equal("C3", model.
GetDeclaredSymbol
(aliases[2]).Target.ToTestDisplayString());
3863
Assert.Equal("C4", model.
GetDeclaredSymbol
(aliases[3]).Target.ToTestDisplayString());
3880
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3883
Assert.Equal("C3", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
3886
Assert.Equal("C4", model.
GetDeclaredSymbol
(aliases[2]).Target.ToTestDisplayString());
3894
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3911
Assert.Equal("C3", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3914
Assert.Equal("C4", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
3922
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3925
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
3944
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3947
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
3964
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3972
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3994
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
3997
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
4010
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4013
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
4016
Assert.Equal("C3", model.
GetDeclaredSymbol
(aliases[2]).Target.ToTestDisplayString());
4019
Assert.Equal("C4", model.
GetDeclaredSymbol
(aliases[3]).Target.ToTestDisplayString());
4030
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4033
Assert.Equal("C3", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
4036
Assert.Equal("C4", model.
GetDeclaredSymbol
(aliases[2]).Target.ToTestDisplayString());
4044
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4055
Assert.Equal("C3", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4058
Assert.Equal("C4", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
4066
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4069
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
4082
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4085
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
4096
Assert.Equal("C1", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4104
Assert.Equal("C2", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4123
Assert.Equal("C3", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4126
Assert.Equal("C4", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
4155
Assert.Equal("C3", model.
GetDeclaredSymbol
(aliases[0]).Target.ToTestDisplayString());
4158
Assert.Equal("C4", model.
GetDeclaredSymbol
(aliases[1]).Target.ToTestDisplayString());
Semantics\InteractiveUsingTests.cs (2)
89
var aliasSymbol = model.
GetDeclaredSymbol
(syntax);
119
var aliasSymbol = model.
GetDeclaredSymbol
(syntax);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Compilation\SemanticModelAPITests.cs (3)
1234
var symbol = model.
GetDeclaredSymbol
(aliasSyntax);
1342
Assert.Equal(SymbolKind.Alias, model.
GetDeclaredSymbol
(usingSyntax).Kind);
1730
var aliasSymbol = model.
GetDeclaredSymbol
(aliasDecl);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (4)
3926
var alias1 = model.
GetDeclaredSymbol
(usingDirectives[0]);
3930
var alias2 = model.
GetDeclaredSymbol
(usingDirectives[1]);
3937
var alias1b = model.
GetDeclaredSymbol
(usingDirectives[0]);
3941
var alias2b = model.
GetDeclaredSymbol
(usingDirectives[1]);
DocumentationComments\DocumentationCommentIDTests.cs (1)
32
var symbol = model.
GetDeclaredSymbol
(syntax);
Symbols\Source\ExternAliasTests.cs (1)
494
var usingAliasSymbol = model.
GetDeclaredSymbol
(usingSyntax);
Symbols\Source\UsingAliasTests.cs (5)
278
var alias = model.
GetDeclaredSymbol
(usingAlias);
389
var alias = model.
GetDeclaredSymbol
(usingAlias);
410
var alias = model.
GetDeclaredSymbol
(usingAlias);
429
var alias = model.
GetDeclaredSymbol
(usingAlias);
524
var alias = comp.GetSemanticModel(syntaxTree).
GetDeclaredSymbol
(usingAlias);