5 references to GetDeclaredSymbol
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\TopLevelStatementsTests.cs (4)
237
Assert.Same(declSymbol.ContainingSymbol, model1.
GetDeclaredSymbol
(unit1));
321
var refMethod = model1.
GetDeclaredSymbol
(unit1);
357
var declMethod = model2.
GetDeclaredSymbol
(unit2);
1881
Assert.Null(model2.
GetDeclaredSymbol
((CompilationUnitSyntax)tree2.GetRoot()));
System.Text.RegularExpressions.Generator (1)
UpgradeToGeneratedRegexCodeFixer.cs (1)
111
semanticModel.
GetDeclaredSymbol
((CompilationUnitSyntax)typeDeclarationOrCompilationUnit, cancellationToken)?.ContainingType;