MCPcopy Index your code
hub / github.com/nodejs/node / done

Function done

test/fixtures/snapshot/marked.js:2606–2623  ·  view source on GitHub ↗
(err)

Source from the content-addressed store, hash-verified

2604 }
2605
2606 var done = function done(err) {
2607 var out;
2608
2609 if (!err) {
2610 try {
2611 if (opt.walkTokens) {
2612 marked.walkTokens(tokens, opt.walkTokens);
2613 }
2614
2615 out = Parser.parse(tokens, opt);
2616 } catch (e) {
2617 err = e;
2618 }
2619 }
2620
2621 opt.highlight = highlight;
2622 return err ? callback(err) : callback(null, out);
2623 };
2624
2625 if (!highlight || highlight.length < 3) {
2626 return done();

Callers 5

markedFunction · 0.70
output.jsFile · 0.50
describe_it.jsFile · 0.50
streaming.mjsFile · 0.50

Calls 2

callbackFunction · 0.70
parseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…