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

Function arrow_dot_no_ws

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

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

(s: &str)

Source from the content-addressed store, hash-verified

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

Callers 1

extract_callMethod · 0.85

Calls 1

collectMethod · 0.45

Tested by

no test coverage detected