compileMatcher compiles the selector string s and returns the corresponding Matcher. If s is an invalid selector string, it returns a Matcher that fails all matches.
(s string)
| 164 | // the corresponding Matcher. If s is an invalid selector string, |
| 165 | // it returns a Matcher that fails all matches. |
| 166 | func compileMatcher(s string) Matcher { |
| 167 | cs, err := cascadia.Compile(s) |
| 168 | if err != nil { |
| 169 | return invalidMatcher{} |
| 170 | } |
| 171 | return cs |
| 172 | } |
| 173 | |
| 174 | type singleMatcher struct { |
| 175 | Matcher |
no outgoing calls
no test coverage detected
searching dependent graphs…