diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-06-29 14:12:24 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-06-29 14:12:24 +0800 |
| commit | 2fa18e2190fb3c17892e13cb06d330e707dc05ec (patch) | |
| tree | 9a8a64565ee98a84c64c8677951df94bf3aa7176 /mingling_pathf/test/src/test_files/test_dispatcher_dispatch_tree.rs | |
| parent | faae53e760743971c43800f6e6bc2fcbaec582b7 (diff) | |
feat(pathf): add dispatch tree config and pass feature to analyzer
Add `PathfinderConfig` struct to control dispatch tree extraction,
and wire `use_dispatch_tree` through `DispatcherPattern`,
`init_with_config`,
and `analyze_and_build_type_mapping_for`. Expose config and wrapper
from `mingling_core` under the `pathf` feature.
Diffstat (limited to 'mingling_pathf/test/src/test_files/test_dispatcher_dispatch_tree.rs')
| -rw-r--r-- | mingling_pathf/test/src/test_files/test_dispatcher_dispatch_tree.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mingling_pathf/test/src/test_files/test_dispatcher_dispatch_tree.rs b/mingling_pathf/test/src/test_files/test_dispatcher_dispatch_tree.rs new file mode 100644 index 0000000..ac321ca --- /dev/null +++ b/mingling_pathf/test/src/test_files/test_dispatcher_dispatch_tree.rs @@ -0,0 +1,7 @@ +mingling::macros::dispatcher!("greet", CMDGreet => EntryGreet); +dispatcher!("delete", CMDDelete => EntryDelete); + +pub mod sub { + mingling::macros::dispatcher!("greet", CMDGreet => EntryGreet); + dispatcher!("delete", CMDDelete => EntryDelete); +} |
