Home / Function/ parseConstructor() — supabase Function Reference

parseConstructor() — supabase Function Reference

Architecture documentation for the parseConstructor() function in Reference.typeSpec.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  a8ccd878_c279_c6e4_8b08_0e89492f323d["parseConstructor()"]
  f6b7a4fb_ecfd_92ba_efea_5ac203d49fe1["parseModInternal()"]
  f6b7a4fb_ecfd_92ba_efea_5ac203d49fe1 -->|calls| a8ccd878_c279_c6e4_8b08_0e89492f323d
  5ce7acd2_fc0d_b1ca_6967_c68fc4ef2fb3["buildRefPath()"]
  a8ccd878_c279_c6e4_8b08_0e89492f323d -->|calls| 5ce7acd2_fc0d_b1ca_6967_c68fc4ef2fb3
  0ebbf781_9122_475b_4149_017f2ce9e2eb["parseSignature()"]
  a8ccd878_c279_c6e4_8b08_0e89492f323d -->|calls| 0ebbf781_9122_475b_4149_017f2ce9e2eb
  style a8ccd878_c279_c6e4_8b08_0e89492f323d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/features/docs/Reference.typeSpec.ts lines 456–477

function parseConstructor(
  node: any,
  map: Map<number, any>,
  currentPath: Array<string>,
  res: ModuleTypes
) {
  const $ref = buildRefPath([...currentPath, 'constructor'])

  const signature = node.signatures[0]
  if (!signature) return

  const { params, ret, comment } = parseSignature(signature, map)

  const types: MethodTypes = {
    name: $ref,
    params,
    ret,
    comment,
  }

  res.methods.set($ref, types)
}

Subdomains

Called By

Frequently Asked Questions

What does parseConstructor() do?
parseConstructor() is a function in the supabase codebase.
What does parseConstructor() call?
parseConstructor() calls 2 function(s): buildRefPath, parseSignature.
What calls parseConstructor()?
parseConstructor() 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