Handle all remaining statements nodes
They should all be handled already, organically. Adding a test for each of them should be enough.
-
BreakStatement -
ClassDeclaration -
ContinueStatement -
DebuggerStatement -
DoWhileStatement -
ExpressionStatement -
ForInStatement -
ForOfStatement -
ForStatement -
FunctionDeclaration -
IfStatement -
LabeledStatement -
ReturnStatement -
SwitchStatement -
ThrowStatement -
TryStatement -
TSDeclareFunction -
TSEnumDeclaration -
TSExportAssignment -
TSImportEqualsDeclaration -
TSModuleDeclaration -
TSNamespaceExportDeclaration -
VariableDeclaration -
WhileStatement -
WithStatement
We should also ensure that the following statements are considered as non relevant:
-
LabeledStatement -
TSModuleDeclaration (depending on body) -
TSNamespaceExportDeclaration
And make a decision about these ones:
-
TSDeclareFunction -
TSEnumDeclaration
Edited by Eric MORAND