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

Method setContinueTarget

internal/binder/binder.go:1779–1787  ·  view source on GitHub ↗
(node *ast.Node, target *ast.FlowLabel)

Source from the content-addressed store, hash-verified

1777}
1778
1779func (b *Binder) setContinueTarget(node *ast.Node, target *ast.FlowLabel) *ast.FlowLabel {
1780 label := b.activeLabelList
1781 for label != nil && node.Parent.Kind == ast.KindLabeledStatement {
1782 label.continueTarget = target
1783 label = label.next
1784 node = node.Parent
1785 }
1786 return target
1787}
1788
1789func (b *Binder) doWithConditionalBranches(action func(b *Binder, value *ast.Node) bool, value *ast.Node, trueTarget *ast.FlowLabel, falseTarget *ast.FlowLabel) {
1790 savedTrueTarget := b.currentTrueTarget

Callers 4

bindWhileStatementMethod · 0.95
bindDoStatementMethod · 0.95
bindForStatementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected