Lines Matching defs:statement
474 auto statement = it;
475 if (LIKELY(statement != nullptr) && statement->IsExportNamedDeclaration()) {
476 statement = statement->AsExportNamedDeclaration()->Decl();
478 if (statement != nullptr && !statement->IsTSInterfaceDeclaration() &&
479 !statement->IsTSTypeAliasDeclaration() &&
480 (!statement->IsTSModuleDeclaration() || statement->AsTSModuleDeclaration()->IsInstantiated())) {
693 ThrowSyntaxError("Lexical 'class' declaration is not allowed in single statement context");
917 "as the body of an if statement");
920 void ParserImpl::ConsumeSemicolon(ir::Statement *statement)
923 statement->SetEnd(lexer_->GetToken().End());
1025 ThrowSyntaxError("Illegal break statement");
1033 "A 'break' statement can only be used within an "
1034 "enclosing iteration or switch statement");
1079 ThrowSyntaxError("Illegal continue statement");
1083 "A 'continue' statement can only be used within an "
1084 "enclosing iteration statement");
1461 ThrowSyntaxError("Invalid left-hand side in for-in statement");
1646 ThrowSyntaxError("The body of an if statement cannot be the empty statement");
1745 "'switch' statement");
2605 "when 'export type' is used on its export statement.");
2986 "when 'import type' is used on its import statement.");