MCPcopy Create free account
hub / github.com/nodejs/node / getShebang

Function getShebang

test/fixtures/snapshot/typescript.js:10768–10773  ·  view source on GitHub ↗

Optionally, get the shebang

(text)

Source from the content-addressed store, hash-verified

10766 ts.getTrailingCommentRanges = getTrailingCommentRanges;
10767 /** Optionally, get the shebang */
10768 function getShebang(text) {
10769 var match = shebangTriviaRegex.exec(text);
10770 if (match) {
10771 return match[0];
10772 }
10773 }
10774 ts.getShebang = getShebang;
10775 function isIdentifierStart(ch, languageVersion) {
10776 return ch >= 65 /* CharacterCodes.A */ && ch <= 90 /* CharacterCodes.Z */ || ch >= 97 /* CharacterCodes.a */ && ch <= 122 /* CharacterCodes.z */ ||

Callers 1

iterateCommentRangesFunction · 0.85

Calls 1

execMethod · 0.45

Tested by

no test coverage detected