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

Method maybeBindExpressionFlowIfCall

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

Source from the content-addressed store, hash-verified

2141}
2142
2143func (b *Binder) maybeBindExpressionFlowIfCall(node *ast.Node) {
2144 // A top level or comma expression call expression with a dotted function name and at least one argument
2145 // is potentially an assertion and is therefore included in the control flow.
2146 if ast.IsCallExpression(node) {
2147 if node.Expression().Kind != ast.KindSuperKeyword && ast.IsDottedName(node.Expression()) {
2148 b.currentFlow = b.createFlowCall(b.currentFlow, node)
2149 }
2150 }
2151}
2152
2153func (b *Binder) bindLabeledStatement(node *ast.Node) {
2154 stmt := node.AsLabeledStatement()

Callers 2

Calls 4

createFlowCallMethod · 0.95
IsCallExpressionFunction · 0.92
IsDottedNameFunction · 0.92
ExpressionMethod · 0.80

Tested by

no test coverage detected