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

Function opt_str

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

Source from the content-addressed store, hash-verified

1494}
1495
1496fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
1497 match s {
1498 Some(s) => arena.put(s),
1499 None => NONE_STR,
1500 }
1501}
1502
1503// --- a local that shadows the function a value names (#2596) ---------------------
1504

Callers 1

create_nodeMethod · 0.70

Calls 1

putMethod · 0.65

Tested by

no test coverage detected