()
| 27 | const MAX_VALUE_REF_NODES: usize = 20_000; |
| 28 | |
| 29 | fn receiver_re() -> &'static Regex { |
| 30 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 31 | RE.get_or_init(|| Regex::new(r"\(\s*(?:[A-Za-z_]\w*\s+)?\*?\s*([A-Za-z_]\w*)").unwrap()) |
| 32 | } |
| 33 | fn simple_ident_re() -> &'static Regex { |
| 34 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 35 | RE.get_or_init(|| Regex::new(r"^[A-Za-z_]\w*$").unwrap()) |
no test coverage detected