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

Function isFirstEmittedDeclarationInScope

test/fixtures/snapshot/typescript.js:93596–93602  ·  view source on GitHub ↗

* Determines whether a declaration is the first declaration with * the same name emitted in the current scope.

(node)

Source from the content-addressed store, hash-verified

93594 * the same name emitted in the current scope.
93595 */
93596 function isFirstEmittedDeclarationInScope(node) {
93597 if (currentScopeFirstDeclarationsOfName) {
93598 var name = declaredNameInScope(node);
93599 return currentScopeFirstDeclarationsOfName.get(name) === node;
93600 }
93601 return true;
93602 }
93603 function declaredNameInScope(node) {
93604 ts.Debug.assertNode(node.name, ts.isIdentifier);
93605 return node.name.escapedText;

Callers 1

Calls 2

declaredNameInScopeFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected