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

Method createReduceLabel

internal/binder/binder.go:475–477  ·  view source on GitHub ↗
(target *ast.FlowLabel, antecedents *ast.FlowList, antecedent *ast.FlowNode)

Source from the content-addressed store, hash-verified

473}
474
475func (b *Binder) createReduceLabel(target *ast.FlowLabel, antecedents *ast.FlowList, antecedent *ast.FlowNode) *ast.FlowNode {
476 return b.newFlowNodeEx(ast.FlowFlagsReduceLabel, ast.NewFlowReduceLabelData(target, antecedents), antecedent)
477}
478
479func (b *Binder) createFlowCondition(flags ast.FlowFlags, antecedent *ast.FlowNode, expression *ast.Node) *ast.FlowNode {
480 if antecedent.Flags&ast.FlowFlagsUnreachable != 0 {

Callers 1

bindTryStatementMethod · 0.95

Calls 2

newFlowNodeExMethod · 0.95
NewFlowReduceLabelDataFunction · 0.92

Tested by

no test coverage detected