Home / Function/ parseMethod() — supabase Function Reference

parseMethod() — supabase Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

apps/docs/features/docs/Reference.typeSpec.ts lines 479–506

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

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

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

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

  if (node.signatures.length > 1) {
    types.altSignatures = node.signatures
      .slice(1)
      .map((signature) => parseSignature(signature, map))
  }

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

Subdomains

Called By

Frequently Asked Questions

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