示例#1
0
 public static void ComputeRefactoring(RefactoringContext context, InterfaceDeclarationSyntax interfaceDeclaration)
 {
     if (MemberDeclarationSelection.TryCreate(interfaceDeclaration, context.Span, out MemberDeclarationSelection selectedMembers))
     {
         ComputeRefactoring(context, selectedMembers);
     }
 }
示例#2
0
        public static void ComputeRefactoring(RefactoringContext context, StructDeclarationSyntax structDeclaration)
        {
            MemberDeclarationSelection selectedMembers;

            if (MemberDeclarationSelection.TryCreate(structDeclaration, context.Span, out selectedMembers))
            {
                ComputeRefactoring(context, selectedMembers);
            }
        }
示例#3
0
        public static void ComputeRefactoring(RefactoringContext context, ClassDeclarationSyntax classDeclaration)
        {
            if (!MemberDeclarationSelection.TryCreate(classDeclaration, context.Span, out MemberDeclarationSelection selectedMembers))
            {
                return;
            }

            ComputeRefactoring(context, selectedMembers);
        }