Skip to content

Break up ResolveElement method in DefaultTagHelperResolutionPhase#13007

Merged
chsienki merged 3 commits into
mainfrom
copilot/break-up-resolve-element-method
Apr 13, 2026
Merged

Break up ResolveElement method in DefaultTagHelperResolutionPhase#13007
chsienki merged 3 commits into
mainfrom
copilot/break-up-resolve-element-method

Conversation

Copy link
Copy Markdown

Copilot AI commented Apr 3, 2026

Split the large ResolveElement method in DefaultTagHelperResolutionPhase into
three logical pieces as suggested in the issue:

  1. ResolveElement (orchestrator) - handles early returns and delegates
  2. BuildTagHelperNode - binding validation, node creation, diagnostics, body build
  3. ResolveBodyChildren - resolves ElementOrTagHelperIntermediateNode body children

Pure refactoring, no behavioral changes. All tests pass.

…BodyChildren

Split the large ResolveElement method in DefaultTagHelperResolutionPhase into
three logical pieces as suggested in the issue:

1. ResolveElement (orchestrator) - handles early returns and delegates
2. BuildTagHelperNode - binding validation, node creation, diagnostics, body build
3. ResolveBodyChildren - resolves ElementOrTagHelperIntermediateNode body children

Pure refactoring, no behavioral changes. All tests pass.

Agent-Logs-Url: https://github.com/dotnet/razor/sessions/4e076cca-3076-4662-90a3-f99959390685

Co-authored-by: chsienki <16246502+chsienki@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor ResolveElement method in DefaultTagHelperResolutionPhase Break up ResolveElement method in DefaultTagHelperResolutionPhase Apr 3, 2026
Copilot AI requested a review from chsienki April 3, 2026 01:16
…lve-element-method

# Conflicts:
#	src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/DefaultTagHelperResolutionPhase.cs

Co-authored-by: chsienki <16246502+chsienki@users.noreply.github.com>
@chsienki chsienki marked this pull request as ready for review April 8, 2026 20:28
@chsienki chsienki requested a review from a team as a code owner April 8, 2026 20:28
Copy link
Copy Markdown

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Break up ResolveElement method in DefaultTagHelperResolutionPhase

5 participants