[][src]Module rslint_parser::syntax::stmt

Statements, these include if, while, for, ;, and more.

See the ECMAScript spec.

Constants

FOLLOWS_LET
STMT_RECOVERY_SET

Functions

block_stmt

A block statement consisting of statements wrapped in curly brackets.

break_stmt

A break statement with an optional label such as break a;

condition

An expression wrapped in parentheses such as `()

continue_stmt

A continue statement with an optional label such as continue a;

debugger_stmt

A debugger statement such as debugger;

do_stmt
empty_stmt

An empty statement denoted by a single semicolon.

for_stmt

Either a traditional for statement or a for.. in statement

if_stmt

An if statement such as if (foo) { bar(); }

return_stmt

A return statement with an optional value such as return a;

semi

Consume an explicit semicolon, or try to automatically insert one, or add an error to the parser if there was none and it could not be inserted

stmt

A generic statement such as a block, if, while, with, etc

switch_stmt

A switch statement such as

throw_stmt

A throw statement such as throw new Error("uh oh");

try_stmt

A try statement such as

var_decl

A var, const, or let declaration such as var a = 5, b; or let {a, b} = foo;

while_stmt

A while statement such as while(true) { do_something() }

with_stmt

A with statement such as with (foo) something()