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

Function isPatternLiteralPlaceholderType

test/fixtures/snapshot/typescript.js:62248–62250  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

62246 accessNode;
62247 }
62248 function isPatternLiteralPlaceholderType(type) {
62249 return !!(type.flags & (1 /* TypeFlags.Any */ | 4 /* TypeFlags.String */ | 8 /* TypeFlags.Number */ | 64 /* TypeFlags.BigInt */));
62250 }
62251 function isPatternLiteralType(type) {
62252 return !!(type.flags & 134217728 /* TypeFlags.TemplateLiteral */) && ts.every(type.types, isPatternLiteralPlaceholderType);
62253 }

Callers 1

addSpansFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected