MCPcopy Create free account
hub / github.com/Rich-Harris/code-red / remove_ranges

Function remove_ranges

test/test.js:20–28  ·  view source on GitHub ↗
(ast)

Source from the content-addressed store, hash-verified

18
19// just to make the tests less messy
20const remove_ranges = (ast) => {
21 walk(ast, {
22 enter(node) {
23 delete node.start;
24 delete node.end;
25 }
26 });
27 return ast;
28};
29
30const b = (s, ...v) => remove_ranges(codered.b(s, ...v));
31const x = (s, ...v) => remove_ranges(codered.x(s, ...v));

Callers 3

bFunction · 0.85
xFunction · 0.85
pFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…