relay-knowledge 1.1.9

Graph-database-based knowledge graph project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub(in crate::code::parser) fn definition_kind(node_kind: &str) -> Option<&'static str> {
    match node_kind {
        "function_item" => Some("function"),
        "struct_item" | "enum_item" => Some("class"),
        "trait_item" => Some("interface"),
        "type_item" => Some("type"),
        _ => None,
    }
}

pub(in crate::code::parser) fn is_call_node(node_kind: &str) -> bool {
    node_kind == "call_expression"
}