Skip to content

refactor: module structure visibility - #382

Merged
DeveloperC286 merged 2 commits into
mainfrom
claude/internal-type-visibility-zckemp
Sep 5, 2026
Merged

refactor: module structure visibility #382
DeveloperC286 merged 2 commits into
mainfrom
claude/internal-type-visibility-zckemp

Conversation

@DeveloperC286

@DeveloperC286 DeveloperC286 commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Close #51

@DeveloperC286 DeveloperC286 changed the title Refactor module structure and flatten visibility hierarchy refactor: module structure visibility Sep 5, 2026
@DeveloperC286
DeveloperC286 force-pushed the claude/internal-type-visibility-zckemp branch from 00f9320 to b7caa92 Compare September 5, 2026 01:28
Remove the redundant `model` module layer from lexical_analysis,
syntax_analysis, and evaluator: token, syntax_tree_node,
expression_precedence, object, and environment now sit directly under
their parent module instead of nested under `::model::`.

Types genuinely used across module boundaries (Token, the
syntax_tree_node types, Object) are now `pub` and re-exported at their
parent module's root, so callers use e.g. `syntax_analysis::Expression`
rather than `syntax_analysis::model::syntax_tree_node::Expression`.
Types and functions that are only used within their own subtree
(ExpressionPrecedence, Environment, and several internal parser/
evaluator helpers) are now `pub(super)` instead of `pub(crate)`.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VM5iqrGYaMJrCTS66HRuJw
Run `make fix-rust-formatting` (cargo fmt with group_imports=StdExternalCrate).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VM5iqrGYaMJrCTS66HRuJw
@DeveloperC286
DeveloperC286 force-pushed the claude/internal-type-visibility-zckemp branch from 26f306e to 1c55e77 Compare September 5, 2026 10:33
@DeveloperC286
DeveloperC286 enabled auto-merge (squash) September 5, 2026 10:34
@DeveloperC286
DeveloperC286 merged commit 8930c9b into main Sep 5, 2026
23 checks passed
@DeveloperC286
DeveloperC286 deleted the claude/internal-type-visibility-zckemp branch September 5, 2026 10:34
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.

private/public module types

2 participants