orchestrata_kg.ast_loader

Reference › components › knowledge_graph › orchestrata_kg › ast_loader

The AST loader of orchestrata_kg. codebase_analyzer (1,359 lines) reads a codebase into a codebase_a_s_t, a tree of module_info, class_info, function_info, param_info, import_info, class_var_info, env_access_info and argv_literal_info records, with inheritance_map for base classes. roots is the one reader of the declared AST root set, scope narrows a wide snapshot back to the production package, and serialize converts the dataclass tree to dicts using only the standard library.

15 modules, 1,990 lines of code.

Modules

Module Summary LOC
__has_inheritance_graph 14
argv_literal_info 78
class_info 33
class_var_info 15
codebase_a_s_t 38
codebase_analyzer 1359
env_access_info 37
function_info 33
import_info 54
inheritance_map 101
module_info 35
param_info 15
roots The ONE reader of the declared AST root set. 79
scope Narrowing a wide snapshot back to the production package. 80
serialize Dataclass-tree -> dict serialization for the code AST — stdlib-only. 19

Dependency diagram

Package dependency diagram orchestrata_kg.ast_loader