Skip to Content

mergeASTIntoRegistry

function mergeASTIntoRegistry(astResults: AstMethodResult[]): void

Rules

  • For each AST row computing fnKey as className + . + fnName, skip when the registry has no such key.
  • When paramsFromAst is non-empty, replace RegistryEntry.params.
  • When declaredReturnFromAst is defined, replace declaredReturn.
  • Label tables (returns, errors, apiResponses) get type + resolved status when AST supplies matching labels discovered at registration time.

When to call

Usually invoked from bootstrap immediately after runASTScanner. Standalone tools can call it manually after populating the registry.

See also