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

Function scanShebangTrivia

test/fixtures/snapshot/typescript.js:10613–10617  ·  view source on GitHub ↗
(text, pos)

Source from the content-addressed store, hash-verified

10611 ts.isShebangTrivia = isShebangTrivia;
10612 /*@internal*/
10613 function scanShebangTrivia(text, pos) {
10614 var shebang = shebangTriviaRegex.exec(text)[0];
10615 pos = pos + shebang.length;
10616 return pos;
10617 }
10618 ts.scanShebangTrivia = scanShebangTrivia;
10619 /**
10620 * Invokes a callback for each comment range following the provided position.

Callers 2

skipTriviaFunction · 0.85
scanFunction · 0.85

Calls 1

execMethod · 0.45

Tested by

no test coverage detected