Skip to content
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

Group type parameters into CmdCtxTypes. #177

Merged
merged 67 commits into from
Jan 28, 2024

Conversation

azriel91
Copy link
Owner

Closes #166.

Commands:

```bash
sd -s "E, PKeys" "CmdCtxTypeParamsT" $(fd -Ftf '.rs')
sd -s "E, O, PKeys" "CmdCtxTypeParamsT" $(fd -Ftf '.rs')
sd -s "&'ctx mut O" "&'ctx mut CmdCtxTypeParamsT::Output" $(fd -Ftf '.rs')
sd -s '&mut O' '&mut CmdCtxTypeParamsT::Output' $(fd -Ftf '.rs')
sd -s 'Flow<E>' 'Flow<CmdCtxTypeParamsT::AppError>' $(fd -Ftf '.rs')
sd -s 'ParamsTypeRegs<PKeys>' 'ParamsTypeRegs<CmdCtxTypeParamsT::ParamsKeys>' $(fd -Ftf '.rs')
sd -s 'Error = CmdCtxTypeParamsT = PKeys' 'CmdCtxTypeParamsT' $(fd -Ftf '.rs')
sd -s "E, PKeys" "CmdCtxTypeParamsT" $(fd -Ftf '.rs')
grs -- examples crate/rt_model/src/flow.rs crate/rt_model_core/src/params/params_type_regs.rs
sd -s "E, O>" "CmdCtxTypeParamsT>" $(fd -Ftf '.rs')
cargo fmt --all
```
…ypeParams` within `CmdBlock` trait."

This reverts commit 68e663f8969917ce118432e6c3fef9a99becad61.
Copy link

codecov bot commented Jan 28, 2024

Codecov Report

Attention: 45 lines in your changes are missing coverage. Please review.

Comparison is base (47e4871) 93.40% compared to head (4db241a) 93.29%.

Files Patch % Lines
crate/code_gen/src/cmd/type_params_selection.rs 88.88% 8 Missing ⚠️
...md/src/scopes/type_params/flow_params_selection.rs 0.00% 6 Missing ⚠️
...src/scopes/type_params/profile_params_selection.rs 0.00% 6 Missing ⚠️
...src/cmd_blocks/apply_state_sync_check_cmd_block.rs 82.14% 5 Missing ⚠️
crate/cmd/src/scopes/single_profile_no_flow.rs 69.23% 4 Missing ⚠️
crate/cmd/src/scopes/no_profile_no_flow.rs 66.66% 3 Missing ⚠️
...c/scopes/type_params/workspace_params_selection.rs 0.00% 3 Missing ⚠️
crate/code_gen/src/cmd/impl_build.rs 97.88% 3 Missing ⚠️
crate/cmd/src/scopes/single_profile_single_flow.rs 90.47% 2 Missing ⚠️
crate/code_gen/src/cmd/impl_header_builder.rs 99.02% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #177      +/-   ##
==========================================
- Coverage   93.40%   93.29%   -0.11%     
==========================================
  Files         408      394      -14     
  Lines       41690    40234    -1456     
==========================================
- Hits        38939    37535    -1404     
+ Misses       2751     2699      -52     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@azriel91 azriel91 merged commit 87622fd into main Jan 28, 2024
13 checks passed
@azriel91 azriel91 deleted the feature/166/type-parameter-revamp branch January 28, 2024 06:12
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.

Type Parameter Revamp / Simplification
1 participant