Lines Matching refs:decorators

2595                                                    ArenaVector<ir::Decorator *> &&decorators,
2620 if (func->IsOverload() && !decorators.empty()) {
2622 decorators.front()->Start());
2628 lexer::SourcePosition errorInfo = decorators.empty() ? func->Start() : decorators[0]->Start();
2631 ValidateClassSetter(desc, properties, propName, func, !decorators.empty(), errorInfo);
2633 ValidateClassGetter(desc, properties, propName, func, !decorators.empty(), errorInfo);
2646 std::move(decorators), std::move(annotations),
2653 std::move(decorators), std::move(annotations), std::move(paramDecorators),
2674 ArenaVector<ir::Decorator *> &&decorators, ArenaVector<ir::Annotation *> &&annotations, bool isDeclare,
2681 property = ParseClassMethod(desc, properties, propName, &propEnd, std::move(decorators),
2724 desc->modifiers, std::move(decorators), desc->isComputed,
2822 ArenaVector<ir::Decorator *> decorators(Allocator()->Adapter());
2832 return {decorators, annotations};
2835 decorators.push_back(stmt->AsDecorator());
2841 if (!decorators.empty() && lexer_->GetToken().Type() != lexer::TokenType::KEYW_CLASS &&
2847 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
2851 return {decorators, annotations};
2866 auto decorators = decoratorsAndAnnotations.first;
2874 if (!decorators.empty() && (desc.modifiers & ir::ModifierFlags::ACCESSOR)) {
2888 if (!decorators.empty()) {
2889 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
2899 if (desc.isPrivateIdent && !decorators.empty()) {
2900 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
2909 if (desc.methodKind == ir::MethodDefinitionKind::CONSTRUCTOR && !decorators.empty()) {
2910 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
2942 if (!decorators.empty()) {
2943 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start());
2961 property = ParseClassProperty(&desc, properties, propName, typeAnnotation, std::move(decorators),
3059 ArenaVector<ir::Decorator *> decorators(Allocator()->Adapter());
3063 ir::ModifierFlags::NONE, Allocator(), std::move(decorators),
3718 auto decorators = decoratorsAndAnnotations.first;
3724 if (!decorators.empty()) {
3726 paramDecorators->push_back({index, std::move(decorators)});