Lines Matching refs:decorators
203 auto decorators = decoratorsAndAnnotations.first;
216 if (!decorators.empty()) {
217 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
223 return ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare, false,
246 return ParseClassStatement(flags, isDeclare, std::move(decorators), std::move(annotations), true);
272 return ParseExportDeclaration(flags, std::move(decorators), std::move(annotations));
281 return ParseClassStatement(flags, isDeclare, std::move(decorators), std::move(annotations));
689 ArenaVector<ir::Decorator *> &&decorators,
696 return ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare, isAbstract, false,
700 ir::ClassDeclaration *ParserImpl::ParseClassDeclaration(bool idRequired, ArenaVector<ir::Decorator *> &&decorators,
710 if (!decorators.empty()) {
724 auto *classDecl = AllocNode<ir::ClassDeclaration>(classDefinition, std::move(decorators), std::move(annotations),
2479 ArenaVector<ir::Decorator *> decorators,
2488 if (!decorators.empty() && lexer_->GetToken().Type() != lexer::TokenType::KEYW_CLASS &&
2490 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
2496 declNode = ParseClassDeclaration(false, std::move(decorators), std::move(annotations), false, false, true);
2514 declNode = ParseClassDeclaration(false, std::move(decorators), std::move(annotations), false, true, true);
2679 ArenaVector<ir::Decorator *> &&decorators,
2691 if (!decorators.empty() && lexer_->GetToken().Type() != lexer::TokenType::KEYW_CLASS &&
2695 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
2725 decl = ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare || IsDtsFile(),
2735 if (!decorators.empty()) {
2736 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
2743 decl = ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare || IsDtsFile(),
2795 decl = ParseClassDeclaration(true, std::move(decorators), std::move(annotations),
2836 ArenaVector<ir::Decorator *> &&decorators,
2867 return ParseExportDefaultDeclaration(startLoc, std::move(decorators), std::move(annotations));
2885 return ParseExportDefaultDeclaration(startLoc, std::move(decorators), std::move(annotations), true);
2898 ir::ExportNamedDeclaration *exportDecl = ParseNamedExportDeclaration(startLoc, std::move(decorators),