/arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
H A D | classDeclarationBuilder.h | 38 ClassDeclarationBuilder &SetDecorators(ArenaVector<Decorator *> &&decorators) in SetDecorators() argument 40 decorators_ = std::move(decorators); in SetDecorators()
|
/arkcompiler/ets_frontend/ets2panda/ir/statements/ |
H A D | classDeclaration.h | 49 void AddDecorators(ArenaVector<Decorator *> &&decorators) override 51 decorators_ = std::move(decorators);
|
H A D | functionDeclaration.h | 49 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 51 decorators_ = std::move(decorators);
|
H A D | variableDeclaration.h | 68 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 70 decorators_ = std::move(decorators);
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | classDeclaration.h | 35 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 D | methodDefinition.h | 39 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> &¶mDecorators, bool isComputed) MethodDefinition() argument
|
H A D | methodDefinition.cpp | 58 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 D | classProperty.h | 38 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 D | classElement.h | 86 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 88 decorators_ = std::move(decorators);
|
H A D | spreadElement.h | 66 void AddDecorators(ArenaVector<Decorator *> &&decorators) override 68 decorators_ = std::move(decorators);
|
/arkcompiler/ets_frontend/ets2panda/ir/ets/ |
H A D | etsStructDeclaration.h | 55 void AddDecorators(ArenaVector<Decorator *> &&decorators) override 57 decorators_ = std::move(decorators);
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | objectExpression.h | 89 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 91 decorators_ = std::move(decorators);
|
H A D | identifier.h | 182 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 184 decorators_ = std::move(decorators);
|
H A D | arrayExpression.h | 122 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 124 decorators_ = std::move(decorators);
|
/arkcompiler/ets_frontend/ets2panda/ir/module/ |
H A D | exportNamedDeclaration.h | 68 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 70 decorators_ = std::move(decorators);
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A D | tsEnumDeclaration.h | 133 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 135 decorators_ = std::move(decorators);
|
H A D | tsModuleDeclaration.h | 92 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 94 decorators_ = std::move(decorators);
|
H A D | tsTypeAliasDeclaration.h | 88 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 90 decorators_ = std::move(decorators);
|
H A D | tsInterfaceDeclaration.h | 153 void AddDecorators([[maybe_unused]] ArenaVector<ir::Decorator *> &&decorators) override 155 decorators_ = std::move(decorators);
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | forwardDeclForParserImpl.h | 103 explicit ClassElementDescriptor(ArenaAllocator *allocator) : decorators(allocator->Adapter()) {} in ClassElementDescriptor() 106 ArenaVector<ir::Decorator *> decorators; member in ark::es2panda::lexer::TokenFlags::ModifierFlags::ClassElementDescriptor
|
H A D | TypedParser.h | 34 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 D | TypedParser.cpp | 358 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 D | parserImpl.cpp | 2595 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 D | statementParser.cpp | 203 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 D | parserImpl.h | 311 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,
|