-
Notifications
You must be signed in to change notification settings - Fork 31
refactor: remove base module and flatten module hierarchy #1583
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR refactors the project by removing the legacy “base” modules and flattening the module hierarchy, simplifying import paths throughout the codebase.
- Updated import paths across multiple files by replacing references to "segments::base::ErasedSegment" with "segments::ErasedSegment".
- Removed the legacy "base" modules (in both parser/grammar and dialects), consolidating their functionality into the updated module structure.
Reviewed Changes
Copilot reviewed 153 out of 153 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
crates/lib-core/src/parser/node_matcher.rs | Updated import path for ErasedSegment to reflect the new module structure. |
crates/lib-core/src/parser/matchable.rs | Updated import paths for grammar and segments. |
crates/lib-core/src/dialects/base.rs | Removed file as part of the module flattening refactor. |
crates/lib-core/src/dialects.rs | Adjusted module contents to consolidate dialect functionality. |
(Other parser and grammar files) | Similar updates to remove references to the "base" submodule. |
Comments suppressed due to low confidence (2)
crates/lib-core/src/dialects/base.rs:1
- The removal of this deprecated base module appears intentional. Please confirm that no remaining components rely on this file and that all dependencies have been updated to reflect the new module structure.
Entire file removed
crates/lib-core/src/parser/node_matcher.rs:7
- The updated import path from 'segments::base::ErasedSegment' to 'segments::ErasedSegment' is consistent with the new module hierarchy. Please verify that all references throughout the codebase now correctly use the flattened structure.
+use crate::parser::segments::ErasedSegment;
6bf2a25
to
8f1a080
Compare
Benchmark for 7466a1aClick to view benchmark
|
Benchmark for b0e17c0Click to view benchmark
|
8f1a080
to
7846400
Compare
Benchmark for 965ba91Click to view benchmark
|
No description provided.