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

Function node_kind_index

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

Source from the content-addressed store, hash-verified

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

positionMethod · 0.80

Tested by

no test coverage detected