parseVariable() — supabase Function Reference
Architecture documentation for the parseVariable() function in Reference.typeSpec.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD ba929624_b9f4_b767_ce03_d9523a729ce8["parseVariable()"] f6b7a4fb_ecfd_92ba_efea_5ac203d49fe1["parseModInternal()"] f6b7a4fb_ecfd_92ba_efea_5ac203d49fe1 -->|calls| ba929624_b9f4_b767_ce03_d9523a729ce8 5ce7acd2_fc0d_b1ca_6967_c68fc4ef2fb3["buildRefPath()"] ba929624_b9f4_b767_ce03_d9523a729ce8 -->|calls| 5ce7acd2_fc0d_b1ca_6967_c68fc4ef2fb3 ba4cce53_051e_d69f_25a4_55d567b053b3["parseType()"] ba929624_b9f4_b767_ce03_d9523a729ce8 -->|calls| ba4cce53_051e_d69f_25a4_55d567b053b3 95c1d699_db8a_dd96_1436_bf88ec23669b["normalizeComment()"] ba929624_b9f4_b767_ce03_d9523a729ce8 -->|calls| 95c1d699_db8a_dd96_1436_bf88ec23669b style ba929624_b9f4_b767_ce03_d9523a729ce8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/features/docs/Reference.typeSpec.ts lines 508–527
function parseVariable(
node: any,
map: Map<number, any>,
currentPath: Array<string>,
res: ModuleTypes
) {
const $ref = buildRefPath([...currentPath, node.name])
const type = parseType(node.type, map)
const comment = node.comment ? normalizeComment(node.comment) : undefined
const types: VariableTypes = {
name: $ref,
type,
comment,
isConst: node.flags?.isConst ?? false,
}
res.variables.set($ref, types)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does parseVariable() do?
parseVariable() is a function in the supabase codebase.
What does parseVariable() call?
parseVariable() calls 3 function(s): buildRefPath, normalizeComment, parseType.
What calls parseVariable()?
parseVariable() is called by 1 function(s): parseModInternal.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free