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

Function opt_str

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

Source from the content-addressed store, hash-verified

1707}
1708
1709fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
1710 match s {
1711 Some(s) => arena.put(s),
1712 None => NONE_STR,
1713 }
1714}

Callers 1

create_nodeMethod · 0.70

Calls 1

putMethod · 0.65

Tested by

no test coverage detected