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

Method checkStrictModeBinaryExpression

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

Source from the content-addressed store, hash-verified

1388}
1389
1390func (b *Binder) checkStrictModeBinaryExpression(node *ast.Node) {
1391 expr := node.AsBinaryExpression()
1392 if ast.IsLeftHandSideExpression(expr.Left) && ast.IsAssignmentOperator(expr.OperatorToken.Kind) {
1393 // ECMA 262 (Annex C) The identifier eval or arguments may not appear as the LeftHandSideExpression of an
1394 // Assignment operator(11.13) or of a PostfixExpression(11.3)
1395 b.checkStrictModeEvalOrArguments(node, expr.Left)
1396 }
1397}
1398
1399func (b *Binder) checkStrictModeCatchClause(node *ast.Node) {
1400 // It is a SyntaxError if a TryStatement with a Catch occurs within strict code and the Identifier of the

Callers 1

bindMethod · 0.95

Calls 4

IsLeftHandSideExpressionFunction · 0.92
IsAssignmentOperatorFunction · 0.92
AsBinaryExpressionMethod · 0.80

Tested by

no test coverage detected