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

Method put_opt

codegraph-kernel/src/buffers.rs:158–163  ·  view source on GitHub ↗
(&mut self, s: Option<&str>)

Source from the content-addressed store, hash-verified

156 /// so the arena API is complete alongside the layout it feeds.
157 #[allow(dead_code)]
158 pub fn put_opt(&mut self, s: Option<&str>) -> StrRef {
159 match s {
160 Some(s) => self.put(s),
161 None => NONE_STR,
162 }
163 }
164
165 /// NUL-joined list; absent when the list is empty. (R2 surface: decorators,
166 /// typeParameters, candidates.)

Callers

nothing calls this directly

Calls 1

putMethod · 0.65

Tested by

no test coverage detected