SonarJS linter helper functions
    Preparing search index...

    Function collectIfBranches

    • Returns a list of statements corresponding to a if - else if - else chain

      Parameters

      • node: IfStatement

      Returns { branches: Statement[]; endsWithElse: boolean }