Home
last modified time | relevance | path

Searched refs:decorators (Results 1 - 25 of 31) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
H A DclassDeclarationBuilder.h38 ClassDeclarationBuilder &SetDecorators(ArenaVector<Decorator *> &&decorators) in SetDecorators() argument
40 decorators_ = std::move(decorators); in SetDecorators()
/arkcompiler/ets_frontend/ets2panda/ir/statements/
H A DclassDeclaration.h49 void AddDecorators(ArenaVector<Decorator *> &&decorators) override
51 decorators_ = std::move(decorators);
H A DfunctionDeclaration.h49 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
51 decorators_ = std::move(decorators);
H A DvariableDeclaration.h68 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
70 decorators_ = std::move(decorators);
/arkcompiler/ets_frontend/es2panda/ir/statements/
H A DclassDeclaration.h35 explicit ClassDeclaration(ClassDefinition *def, ArenaVector<Decorator *> &&decorators, in ClassDeclaration() argument
37 : Statement(AstNodeType::CLASS_DECLARATION), def_(def), decorators_(std::move(decorators)), in ClassDeclaration()
/arkcompiler/ets_frontend/es2panda/ir/base/
H A DmethodDefinition.h39 ArenaVector<Decorator *> decorators; member
45 ModifierFlags modifiers, ArenaAllocator *allocator, ArenaVector<Decorator *> &&decorators, in MethodDefinition()
54 decorators_(std::move(decorators)), in MethodDefinition()
44 MethodDefinition(MethodDefinitionKind kind, Expression *key, FunctionExpression *value, ModifierFlags modifiers, ArenaAllocator *allocator, ArenaVector<Decorator *> &&decorators, ArenaVector<Annotation *> &&annotations, ArenaVector<ParamDecorators> &&paramDecorators, bool isComputed) MethodDefinition() argument
H A DmethodDefinition.cpp58 for (auto *it : param.decorators) { in Iterate()
101 {"decorators", decorators_}, in Dump()
126 for (auto iter = param.decorators.begin(); iter != param.decorators.end(); iter++) { in UpdateSelf()
H A DclassProperty.h38 ArenaVector<Decorator *> &&decorators, bool isComputed, bool definite) in ClassProperty()
44 decorators_(std::move(decorators)), in ClassProperty()
37 ClassProperty(Expression *key, Expression *value, Expression *typeAnnotation, ModifierFlags modifiers, ArenaVector<Decorator *> &&decorators, bool isComputed, bool definite) ClassProperty() argument
/arkcompiler/ets_frontend/ets2panda/ir/base/
H A DclassElement.h86 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
88 decorators_ = std::move(decorators);
H A DspreadElement.h66 void AddDecorators(ArenaVector<Decorator *> &&decorators) override
68 decorators_ = std::move(decorators);
/arkcompiler/ets_frontend/ets2panda/ir/ets/
H A DetsStructDeclaration.h55 void AddDecorators(ArenaVector<Decorator *> &&decorators) override
57 decorators_ = std::move(decorators);
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
H A DobjectExpression.h89 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
91 decorators_ = std::move(decorators);
H A Didentifier.h182 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
184 decorators_ = std::move(decorators);
H A DarrayExpression.h122 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
124 decorators_ = std::move(decorators);
/arkcompiler/ets_frontend/ets2panda/ir/module/
H A DexportNamedDeclaration.h68 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
70 decorators_ = std::move(decorators);
/arkcompiler/ets_frontend/ets2panda/ir/ts/
H A DtsEnumDeclaration.h133 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
135 decorators_ = std::move(decorators);
H A DtsModuleDeclaration.h92 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
94 decorators_ = std::move(decorators);
H A DtsTypeAliasDeclaration.h88 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
90 decorators_ = std::move(decorators);
H A DtsInterfaceDeclaration.h153 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override
155 decorators_ = std::move(decorators);
/arkcompiler/ets_frontend/ets2panda/parser/
H A DforwardDeclForParserImpl.h103 explicit ClassElementDescriptor(ArenaAllocator *allocator) : decorators(allocator->Adapter()) {} in ClassElementDescriptor()
106 ArenaVector<ir::Decorator *> decorators; member in ark::es2panda::lexer::TokenFlags::ModifierFlags::ClassElementDescriptor
H A DTypedParser.h34 void ParseDecorators(ArenaVector<ir::Decorator *> &decorators);
136 [[maybe_unused]] ArenaVector<ir::Decorator *> &decorators) in AddDecorators()
135 AddDecorators([[maybe_unused]] ir::AstNode *node, [[maybe_unused]] ArenaVector<ir::Decorator *> &decorators) AddDecorators() argument
H A DTypedParser.cpp358 void TypedParser::ParseDecorators(ArenaVector<ir::Decorator *> &decorators) in ParseDecorators() argument
361 decorators.push_back(ParseDecorator()); in ParseDecorators()
946 if (!desc.decorators.empty()) { in ParseProperty()
947 ThrowSyntaxError("Decorators are not valid here.", desc.decorators.front()->Start()); in ParseProperty()
969 if (!desc.decorators.empty()) { in ParseProperty()
974 property->AddDecorators(std::move(desc.decorators)); in ParseProperty()
1015 ParseDecorators(desc.decorators); in ParseClassElement()
1033 if (desc.methodKind == ir::MethodDefinitionKind::CONSTRUCTOR && !desc.decorators.empty()) { in ParseClassElement()
1034 ThrowSyntaxError("Decorators are not valid here.", desc.decorators.front()->Start()); in ParseClassElement()
1316 ArenaVector<ir::Decorator *> decorators(Allocato in ParseDeclareAndDecorators()
[all...]
/arkcompiler/ets_frontend/es2panda/parser/
H A DparserImpl.cpp2595 ArenaVector<ir::Decorator *> &&decorators, in ParseClassMethod()
2620 if (func->IsOverload() && !decorators.empty()) { in ParseClassMethod()
2622 decorators.front()->Start()); in ParseClassMethod()
2628 lexer::SourcePosition errorInfo = decorators.empty() ? func->Start() : decorators[0]->Start(); in ParseClassMethod()
2631 ValidateClassSetter(desc, properties, propName, func, !decorators.empty(), errorInfo); in ParseClassMethod()
2633 ValidateClassGetter(desc, properties, propName, func, !decorators.empty(), errorInfo); in ParseClassMethod()
2646 std::move(decorators), std::move(annotations), in ParseClassMethod()
2653 std::move(decorators), std::move(annotations), std::move(paramDecorators), in ParseClassMethod()
2674 ArenaVector<ir::Decorator *> &&decorators, ArenaVecto in ParseClassProperty()
2592 ParseClassMethod(ClassElmentDescriptor *desc, const ArenaVector<ir::Statement *> &properties, ir::Expression *propName, lexer::SourcePosition *propEnd, ArenaVector<ir::Decorator *> &&decorators, ArenaVector<ir::Annotation *> &&annotations, bool isDeclare) ParseClassMethod() argument
2672 ParseClassProperty(ClassElmentDescriptor *desc, const ArenaVector<ir::Statement *> &properties, ir::Expression *propName, ir::Expression *typeAnnotation, ArenaVector<ir::Decorator *> &&decorators, ArenaVector<ir::Annotation *> &&annotations, bool isDeclare, std::pair<binder::FunctionScope *, binder::FunctionScope *> implicitScopes) ParseClassProperty() argument
2866 auto decorators = decoratorsAndAnnotations.first; ParseClassElement() local
3718 auto decorators = decoratorsAndAnnotations.first; ParseFunctionParams() local
[all...]
H A DstatementParser.cpp203 auto decorators = decoratorsAndAnnotations.first; in ParseStatement() local
216 if (!decorators.empty()) { in ParseStatement()
217 ThrowSyntaxError("Decorators are not valid here.", decorators.front()->Start()); in ParseStatement()
223 return ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare, false, in ParseStatement()
246 return ParseClassStatement(flags, isDeclare, std::move(decorators), std::move(annotations), true); in ParseStatement()
272 return ParseExportDeclaration(flags, std::move(decorators), std::move(annotations)); in ParseStatement()
281 return ParseClassStatement(flags, isDeclare, std::move(decorators), std::move(annotations)); in ParseStatement()
689 ArenaVector<ir::Decorator *> &&decorators, in ParseClassStatement()
696 return ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare, isAbstract, false, in ParseClassStatement()
700 ir::ClassDeclaration *ParserImpl::ParseClassDeclaration(bool idRequired, ArenaVector<ir::Decorator *> &&decorators, in ParseClassDeclaration() argument
688 ParseClassStatement(StatementParsingFlags flags, bool isDeclare, ArenaVector<ir::Decorator *> &&decorators, ArenaVector<ir::Annotation *> &&annotations, bool isAbstract) ParseClassStatement() argument
2478 ParseExportDefaultDeclaration(const lexer::SourcePosition &startLoc, ArenaVector<ir::Decorator *> decorators, ArenaVector<ir::Annotation *> annotations, bool isExportEquals) ParseExportDefaultDeclaration() argument
2678 ParseNamedExportDeclaration(const lexer::SourcePosition &startLoc, ArenaVector<ir::Decorator *> &&decorators, ArenaVector<ir::Annotation *> &&annotations) ParseNamedExportDeclaration() argument
2835 ParseExportDeclaration(StatementParsingFlags flags, ArenaVector<ir::Decorator *> &&decorators, ArenaVector<ir::Annotation *> &&annotations) ParseExportDeclaration() argument
[all...]
H A DparserImpl.h311 ArenaVector<ir::Decorator *> &&decorators,
316 ArenaVector<ir::Decorator *> &&decorators,
467 ArenaVector<ir::Decorator *> decorators,
473 ArenaVector<ir::Decorator *> &&decorators,
554 ir::Statement *ParseExportDeclaration(StatementParsingFlags flags, ArenaVector<ir::Decorator *> &&decorators,
569 ArenaVector<ir::Decorator *> &&decorators,
571 ir::ClassDeclaration *ParseClassDeclaration(bool idRequired, ArenaVector<ir::Decorator *> &&decorators,

Completed in 17 milliseconds

12