Skip to content

Conversation

@CyrusNajmabadi
Copy link
Member

No description provided.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner June 17, 2025 18:25
@CyrusNajmabadi CyrusNajmabadi requested a review from tmat June 17, 2025 18:27
@CyrusNajmabadi
Copy link
Member Author

@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)
Copy link
Member Author

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
Copy link
Member Author

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.

<ItemGroup Condition="'$(DefaultLanguageSourceExtension)' != '' AND '$(BuildingInsideVisualStudio)' != 'true'">
<ExpectedCompile Include="$(MSBuildThisFileDirectory)**\*$(DefaultLanguageSourceExtension)" />
</ItemGroup>
<ItemGroup>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't be necessary

/// </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
Copy link
Member

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.

Copy link
Member Author

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 :)

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge June 17, 2025 18:47
@CyrusNajmabadi CyrusNajmabadi merged commit 3942a17 into dotnet:main Jun 17, 2025
25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the refactoringHelpers branch June 17, 2025 20:22
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jun 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants