13 references to GetDeclaration
Microsoft.CodeAnalysis.NetAnalyzers (13)
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\DefineAccessorsForAttributeArguments.Fixer.cs (2)
37
SyntaxNode parameter = generator.
GetDeclaration
(node, DeclarationKind.Parameter);
50
SyntaxNode property = generator.
GetDeclaration
(node, DeclarationKind.Property);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\EnumStorageShouldBeInt32.Fixer.cs (1)
54
var enumDeclarationNode = generator.
GetDeclaration
(node, DeclarationKind.Enum);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\ImplementStandardExceptionConstructors.Fixer.cs (1)
63
SyntaxNode targetNode = editor.Generator.
GetDeclaration
(node, DeclarationKind.Class);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\OperatorOverloadsHaveNamedAlternates.Fixer.cs (5)
56
SyntaxNode methodDeclaration = generator.
GetDeclaration
(node, DeclarationKind.Operator) ?? generator.
GetDeclaration
(node, DeclarationKind.ConversionOperator);
63
SyntaxNode typeDeclaration = generator.
GetDeclaration
(typeDeclarationSyntax,
114
SyntaxNode badVisibilityNode = generator.
GetDeclaration
(node, DeclarationKind.Method) ?? generator.
GetDeclaration
(node, DeclarationKind.Property);
Microsoft.CodeQuality.Analyzers\ApiDesignGuidelines\UriParametersShouldNotBeStrings.Fixer.cs (3)
59
var methodNode = generator.
GetDeclaration
(parameter, DeclarationKind.Method);
66
var targetNode = generator.
GetDeclaration
(parameter, DeclarationKind.Class) ?? generator.
GetDeclaration
(parameter, DeclarationKind.Struct);
Microsoft.CodeQuality.Analyzers\QualityGuidelines\UseLiteralsWhereAppropriate.Fixer.cs (1)
34
declaration = SyntaxGenerator.GetGenerator(context.Document).
GetDeclaration
(declaration, DeclarationKind.Field);