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

Function isEmptyBindingName

test/fixtures/snapshot/typescript.js:152040–152048  ·  view source on GitHub ↗
(bindingName)

Source from the content-addressed store, hash-verified

152038 }
152039 }
152040 function isEmptyBindingName(bindingName) {
152041 if (!bindingName) {
152042 return true;
152043 }
152044 if (isSynthIdentifier(bindingName)) {
152045 return !bindingName.identifier.text;
152046 }
152047 return ts.every(bindingName.elements, isEmptyBindingName);
152048 }
152049 function createSynthIdentifier(identifier, types) {
152050 if (types === void 0) { types = []; }
152051 return { kind: 0 /* SynthBindingNameKind.Identifier */, identifier: identifier, types: types, hasBeenDeclared: false, hasBeenReferenced: false };

Calls 2

isSynthIdentifierFunction · 0.85
everyMethod · 0.80

Tested by

no test coverage detected