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

Function opt_str

codegraph-kernel/src/go.rs:1524–1529  ·  view source on GitHub ↗
(arena: &mut Arena, s: Option<&str>)

Source from the content-addressed store, hash-verified

1522}
1523
1524fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
1525 match s {
1526 Some(s) => arena.put(s),
1527 None => NONE_STR,
1528 }
1529}
1530
1531// --- a local that shadows the function a value names (#2596) ---------------------
1532

Callers 1

create_nodeMethod · 0.70

Calls 1

putMethod · 0.65

Tested by

no test coverage detected