SonarJS linter helper functions
    Preparing search index...

    Function collectSwitchBranches

    • Returns a list of switch clauses (both case and default)

      Parameters

      • node: SwitchStatement

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