MCPcopy Create free account
hub / github.com/hey-api/hey-api / resolve

Method resolve

packages/openapi-python/src/py-dsl/layout/doc.ts:33–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 }
32
33 resolve(): string | undefined {
34 const lines = this._lines.reduce((lines: Array<string>, line: DocLines) => {
35 if (typeof line === 'function') line = line(ctx);
36 for (const l of typeof line === 'string' ? [line] : line) {
37 if (l || l === '') lines.push(l);
38 }
39 return lines;
40 }, []);
41 if (!lines.length) return;
42 return lines.join('\n');
43 }
44
45 override toAst() {
46 // Return a dummy comment node for compliance.

Callers 15

toAstMethod · 0.95
cli.test.tsFile · 0.45
tsdown.config.tsFile · 0.45
getExportsMethod · 0.45
getImportsMethod · 0.45
resolveRuntimeConfigPathFunction · 0.45
$finalizeFunction · 0.45
generateOutputFunction · 0.45
getClientBundlePathsFunction · 0.45
clientFolderAbsolutePathFunction · 0.45
renameFileFunction · 0.45

Calls 2

pushMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected