codenib.types
¶
Classes:
| Name | Description |
|---|---|
NodeInfo |
Node attributes for graph nodes. |
QueriedNode |
Node attributes representing ranked nodes that keep optional content. |
Functions:
| Name | Description |
|---|---|
is_symbol_node |
Whether |
node_has_definition |
Whether a symbol vertex has an observed definition location. |
node_is_reference_only |
Whether schema v5 explicitly marks a symbol as reference-only. |
lsp_symbol_kind |
Return the normalized semantic label for an LSP |
normalize_graph_layer |
Normalize and validate a graph layer name. |
edge_types_for_graph_layer |
Return edge types included by a graph layer. |
graph_layers_for_edge_type |
Return every default layer that contains |
NodeInfo
¶
Bases: BaseModel
Node attributes for graph nodes.
is_symbol_node
¶
node_has_definition
¶
Whether a symbol vertex has an observed definition location.
Schema-v5 graphs carry an explicit boolean. The range-based fallback keeps transient graphs built by older in-memory callers usable; persisted v4 graphs are rejected by the schema-version guard before reaching consumers.
Source code in codenib/types.py
node_is_reference_only
¶
lsp_symbol_kind
¶
Return the normalized semantic label for an LSP SymbolKind.
normalize_graph_layer
¶
Normalize and validate a graph layer name.
Source code in codenib/types.py
edge_types_for_graph_layer
¶
Return edge types included by a graph layer.
None means "all edge types currently present in the graph".
graph_layers_for_edge_type
¶
Return every default layer that contains edge_type.