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

Function opt_str

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

Source from the content-addressed store, hash-verified

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

Callers 1

create_nodeMethod · 0.70

Calls 1

putMethod · 0.65

Tested by

no test coverage detected