29 references to GetDeclaration
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
448node = generator.GetDeclaration(node.Parent);
Microsoft.CodeAnalysis.Analyzers (3)
FixAnalyzers\FixerWithFixAllAnalyzer.Fixer.cs (1)
46var classDecl = generator.GetDeclaration(token.Parent);
MetaAnalyzers\Fixers\ApplyDiagnosticAnalyzerAttributeFix.cs (1)
30var classDecl = generator.GetDeclaration(token.Parent);
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
448node = generator.GetDeclaration(node.Parent);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
2282var container = GetDeclaration(existingNode.Parent);
Microsoft.CodeAnalysis.Features (4)
PullMemberUp\MembersPuller.cs (4)
131originalMemberEditor.RemoveNode(originalMemberEditor.Generator.GetDeclaration(declaration)); 232var declaration = editor.Generator.GetDeclaration(eventDeclaration); 342originalMemberEditor.RemoveNode(originalMemberEditor.Generator.GetDeclaration(syntax)); 346var declarationSyntax = originalMemberEditor.Generator.GetDeclaration(syntax);
Microsoft.CodeAnalysis.NetAnalyzers (18)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EquatableAnalyzer.Fixer.cs (1)
40declaration = generator.GetDeclaration(declaration);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\InterfaceMethodsShouldBeCallableByChildTypes.Fixer.cs (1)
49SyntaxNode? declaration = generator.GetDeclaration(nodeToFix);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverloadOperatorEqualsOnOverridingValueTypeEquals.Fixer.cs (1)
31declaration = generator.GetDeclaration(declaration);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsAndOperatorEqualsOnValueTypes.Fixer.cs (1)
36SyntaxNode? declaration = generator.GetDeclaration(enclosingNode);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideEqualsOnOverloadingOperatorEquals.Fixer.cs (1)
30typeDeclaration = SyntaxGenerator.GetGenerator(context.Document).GetDeclaration(typeDeclaration);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideGetHashCodeOnOverridingEquals.Fixer.cs (1)
30typeDeclaration = SyntaxGenerator.GetGenerator(context.Document).GetDeclaration(typeDeclaration);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OverrideMethodsOnComparableTypes.Fixer.cs (1)
28declaration = generator.GetDeclaration(declaration);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\TypesThatOwnDisposableFieldsShouldBeDisposable.Fixer.cs (2)
32declaration = generator.GetDeclaration(declaration); 67if (generator.GetDeclaration(memberPartNode) is not SyntaxNode disposeDeclaration ||
Microsoft.CodeQuality.Analyzers\Maintainability\AvoidUnusedPrivateFields.Fixer.cs (1)
54if (editor.Generator.GetDeclaration(node) is not SyntaxNode declaration)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\RemoveEmptyFinalizers.Fixer.cs (1)
47if (editor.Generator.GetDeclaration(node) is not SyntaxNode declaration)
Microsoft.CodeQuality.Analyzers\QualityGuidelines\SealMethodsThatSatisfyPrivateInterfaces.Fixer.cs (1)
40var declarationNode = gen.GetDeclaration(root.FindToken(dx.Location.SourceSpan.Start).Parent);
Microsoft.NetCore.Analyzers\InteropServices\DynamicInterfaceCastableImplementation.Fixer.cs (1)
34SyntaxNode? declaration = generator.GetDeclaration(enclosingNode);
Microsoft.NetCore.Analyzers\InteropServices\ProvidePublicParameterlessSafeHandleConstructor.Fixer.cs (1)
33SyntaxNode? declaration = generator.GetDeclaration(enclosingNode);
Microsoft.NetCore.Analyzers\Runtime\AvoidConstArrays.Fixer.cs (1)
120if (generator.GetDeclaration(lastFieldOrPropertyNode) is not SyntaxNode lastFieldOrPropertyDeclaration)
Microsoft.NetCore.Analyzers\Runtime\AvoidUnsealedAttributes.Fixer.cs (1)
28SyntaxNode? declaration = editor.Generator.GetDeclaration(node);
Microsoft.NetCore.Analyzers\Runtime\MarkISerializableTypesWithSerializable.Fixer.cs (1)
30node = generator.GetDeclaration(node);
src\sdk\src\Microsoft.CodeAnalysis.NetAnalyzers\src\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
453node = generator.GetDeclaration(node.Parent);
Microsoft.CodeAnalysis.Workspaces (1)
Editing\SymbolEditor.cs (1)
196.Select(n => SyntaxGenerator.GetGenerator(OriginalSolution.Workspace, n.Language).GetDeclaration(n))
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\RoslynAnalyzers\Utilities\Workspaces\SyntaxGeneratorExtensions.cs (1)
448node = generator.GetDeclaration(node.Parent);