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

Function isArgumentsLocalBinding

test/fixtures/snapshot/typescript.js:86739–86753  ·  view source on GitHub ↗
(nodeIn)

Source from the content-addressed store, hash-verified

86737 }
86738 // Emitter support
86739 function isArgumentsLocalBinding(nodeIn) {
86740 // Note: does not handle isShorthandPropertyAssignment (and probably a few more)
86741 if (ts.isGeneratedIdentifier(nodeIn))
86742 return false;
86743 var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);
86744 if (!node)
86745 return false;
86746 var parent = node.parent;
86747 if (!parent)
86748 return false;
86749 var isPropertyName = ((ts.isPropertyAccessExpression(parent)
86750 || ts.isPropertyAssignment(parent))
86751 && parent.name === node);
86752 return !isPropertyName && getReferencedValueSymbol(node) === argumentsSymbol;
86753 }
86754 function moduleExportsSomeValue(moduleReferenceExpression) {
86755 var moduleSymbol = resolveExternalModuleName(moduleReferenceExpression.parent, moduleReferenceExpression);
86756 if (!moduleSymbol || ts.isShorthandAmbientModuleSymbol(moduleSymbol)) {

Callers

nothing calls this directly

Calls 1

getReferencedValueSymbolFunction · 0.85

Tested by

no test coverage detected