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

Function IsLogicalOrCoalescingBinaryOperator

internal/ast/utilities.go:232–234  ·  view source on GitHub ↗
(token Kind)

Source from the content-addressed store, hash-verified

230}
231
232func IsLogicalOrCoalescingBinaryOperator(token Kind) bool {
233 return IsLogicalBinaryOperator(token) || token == KindQuestionQuestionToken
234}
235
236func IsLogicalOrCoalescingBinaryExpression(expr *Node) bool {
237 return IsBinaryExpression(expr) && IsLogicalOrCoalescingBinaryOperator(expr.AsBinaryExpression().OperatorToken.Kind)

Calls 1

IsLogicalBinaryOperatorFunction · 0.85

Tested by

no test coverage detected