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

Function charIsPunctuation

test/fixtures/snapshot/typescript.js:142767–142795  ·  view source on GitHub ↗
(ch)

Source from the content-addressed store, hash-verified

142765 return result;
142766 }
142767 function charIsPunctuation(ch) {
142768 switch (ch) {
142769 case 33 /* CharacterCodes.exclamation */:
142770 case 34 /* CharacterCodes.doubleQuote */:
142771 case 35 /* CharacterCodes.hash */:
142772 case 37 /* CharacterCodes.percent */:
142773 case 38 /* CharacterCodes.ampersand */:
142774 case 39 /* CharacterCodes.singleQuote */:
142775 case 40 /* CharacterCodes.openParen */:
142776 case 41 /* CharacterCodes.closeParen */:
142777 case 42 /* CharacterCodes.asterisk */:
142778 case 44 /* CharacterCodes.comma */:
142779 case 45 /* CharacterCodes.minus */:
142780 case 46 /* CharacterCodes.dot */:
142781 case 47 /* CharacterCodes.slash */:
142782 case 58 /* CharacterCodes.colon */:
142783 case 59 /* CharacterCodes.semicolon */:
142784 case 63 /* CharacterCodes.question */:
142785 case 64 /* CharacterCodes.at */:
142786 case 91 /* CharacterCodes.openBracket */:
142787 case 92 /* CharacterCodes.backslash */:
142788 case 93 /* CharacterCodes.closeBracket */:
142789 case 95 /* CharacterCodes._ */:
142790 case 123 /* CharacterCodes.openBrace */:
142791 case 125 /* CharacterCodes.closeBrace */:
142792 return true;
142793 }
142794 return false;
142795 }
142796 function isAllPunctuation(identifier, start, end) {
142797 return every(identifier, function (ch) { return charIsPunctuation(ch) && ch !== 95 /* CharacterCodes._ */; }, start, end);
142798 }

Callers 2

breakIntoSpansFunction · 0.85
isAllPunctuationFunction · 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…