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