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

Function node_kind_index

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

Source from the content-addressed store, hash-verified

125pub const REF_FLAG_FILE_PATH: u8 = 1;
126
127pub fn node_kind_index(kind: &str) -> Option<u8> {
128 NODE_KINDS.iter().position(|k| *k == kind).map(|i| i as u8)
129}
130
131pub fn edge_kind_index(kind: &str) -> Option<u8> {
132 EDGE_KINDS.iter().position(|k| *k == kind).map(|i| i as u8)

Callers 15

extractFunction · 0.85
create_nodeMethod · 0.85
extractFunction · 0.85
create_nodeMethod · 0.85
extractFunction · 0.85
create_nodeMethod · 0.85
extractFunction · 0.85
create_nodeMethod · 0.85
extractFunction · 0.85
create_nodeMethod · 0.85
extractFunction · 0.85
create_nodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected