MCPcopy Create free account
hub / github.com/microsoft/typescript-go / createFlowMutation

Method createFlowMutation

internal/binder/binder.go:499–507  ·  view source on GitHub ↗
(flags ast.FlowFlags, antecedent *ast.FlowNode, node *ast.Node)

Source from the content-addressed store, hash-verified

497}
498
499func (b *Binder) createFlowMutation(flags ast.FlowFlags, antecedent *ast.FlowNode, node *ast.Node) *ast.FlowNode {
500 setFlowNodeReferenced(antecedent)
501 b.hasFlowEffects = true
502 result := b.newFlowNodeEx(flags, node, antecedent)
503 if b.currentExceptionTarget != nil {
504 b.addAntecedent(b.currentExceptionTarget, result)
505 }
506 return result
507}
508
509func (b *Binder) createFlowSwitchClause(antecedent *ast.FlowNode, switchStatement *ast.Node, clauseStart int, clauseEnd int) *ast.FlowNode {
510 setFlowNodeReferenced(antecedent)

Callers 4

Calls 3

newFlowNodeExMethod · 0.95
addAntecedentMethod · 0.95
setFlowNodeReferencedFunction · 0.85

Tested by

no test coverage detected