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

Method createFlowSwitchClause

internal/binder/binder.go:509–512  ·  view source on GitHub ↗
(antecedent *ast.FlowNode, switchStatement *ast.Node, clauseStart int, clauseEnd int)

Source from the content-addressed store, hash-verified

507}
508
509func (b *Binder) createFlowSwitchClause(antecedent *ast.FlowNode, switchStatement *ast.Node, clauseStart int, clauseEnd int) *ast.FlowNode {
510 setFlowNodeReferenced(antecedent)
511 return b.newFlowNodeEx(ast.FlowFlagsSwitchClause, ast.NewFlowSwitchClauseData(switchStatement, clauseStart, clauseEnd), antecedent)
512}
513
514func (b *Binder) createFlowCall(antecedent *ast.FlowNode, node *ast.Node) *ast.FlowNode {
515 setFlowNodeReferenced(antecedent)

Callers 2

bindSwitchStatementMethod · 0.95
bindCaseBlockMethod · 0.95

Calls 3

newFlowNodeExMethod · 0.95
NewFlowSwitchClauseDataFunction · 0.92
setFlowNodeReferencedFunction · 0.85

Tested by

no test coverage detected