Lines Matching refs:annotations
204 auto annotations = decoratorsAndAnnotations.second;
219 if (!annotations.empty()) {
221 annotations.front()->Start());
223 return ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare, false,
239 if (!annotations.empty()) {
240 ThrowSyntaxError("Annotations can not be used with abstract classes", annotations.front()->Start());
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));
690 ArenaVector<ir::Annotation *> &&annotations, bool isAbstract)
696 return ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare, isAbstract, false,
701 ArenaVector<ir::Annotation *> &&annotations, bool isDeclare,
724 auto *classDecl = AllocNode<ir::ClassDeclaration>(classDefinition, std::move(decorators), std::move(annotations),
2480 ArenaVector<ir::Annotation *> annotations,
2496 declNode = ParseClassDeclaration(false, std::move(decorators), std::move(annotations), false, false, true);
2510 if (!annotations.empty()) {
2511 ThrowSyntaxError("Annotations can not be used with abstract classes", annotations.front()->Start());
2514 declNode = ParseClassDeclaration(false, std::move(decorators), std::move(annotations), false, true, true);
2680 ArenaVector<ir::Annotation *> &&annotations)
2698 if (!annotations.empty() && lexer_->GetToken().Type() != lexer::TokenType::KEYW_CLASS &&
2700 ThrowSyntaxError("Annotations can be used only with classes and class methods", annotations.front()->Start());
2725 decl = ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare || IsDtsFile(),
2739 if (!annotations.empty()) {
2741 annotations.front()->Start());
2743 decl = ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare || IsDtsFile(),
2791 if (!annotations.empty()) {
2793 annotations.front()->Start());
2795 decl = ParseClassDeclaration(true, std::move(decorators), std::move(annotations),
2837 ArenaVector<ir::Annotation *> &&annotations)
2867 return ParseExportDefaultDeclaration(startLoc, std::move(decorators), std::move(annotations));
2879 if (!annotations.empty()) {
2881 annotations.front()->Start());
2885 return ParseExportDefaultDeclaration(startLoc, std::move(decorators), std::move(annotations), true);
2899 std::move(annotations));