mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
Add test cases to `oxc_semantic` that check scope flag behavior. Also contains these tweaks: - fix: allow disabling `with_module` on `SourceType` - refactor: move `SymbolTester` to a separate file - chore: add `Expect` trait & implement it on `SymbolTester`
5 lines
111 B
Rust
5 lines
111 B
Rust
pub trait Expect<P, R> {
|
|
fn expect<F>(self, expectation: F) -> Self
|
|
where
|
|
F: FnOnce(P) -> R;
|
|
}
|