MCPcopy Index your code
hub / github.com/socketstream/socketstream / done

Function done

docs/js/marked.js:1045–1063  ·  view source on GitHub ↗
(hi)

Source from the content-addressed store, hash-verified

1043 pending = tokens.length;
1044
1045 var done = function(hi) {
1046 var out, err;
1047
1048 if (hi !== true) {
1049 delete opt.highlight;
1050 }
1051
1052 try {
1053 out = Parser.parse(tokens, opt);
1054 } catch (e) {
1055 err = e;
1056 }
1057
1058 opt.highlight = highlight;
1059
1060 return err
1061 ? callback(err)
1062 : callback(null, out);
1063 };
1064
1065 if (!highlight || highlight.length < 3) {
1066 return done(true);

Callers 15

andThenFunction · 0.85
defaults.jsFile · 0.85
doneIfAllDoneFunction · 0.85
constants.test.jsFile · 0.85
index.test.jsFile · 0.85
formatters.test.jsFile · 0.85
default.test.jsFile · 0.85
angular.test.jsFile · 0.85
ember.test.jsFile · 0.85

Calls

no outgoing calls

Tested by 2

fakeNextFunction · 0.68
myCustomTransportFunction · 0.68