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

Function isShebangTrivia

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

Source from the content-addressed store, hash-verified

10604 var shebangTriviaRegex = /^#!.*/;
10605 /*@internal*/
10606 function isShebangTrivia(text, pos) {
10607 // Shebangs check must only be done at the start of the file
10608 ts.Debug.assert(pos === 0);
10609 return shebangTriviaRegex.test(text);
10610 }
10611 ts.isShebangTrivia = isShebangTrivia;
10612 /*@internal*/
10613 function scanShebangTrivia(text, pos) {

Callers 2

skipTriviaFunction · 0.85
scanFunction · 0.85

Calls 2

assertMethod · 0.80
testMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…