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