1 write to GetMethodDeclaration
Microsoft.CodeAnalysis.Features (1)
ReplaceMethodWithProperty\IReplaceMethodWithPropertyService.cs (1)
44
GetMethodDeclaration
= getMethodDeclaration;
11 references to GetMethodDeclaration
Microsoft.CodeAnalysis.CSharp.Features (3)
ReplaceMethodWithProperty\CSharpReplaceMethodWithPropertyService.cs (3)
45
if (getAndSetMethods.
GetMethodDeclaration
is not MethodDeclarationSyntax getMethodDeclaration)
117
var getMethodDeclaration = (MethodDeclarationSyntax)getAndSetMethods.
GetMethodDeclaration
;
207
var getMethodDeclaration = getAndSetMethods.
GetMethodDeclaration
as MethodDeclarationSyntax;
Microsoft.CodeAnalysis.Features (2)
ReplaceMethodWithProperty\AbstractReplaceMethodWithPropertyService.cs (2)
47
var getMethodDeclaration = getAndSetMethods.
GetMethodDeclaration
;
49
var finalLeadingTrivia = getAndSetMethods.
GetMethodDeclaration
.GetLeadingTrivia().ToList();
Microsoft.CodeAnalysis.VisualBasic.Features (6)
ReplaceMethodWithProperty\VisualBasicReplaceMethodWithPropertyService.vb (6)
45
Dim getMethodDeclaration = TryCast(getAndSetMethods.
GetMethodDeclaration
, MethodStatementSyntax)
70
Dim getMethodStatement = DirectCast(getAndSetMethods.
GetMethodDeclaration
, MethodStatementSyntax)
86
If getAndSetMethods.
GetMethodDeclaration
.IsParentKind(SyntaxKind.FunctionBlock) Then
89
DirectCast(getAndSetMethods.
GetMethodDeclaration
.Parent, MethodBlockBaseSyntax).Statements)
101
If getAndSetMethods.
GetMethodDeclaration
.IsParentKind(SyntaxKind.FunctionBlock) AndAlso
105
DirectCast(getAndSetMethods.
GetMethodDeclaration
.Parent, MethodBlockBaseSyntax).Statements)