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

Function bindingNameText

test/fixtures/snapshot/typescript.js:82215–82225  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

82213 });
82214 }
82215 function bindingNameText(name) {
82216 switch (name.kind) {
82217 case 79 /* SyntaxKind.Identifier */:
82218 return ts.idText(name);
82219 case 202 /* SyntaxKind.ArrayBindingPattern */:
82220 case 201 /* SyntaxKind.ObjectBindingPattern */:
82221 return bindingNameText(ts.cast(ts.first(name.elements), ts.isBindingElement).name);
82222 default:
82223 return ts.Debug.assertNever(name);
82224 }
82225 }
82226 function isImportedDeclaration(node) {
82227 return node.kind === 267 /* SyntaxKind.ImportClause */ || node.kind === 270 /* SyntaxKind.ImportSpecifier */ || node.kind === 268 /* SyntaxKind.NamespaceImport */;
82228 }

Callers 1

Calls 1

firstMethod · 0.45

Tested by

no test coverage detected