MCPcopy Create free account
hub / github.com/csskit/csskit / build_manual_impl_matcher

Function build_manual_impl_matcher

crates/csskit_source_finder/src/lib.rs:124–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122}
123
124fn build_manual_impl_matcher() -> RegexMatcher {
125 RegexMatcherBuilder::new()
126 .multi_line(true)
127 .ignore_whitespace(true)
128 .build(
129 r#"
130 # Match manual impl VisitableTrait for Type
131 impl\s*(?:<[^>]+>\s*)?
132 VisitableTrait\s+for\s+
133 # Capture the type name with optional generics
134 (\w+)(?:<[^>]+>)?"#,
135 )
136 .unwrap()
137}
138
139pub struct ManualImplMatcher<'a> {
140 matcher: &'a RegexMatcher,

Callers 1

find_visitable_nodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected