13 references to GetDeclaredSymbol
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
CodeGen\CodeGenTupleTest.cs (2)
24269
var xSymbol = model.
GetDeclaredSymbol
(tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().Single());
24332
var xSymbol = model.
GetDeclaredSymbol
(tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().Single());
CodeGen\ForeachTest.cs (1)
1688
var local = (SourceLocalSymbol)model.
GetDeclaredSymbol
(decl).GetSymbol<LocalSymbol>();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\ForEachTests.cs (2)
2886
var localSymbol = model.
GetDeclaredSymbol
(foreachSyntax);
3424
Assert.Null(model.
GetDeclaredSymbol
(node));
Semantics\RefFieldTests.cs (4)
14599
var locals = decls.Select(d => model.
GetDeclaredSymbol
(d).GetSymbol<LocalSymbol>()).ToArray();
15052
var locals = decls.Select(d => model.
GetDeclaredSymbol
(d).GetSymbol<LocalSymbol>()).ToArray();
15078
var locals = decls.Select(d => model.
GetDeclaredSymbol
(d).GetSymbol<LocalSymbol>()).ToArray();
15133
var locals = decls.Select(d => model.
GetDeclaredSymbol
(d).GetSymbol<LocalSymbol>()).ToArray();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Compilation\SemanticModelAPITests.cs (1)
242
Assert.Same(model.
GetDeclaredSymbol
(rxDecl), rxSymbol);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (1)
40
ILocalSymbol rx = model.
GetDeclaredSymbol
(rxDecl);
Symbols\Source\NullablePublicAPITests.cs (2)
2462
var symbol = model.
GetDeclaredSymbol
(foreachStatement);
2510
var symbol = model.
GetDeclaredSymbol
(variable);