MCPcopy
hub / github.com/benjamn/recast / printGenerically

Function printGenerically

lib/printer.ts:158–170  ·  view source on GitHub ↗
(path: any)

Source from the content-addressed store, hash-verified

156
157 // Print the entire AST generically.
158 function printGenerically(path: any) {
159 return printComments(path, (path: any) =>
160 genericPrint(
161 path,
162 config,
163 {
164 includeComments: true,
165 avoidRootParens: false,
166 },
167 printGenerically,
168 ),
169 );
170 }
171
172 const path = FastPath.from(ast);
173 const oldReuseWhitespace = config.reuseWhitespace;

Callers 1

printer.tsFile · 0.85

Calls 2

printCommentsFunction · 0.90
genericPrintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…