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

Function isInCompoundLikeAssignment

internal/checker/utilities.go:118–121  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

116}
117
118func isInCompoundLikeAssignment(node *ast.Node) bool {
119 target := ast.GetAssignmentTarget(node)
120 return target != nil && ast.IsAssignmentExpression(target /*excludeCompoundAssignment*/, true) && isCompoundLikeAssignment(target)
121}
122
123func isCompoundLikeAssignment(assignment *ast.Node) bool {
124 right := ast.SkipParentheses(assignment.AsBinaryExpression().Right)

Callers 2

checkIdentifierMethod · 0.85

Calls 3

GetAssignmentTargetFunction · 0.92
IsAssignmentExpressionFunction · 0.92
isCompoundLikeAssignmentFunction · 0.85

Tested by

no test coverage detected