(node)
| 361 | } |
| 362 | |
| 363 | function shouldInlineLogicalExpression(node) { |
| 364 | if (node.type !== "LogicalExpression") { |
| 365 | return false; |
| 366 | } |
| 367 | |
| 368 | if (isObjectExpression(node.right) && node.right.properties.length > 0) { |
| 369 | return true; |
| 370 | } |
| 371 | |
| 372 | if (isArrayExpression(node.right) && node.right.elements.length > 0) { |
| 373 | return true; |
| 374 | } |
| 375 | |
| 376 | if (isJsxElement(node.right)) { |
| 377 | return true; |
| 378 | } |
| 379 | |
| 380 | return false; |
| 381 | } |
| 382 | |
| 383 | const isBitwiseOrExpression = (node) => |
| 384 | node.type === "BinaryExpression" && node.operator === "|"; |
no outgoing calls
no test coverage detected
searching dependent graphs…