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

Function isConstantMemberAccess

test/fixtures/snapshot/typescript.js:84835–84844  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

84833 }
84834 }
84835 function isConstantMemberAccess(node) {
84836 var type = getTypeOfExpression(node);
84837 if (type === errorType) {
84838 return false;
84839 }
84840 return node.kind === 79 /* SyntaxKind.Identifier */ ||
84841 node.kind === 206 /* SyntaxKind.PropertyAccessExpression */ && isConstantMemberAccess(node.expression) ||
84842 node.kind === 207 /* SyntaxKind.ElementAccessExpression */ && isConstantMemberAccess(node.expression) &&
84843 ts.isStringLiteralLike(node.argumentExpression);
84844 }
84845 function checkEnumDeclaration(node) {
84846 addLazyDiagnostic(function () { return checkEnumDeclarationWorker(node); });
84847 }

Callers 1

evaluateFunction · 0.85

Calls 1

getTypeOfExpressionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…