SonarJS linter helper functions
Preparing search index...
collectSwitchBranches
Function collectSwitchBranches
collectSwitchBranches
(
node
:
SwitchStatement
,
)
:
{
branches
:
Statement
[]
[]
;
endsWithDefault
:
boolean
}
Returns a list of
switch
clauses (both
case
and
default
)
Parameters
node
:
SwitchStatement
Returns
{
branches
:
Statement
[]
[]
;
endsWithDefault
:
boolean
}
Settings
Theme
OS
Light
Dark
ESlint dev guide
SonarJS linter helper functions
Loading...
Returns a list of
switch
clauses (bothcase
anddefault
)