12 references to GetDeclaredSymbol
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\QueryTests.cs (1)
2358
var symbols = unknownAccessorDecls.Select(decl => semanticModel.
GetDeclaredSymbol
(decl));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (11)
311
var accessorSymbol = model.
GetDeclaredSymbol
(accessorDecl);
390
Assert.Same(eventSymbol.AddMethod, model.
GetDeclaredSymbol
(accessorList[0]));
391
Assert.Same(eventSymbol.RemoveMethod, model.
GetDeclaredSymbol
(accessorList[1]));
2872
var explicitPropertyGetterSymbol = (IMethodSymbol)model.
GetDeclaredSymbol
(explicitPropertyGetterNode);
2882
var explicitPropertySetterSymbol = (IMethodSymbol)model.
GetDeclaredSymbol
(explicitPropertySetterNode);
3147
var dsym = model.
GetDeclaredSymbol
(accessors.Accessors[0]);
3149
dsym = model.
GetDeclaredSymbol
(accessors.Accessors[1]);
3154
dsym = model.
GetDeclaredSymbol
(accessors.Accessors[0]);
3156
dsym = model.
GetDeclaredSymbol
(accessors.Accessors[1]);
3158
dsym = model.
GetDeclaredSymbol
(accessors.Accessors[2]);
3179
Assert.Null(model.
GetDeclaredSymbol
(accessorDecl));