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

Function opt_str

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

Source from the content-addressed store, hash-verified

1806}
1807
1808fn opt_str(arena: &mut Arena, s: Option<&str>) -> StrRef {
1809 match s {
1810 Some(s) => arena.put(s),
1811 None => NONE_STR,
1812 }
1813}
1814
1815// --- expression macros (#3251) ----------------------------------------------
1816//

Callers 1

create_nodeMethod · 0.70

Calls 1

putMethod · 0.65

Tested by

no test coverage detected