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

Function isDefaultedExpandoInitializer

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

Source from the content-addressed store, hash-verified

16494 }
16495 }
16496 function isDefaultedExpandoInitializer(node) {
16497 var name = ts.isVariableDeclaration(node.parent) ? node.parent.name :
16498 ts.isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 63 /* SyntaxKind.EqualsToken */ ? node.parent.left :
16499 undefined;
16500 return name && getExpandoInitializer(node.right, isPrototypeAccess(name)) && isEntityNameExpression(name) && isSameEntityName(name, node.left);
16501 }
16502 ts.isDefaultedExpandoInitializer = isDefaultedExpandoInitializer;
16503 /** Given an expando initializer, return its declaration name, or the left-hand side of the assignment if it's part of an assignment declaration. */
16504 function getNameOfExpando(node) {

Callers

nothing calls this directly

Calls 4

getExpandoInitializerFunction · 0.85
isPrototypeAccessFunction · 0.85
isEntityNameExpressionFunction · 0.85
isSameEntityNameFunction · 0.85

Tested by

no test coverage detected