13 references to GetDeclaredSymbol
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
CSharpTypeInferenceService.TypeInferrer.cs (1)
2106
return originalSemanticModel.
GetDeclaredSymbol
(declaration, CancellationToken);
Microsoft.CodeAnalysis.CSharp.Features (2)
CodeRefactorings\ConvertLocalFunctionToMethod\CSharpConvertLocalFunctionToMethodCodeRefactoringProvider.cs (1)
116
var containerSymbol = semanticModel.
GetDeclaredSymbol
(container, cancellationToken);
Completion\CompletionProviders\XmlDocCommentCompletionProvider.cs (1)
75
declaredSymbol = semanticModel.
GetDeclaredSymbol
(memberDeclaration, cancellationToken);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (9)
Compilation\GetSemanticInfoTests.cs (2)
5405
var type = (INamedTypeSymbol)model.
GetDeclaredSymbol
(root.Members[0]);
5417
type = (INamedTypeSymbol)model.
GetDeclaredSymbol
(root.Members[1]);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (6)
81
var symbol = model.
GetDeclaredSymbol
(decl);
127
var symbol = model.
GetDeclaredSymbol
(cdns);
411
Assert.Null(model.
GetDeclaredSymbol
(eventDecl)); // the event decl may have multiple variable declarators, the result for GetDeclaredSymbol will always be null
953
Assert.Null(model.
GetDeclaredSymbol
(fieldDecl));
2976
var dsyma2 = model.
GetDeclaredSymbol
(node1.Members[1]);
3642
var symbol = model.
GetDeclaredSymbol
(enumMemberDecl);
Symbols\CompilationCreationTests.cs (1)
55
var types = expectedSyntaxTrees.Select(tree => compilation.GetSemanticModel(tree).
GetDeclaredSymbol
(tree.GetCompilationUnitRoot().Members.Single())).ToArray();
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CSharpTypeInferenceService.TypeInferrer.cs (1)
2106
return originalSemanticModel.
GetDeclaredSymbol
(declaration, CancellationToken);