- 
                Notifications
    You must be signed in to change notification settings 
- Fork 4.2k
Breaking out refactoring helpers into core api vs service #79012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking out refactoring helpers into core api vs service #79012
Conversation
| @tmat ptal. | 
| protected override IHeaderFacts HeaderFacts => CSharpHeaderFacts.Instance; | ||
| protected override ISyntaxFacts SyntaxFacts => CSharpSyntaxFacts.Instance; | ||
|  | ||
| public override bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration) | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all teh logic below here is a move.
|  | ||
| public abstract bool IsBetweenTypeMembers(SourceText sourceText, SyntaxNode root, int position, [NotNullWhen(true)] out SyntaxNode? typeDeclaration); | ||
|  | ||
| private static void AddNode<TSyntaxNode>(bool allowEmptyNodes, ref TemporaryArray<TSyntaxNode> result, TSyntaxNode node) where TSyntaxNode : SyntaxNode | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all the logic below here is a move.
        
          
                src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/CSharpCompilerExtensions.projitems
              
                Outdated
          
            Show resolved
            Hide resolved
        
      | <ItemGroup Condition="'$(DefaultLanguageSourceExtension)' != '' AND '$(BuildingInsideVisualStudio)' != 'true'"> | ||
| <ExpectedCompile Include="$(MSBuildThisFileDirectory)**\*$(DefaultLanguageSourceExtension)" /> | ||
| </ItemGroup> | ||
| <ItemGroup> | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be necessary
        
          
                ...ilitiesAndExtensions/Compiler/CSharp/Services/RefactoringHelpers/CSharpRefactoringHelpers.cs
          
            Show resolved
            Hide resolved
        
      | /// </summary> | ||
| void AddRelevantNodes<TSyntaxNode>( | ||
| ParsedDocument document, TextSpan selection, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode; | ||
| internal static class IRefactoringHelpersServiceExtensions | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't seem that useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this keeps source compat, making it less painful to move over :)
        
          
                src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/CSharpCompilerExtensions.projitems
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …harpCompilerExtensions.projitems
…i/roslyn into refactoringHelpers
        
          
                src/Workspaces/SharedUtilitiesAndExtensions/Compiler/CSharp/CSharpCompilerExtensions.projitems
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …harpCompilerExtensions.projitems
        
          
                src/Workspaces/SharedUtilitiesAndExtensions/Compiler/Core/CompilerExtensions.projitems
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …ilerExtensions.projitems
        
          
                ...es/SharedUtilitiesAndExtensions/Compiler/VisualBasic/VisualBasicCompilerExtensions.projitems
              
                Outdated
          
            Show resolved
            Hide resolved
        
      …ic/VisualBasicCompilerExtensions.projitems
No description provided.