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

Method bindDestructuringTargetFlow

internal/binder/binder.go:1849–1855  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

1847}
1848
1849func (b *Binder) bindDestructuringTargetFlow(node *ast.Node) {
1850 if ast.IsBinaryExpression(node) && node.AsBinaryExpression().OperatorToken.Kind == ast.KindEqualsToken {
1851 b.bindAssignmentTargetFlow(node.AsBinaryExpression().Left)
1852 } else {
1853 b.bindAssignmentTargetFlow(node)
1854 }
1855}
1856
1857func (b *Binder) bindWhileStatement(node *ast.Node) {
1858 stmt := node.AsWhileStatement()

Callers 1

Calls 3

IsBinaryExpressionFunction · 0.92
AsBinaryExpressionMethod · 0.80

Tested by

no test coverage detected