MCPcopy
hub / github.com/jsdoc/jsdoc / moveTrailingComments

Function moveTrailingComments

lib/jsdoc/src/walker.js:28–39  ·  view source on GitHub ↗
(source, target, count)

Source from the content-addressed store, hash-verified

26
27// TODO: docs
28function moveTrailingComments(source, target, count) {
29 if (source.trailingComments) {
30 if (count === undefined) {
31 count = source.trailingComments.length;
32 }
33
34 target.trailingComments = source.trailingComments.slice(
35 source.trailingComments.length - count, count
36 );
37 source.trailingComments = source.trailingComments.slice(0);
38 }
39}
40
41/* eslint-disable no-empty-function, no-unused-vars */
42function leafNode(node, parent, state, cb) {}

Callers 1

walker.jsFile · 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…