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

Function contract_info

codegraph-kernel/src/lib.rs:97–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95
96#[napi]
97pub fn contract_info() -> ContractInfo {
98 ContractInfo {
99 abi_version: buffers::KERNEL_ABI_VERSION as u32,
100 kernel_version: env!("CARGO_PKG_VERSION").to_string(),
101 node_kinds: buffers::NODE_KINDS.iter().map(|s| s.to_string()).collect(),
102 edge_kinds: buffers::EDGE_KINDS.iter().map(|s| s.to_string()).collect(),
103 languages: langs::LANGUAGES.iter().map(|s| s.to_string()).collect(),
104 }
105}
106
107#[napi]
108pub fn grammar_info(language: String) -> Option<GrammarInfo> {

Callers

nothing calls this directly

Calls 2

mapMethod · 0.80
collectMethod · 0.45

Tested by

no test coverage detected