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

Function edge_kind_index

codegraph-kernel/src/buffers.rs:131–133  ·  view source on GitHub ↗
(kind: &str)

Source from the content-addressed store, hash-verified

129}
130
131pub fn edge_kind_index(kind: &str) -> Option<u8> {
132 EDGE_KINDS.iter().position(|k| *k == kind).map(|i| i as u8)
133}
134
135/// (offset, len) arena reference. `NONE_STR` encodes an absent field.
136pub type StrRef = (u32, u32);

Callers 15

push_refMethod · 0.85
create_nodeMethod · 0.85
extract_methodMethod · 0.85
extract_importMethod · 0.85
extract_callMethod · 0.85
extract_inheritanceMethod · 0.85
consider_decoratorMethod · 0.85
flush_value_refsMethod · 0.85
push_ref_atMethod · 0.85
create_nodeMethod · 0.85
push_refMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected