Skip to content

refactor: remove ExecutionPlan wrapper struct#157

Merged
branchseer merged 2 commits intomainfrom
refactor/remove-execution-plan
Feb 15, 2026
Merged

refactor: remove ExecutionPlan wrapper struct#157
branchseer merged 2 commits intomainfrom
refactor/remove-execution-plan

Conversation

@branchseer
Copy link
Copy Markdown
Member

Summary

  • Remove the ExecutionPlan struct which was a trivial single-field wrapper around ExecutionItemKind that added no value
  • Promote plan_query() and plan_synthetic() to pub free functions in vite_task_plan
  • plan_synthetic() now returns SpawnExecution directly instead of wrapping/unwrapping through ExecutionPlan
  • Move Serialize impl to ExecutionGraph directly, removing the serialize_with indirection on ExecutionItemKind::Expanded
  • Remove unused methods: plan(), is_empty(), root_node(), into_root_node(), from_execution_graph()

ExecutionPlan was a trivial single-field wrapper around ExecutionItemKind
that added no value. Its methods either delegated trivially or were
associated functions that didn't even return Self.

- Promote plan_query() and plan_synthetic() to pub free functions
- plan_synthetic() now returns SpawnExecution directly instead of
  wrapping/unwrapping through ExecutionPlan
- Move Serialize impl to ExecutionGraph directly, removing the
  serialize_with indirection on ExecutionItemKind::Expanded
- Remove unused methods: plan(), is_empty(), root_node(),
  into_root_node(), from_execution_graph()
@branchseer branchseer merged commit 3a631c8 into main Feb 15, 2026
6 checks passed
@branchseer branchseer deleted the refactor/remove-execution-plan branch February 15, 2026 05:26
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.

1 participant