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

Function visitStaticBlock

test/printer.ts:2289–2294  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

2287
2288 types.visit(ast, {
2289 visitStaticBlock(path) {
2290 assert.strictEqual(path.get("body", "length").value, 2);
2291 while (path.get("body").shift()) {}
2292 assert.strictEqual(path.get("body", "length").value, 0);
2293 return false;
2294 },
2295 });
2296
2297 const emptyBlockReprinted = printer.print(ast).code;

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…