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