MCPcopy Create free account
hub / github.com/browserify/static-module / pushComment

Function pushComment

bench/input.js:421–435  ·  view source on GitHub ↗
(options, array)

Source from the content-addressed store, hash-verified

419}
420
421function pushComment(options, array) {
422 return function(block, text, start, end, startLoc, endLoc) {
423 var comment = {
424 type: block ? "Block" : "Line",
425 value: text,
426 start: start,
427 end: end
428 };
429 if (options.locations)
430 { comment.loc = new SourceLocation(this, startLoc, endLoc); }
431 if (options.ranges)
432 { comment.range = [start, end]; }
433 array.push(comment);
434 }
435}
436
437// Registered plugins
438var plugins = {};

Callers 1

getOptionsFunction · 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…