MCPcopy Index your code
hub / github.com/angular/angular / generate

Function generate

packages/compiler-cli/linker/test/file_linker/helpers.ts:13–17  ·  view source on GitHub ↗
(node: ts.Node)

Source from the content-addressed store, hash-verified

11 * A simple helper to render a TS Node as a string.
12 */
13export function generate(node: ts.Node): string {
14 const printer = ts.createPrinter({newLine: ts.NewLineKind.LineFeed});
15 const sf = ts.createSourceFile('test.ts', '', ts.ScriptTarget.ES2015, true);
16 return printer.printNode(ts.EmitHint.Unspecified, node, sf);
17}

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…