Skip to content

refactor: drop the pre analysis step#2421

Merged
EagleoutIce merged 2 commits intomainfrom
2420-remove-pre-analysis-step
Apr 1, 2026
Merged

refactor: drop the pre analysis step#2421
EagleoutIce merged 2 commits intomainfrom
2420-remove-pre-analysis-step

Conversation

@EagleoutIce
Copy link
Copy Markdown
Member

No description provided.

@EagleoutIce EagleoutIce linked an issue Apr 1, 2026 that may be closed by this pull request
@EagleoutIce EagleoutIce requested a review from Copilot April 1, 2026 12:47
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR removes the explicit “pre analysis” orchestration step (resolvePreAnalysis) from the analyzer context and updates call sites/tests/documentation accordingly, simplifying context usage by relying on existing lazy resolution behavior in the loading-order and dependency contexts.

Changes:

  • Removed FlowrAnalyzerContext.resolvePreAnalysis() and all known invocations across src and tests.
  • Updated documentation to no longer reference the removed pre-analysis step.
  • Minor cleanup in CLI code (plus one newly introduced direct console log in REPL dataflow command).

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
test/functionality/project/plugin/news-file.test.ts Removes pre-analysis call from test setup.
test/functionality/project/plugin/namespace-file.test.ts Removes pre-analysis call from test setup.
test/functionality/project/plugin/license-file.test.ts Removes pre-analysis call from test setup.
test/functionality/project/plugin/description-file.test.ts Removes pre-analysis call from helper context setup.
src/queries/catalog/files-query/files-query-executor.ts Stops forcing pre-analysis before file queries.
src/project/flowr-analyzer-builder.ts Removes builder-time pre-analysis call (comment now stale).
src/project/context/flowr-analyzer-context.ts Deletes resolvePreAnalysis API and related docs.
src/documentation/wiki-analyzer.ts Removes documentation reference to resolvePreAnalysis.
src/cli/repl/commands/repl-dataflow.ts Adds a console.log of internal memory state in :dataflowsilent.
src/cli/flowr.ts Minor object property shorthand cleanup when calling repl.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cli/repl/commands/repl-dataflow.ts Outdated
Comment thread src/project/flowr-analyzer-builder.ts Outdated
@EagleoutIce EagleoutIce merged commit 9f6792d into main Apr 1, 2026
19 checks passed
@EagleoutIce EagleoutIce deleted the 2420-remove-pre-analysis-step branch April 1, 2026 15:15
@EagleoutIce
Copy link
Copy Markdown
Member Author

This pull request is included in v2.10.2 (see Release v2.10.2 (Pipes, Purrr, Dplyr, NSE, and more :))).

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.

remove pre analysis step

2 participants