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

Function isDynamicName

test/fixtures/snapshot/typescript.js:17507–17514  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

17505 }
17506 ts.hasDynamicName = hasDynamicName;
17507 function isDynamicName(name) {
17508 if (!(name.kind === 162 /* SyntaxKind.ComputedPropertyName */ || name.kind === 207 /* SyntaxKind.ElementAccessExpression */)) {
17509 return false;
17510 }
17511 var expr = ts.isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression;
17512 return !isStringOrNumericLiteralLike(expr) &&
17513 !isSignedNumericLiteral(expr);
17514 }
17515 ts.isDynamicName = isDynamicName;
17516 function getPropertyNameForPropertyNameNode(name) {
17517 switch (name.kind) {

Callers 2

hasDynamicNameFunction · 0.85

Calls 3

skipParenthesesFunction · 0.85
isSignedNumericLiteralFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…