(node *ast.Node)
| 2780 | } |
| 2781 | |
| 2782 | func isTopLevelLogicalExpression(node *ast.Node) bool { |
| 2783 | for ast.IsParenthesizedExpression(node.Parent) || ast.IsPrefixUnaryExpression(node.Parent) && node.Parent.AsPrefixUnaryExpression().Operator == ast.KindExclamationToken { |
| 2784 | node = node.Parent |
| 2785 | } |
| 2786 | return !isStatementCondition(node) && !ast.IsLogicalExpression(node.Parent) && !(ast.IsOptionalChain(node.Parent) && node.Parent.Expression() == node) |
| 2787 | } |
| 2788 | |
| 2789 | func isAssignmentDeclaration(decl *ast.Node) bool { |
| 2790 | return ast.IsBinaryExpression(decl) || ast.IsAccessExpression(decl) || ast.IsIdentifier(decl) || ast.IsCallExpression(decl) |
no test coverage detected