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

Function createSynthBindingPattern

test/fixtures/snapshot/typescript.js:152053–152057  ·  view source on GitHub ↗
(bindingPattern, elements, types)

Source from the content-addressed store, hash-verified

152051 return { kind: 0 /* SynthBindingNameKind.Identifier */, identifier: identifier, types: types, hasBeenDeclared: false, hasBeenReferenced: false };
152052 }
152053 function createSynthBindingPattern(bindingPattern, elements, types) {
152054 if (elements === void 0) { elements = ts.emptyArray; }
152055 if (types === void 0) { types = []; }
152056 return { kind: 1 /* SynthBindingNameKind.BindingPattern */, bindingPattern: bindingPattern, elements: elements, types: types };
152057 }
152058 function referenceSynthIdentifier(synthId) {
152059 synthId.hasBeenReferenced = true;
152060 return synthId.identifier;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected