(node *ast.Node)
| 2319 | } |
| 2320 | |
| 2321 | func (b *Binder) bindInitializedVariableFlow(node *ast.Node) { |
| 2322 | var name *ast.Node |
| 2323 | switch node.Kind { |
| 2324 | case ast.KindVariableDeclaration: |
| 2325 | name = node.AsVariableDeclaration().Name() |
| 2326 | case ast.KindBindingElement: |
| 2327 | name = node.AsBindingElement().Name() |
| 2328 | } |
| 2329 | if name != nil && ast.IsBindingPattern(name) { |
| 2330 | for _, child := range name.Elements() { |
| 2331 | b.bindInitializedVariableFlow(child) |
| 2332 | } |
| 2333 | } else { |
| 2334 | b.currentFlow = b.createFlowMutation(ast.FlowFlagsAssignment, b.currentFlow, node) |
| 2335 | } |
| 2336 | } |
| 2337 | |
| 2338 | func (b *Binder) bindAccessExpressionFlow(node *ast.Node) { |
| 2339 | if ast.IsOptionalChain(node) { |
no test coverage detected