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

Function isSymbolWithSymbolName

test/fixtures/snapshot/typescript.js:73484–73489  ·  view source on GitHub ↗
(symbol)

Source from the content-addressed store, hash-verified

73482 return ts.isNumericLiteralName(symbol.escapedName) || (firstDecl && ts.isNamedDeclaration(firstDecl) && isNumericName(firstDecl.name));
73483 }
73484 function isSymbolWithSymbolName(symbol) {
73485 var _a;
73486 var firstDecl = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a[0];
73487 return ts.isKnownSymbol(symbol) || (firstDecl && ts.isNamedDeclaration(firstDecl) && ts.isComputedPropertyName(firstDecl.name) &&
73488 isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096 /* TypeFlags.ESSymbol */));
73489 }
73490 function getObjectLiteralIndexInfo(node, offset, properties, keyType) {
73491 var propTypes = [];
73492 for (var i = offset; i < properties.length; i++) {

Callers 1

Calls 2

isTypeAssignableToKindFunction · 0.85

Tested by

no test coverage detected