public static void ComputeRefactoring(RefactoringContext context, InterfaceDeclarationSyntax interfaceDeclaration) { if (MemberDeclarationSelection.TryCreate(interfaceDeclaration, context.Span, out MemberDeclarationSelection selectedMembers)) { ComputeRefactoring(context, selectedMembers); } }
public static void ComputeRefactoring(RefactoringContext context, StructDeclarationSyntax structDeclaration) { MemberDeclarationSelection selectedMembers; if (MemberDeclarationSelection.TryCreate(structDeclaration, context.Span, out selectedMembers)) { ComputeRefactoring(context, selectedMembers); } }
public static void ComputeRefactoring(RefactoringContext context, ClassDeclarationSyntax classDeclaration) { if (!MemberDeclarationSelection.TryCreate(classDeclaration, context.Span, out MemberDeclarationSelection selectedMembers)) { return; } ComputeRefactoring(context, selectedMembers); }