MCPcopy
hub / github.com/livebud/bud / pushComment

Function pushComment

package/svelte/compiler.js:390–406  ·  view source on GitHub ↗
(options, array)

Source from the content-addressed store, hash-verified

388 return options;
389 }
390 function pushComment(options, array) {
391 return function(block, text2, start, end, startLoc, endLoc) {
392 var comment = {
393 type: block ? "Block" : "Line",
394 value: text2,
395 start,
396 end
397 };
398 if (options.locations) {
399 comment.loc = new SourceLocation(this, startLoc, endLoc);
400 }
401 if (options.ranges) {
402 comment.range = [start, end];
403 }
404 array.push(comment);
405 };
406 }
407 var SCOPE_TOP = 1;
408 var SCOPE_FUNCTION = 2;
409 var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION;

Callers 1

getOptionsFunction · 0.85

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected