(node *ast.Node, trueTarget *ast.FlowLabel, falseTarget *ast.FlowLabel)
| 1797 | } |
| 1798 | |
| 1799 | func (b *Binder) bindCondition(node *ast.Node, trueTarget *ast.FlowLabel, falseTarget *ast.FlowLabel) { |
| 1800 | b.doWithConditionalBranches((*Binder).bind, node, trueTarget, falseTarget) |
| 1801 | if node == nil || !isLogicalAssignmentExpression(node) && !ast.IsLogicalExpression(node) && !(ast.IsOptionalChain(node) && ast.IsOutermostOptionalChain(node)) { |
| 1802 | b.addAntecedent(trueTarget, b.createFlowCondition(ast.FlowFlagsTrueCondition, b.currentFlow, node)) |
| 1803 | b.addAntecedent(falseTarget, b.createFlowCondition(ast.FlowFlagsFalseCondition, b.currentFlow, node)) |
| 1804 | } |
| 1805 | } |
| 1806 | |
| 1807 | func (b *Binder) bindIterativeStatement(node *ast.Node, breakTarget *ast.FlowLabel, continueTarget *ast.FlowLabel) { |
| 1808 | saveBreakTarget := b.currentBreakTarget |
no test coverage detected