MCPcopy Create free account
hub / github.com/nodejs/node / nameOfTopLevelDeclaration

Function nameOfTopLevelDeclaration

test/fixtures/snapshot/typescript.js:162626–162628  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

162624 }
162625 }
162626 function nameOfTopLevelDeclaration(d) {
162627 return ts.isExpressionStatement(d) ? ts.tryCast(d.expression.left.name, ts.isIdentifier) : ts.tryCast(d.name, ts.isIdentifier);
162628 }
162629 function getTopLevelDeclarationStatement(d) {
162630 switch (d.kind) {
162631 case 254 /* SyntaxKind.VariableDeclaration */:

Calls

no outgoing calls

Tested by

no test coverage detected