MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / arrow_dot_no_ws

Function arrow_dot_no_ws

codegraph-kernel/src/ccpp/mod.rs:301–303  ·  view source on GitHub ↗

JS `String.replace(/->/g,'.').replace(/\s+/g,'')` used on receivers.

(s: &str)

Source from the content-addressed store, hash-verified

299
300/// JS `String.replace(/->/g,'.').replace(/\s+/g,'')` used on receivers.
301fn arrow_dot_no_ws(s: &str) -> String {
302 s.replace("->", ".").chars().filter(|c| !c.is_whitespace()).collect()
303}
304
305#[derive(Clone, Copy, PartialEq, Eq)]
306pub enum Variant {

Callers 1

extract_callMethod · 0.85

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected