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