parseMod() — supabase Function Reference
Architecture documentation for the parseMod() function in Reference.typeSpec.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD b960cff3_9820_d19a_a18b_203c3d139c93["parseMod()"] a35422c1_171a_8187_d7ed_a0850c196a69["buildMap()"] b960cff3_9820_d19a_a18b_203c3d139c93 -->|calls| a35422c1_171a_8187_d7ed_a0850c196a69 f6b7a4fb_ecfd_92ba_efea_5ac203d49fe1["parseModInternal()"] b960cff3_9820_d19a_a18b_203c3d139c93 -->|calls| f6b7a4fb_ecfd_92ba_efea_5ac203d49fe1 style b960cff3_9820_d19a_a18b_203c3d139c93 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Reference.typeSpec.ts lines 296–311
function parseMod(mod: (typeof typeSpec)['children'][number]) {
const res: ModuleTypes = {
name: mod.name,
methods: new Map(),
variables: new Map(),
}
// Build a map of nodes by their IDs for easy cross-referencing.
const targetMap = new Map<number, any>()
buildMap(mod, targetMap)
const processingRefs = new Set<number>()
parseModInternal(mod, targetMap, [], res, processingRefs)
return res
}
Domain
Subdomains
Source
Frequently Asked Questions
What does parseMod() do?
parseMod() is a function in the supabase codebase.
What does parseMod() call?
parseMod() calls 2 function(s): buildMap, parseModInternal.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free