Lines Matching defs:decorators
169 void TSParser::AddDecorators(ir::AstNode *node, ArenaVector<ir::Decorator *> &decorators)
171 if (decorators.empty()) {
176 ThrowSyntaxError("Decorators are not valid here", decorators.front()->Start());
179 node->AddDecorators(std::move(decorators));
1803 ArenaVector<ir::Decorator *> decorators(Allocator()->Adapter());
1805 ParseDecorators(decorators);
1807 if (!decorators.empty() && ((GetContext().Status() & ParserStatus::IN_CLASS_BODY) == 0)) {
1808 ThrowSyntaxError("Decorators are not valid here", decorators.front()->Start());
1814 if (!decorators.empty()) {
1815 parameter->AddDecorators(std::move(decorators));
1908 if (func->IsOverload() && !desc->decorators.empty()) {
1910 desc->decorators.front()->Start());