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

Function bindBindingElementFlow

test/fixtures/snapshot/typescript.js:46063–46080  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

46061 }
46062 }
46063 function bindBindingElementFlow(node) {
46064 if (ts.isBindingPattern(node.name)) {
46065 // When evaluating a binding pattern, the initializer is evaluated before the binding pattern, per:
46066 // - https://tc39.es/ecma262/#sec-destructuring-binding-patterns-runtime-semantics-iteratorbindinginitialization
46067 // - `BindingElement: BindingPattern Initializer?`
46068 // - https://tc39.es/ecma262/#sec-runtime-semantics-keyedbindinginitialization
46069 // - `BindingElement: BindingPattern Initializer?`
46070 bindEach(node.decorators);
46071 bindEach(node.modifiers);
46072 bind(node.dotDotDotToken);
46073 bind(node.propertyName);
46074 bind(node.initializer);
46075 bind(node.name);
46076 }
46077 else {
46078 bindEachChild(node);
46079 }
46080 }
46081 function bindJSDocTypeAlias(node) {
46082 bind(node.tagName);
46083 if (node.kind !== 339 /* SyntaxKind.JSDocEnumTag */ && node.fullName) {

Callers 1

bindChildrenFunction · 0.85

Calls 3

bindEachFunction · 0.85
bindEachChildFunction · 0.85
bindFunction · 0.70

Tested by

no test coverage detected