Home
last modified time | relevance | path

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

12

/arkcompiler/runtime_core/disassembler/tests/
H A Ddisassembler_system_annotations_test.cpp34 bool ValidateAnnotation(std::optional<std::vector<std::string>> &annotations, const std::string &annotation_name) in ValidateAnnotation() argument
36 std::vector<std::string> ann = annotations.value(); in ValidateAnnotation()
58 std::optional<std::vector<std::string>> annotations = disasm.GetAnnotationByMethodName(METHOD_NAME); in HWTEST_F() local
59 ASSERT_NE(annotations, std::nullopt); in HWTEST_F()
60 bool hasAnnotation = ValidateAnnotation(annotations, ANNOTATION_NAME); in HWTEST_F()
76 std::optional<std::vector<std::string>> annotations = disasm.GetAnnotationByMethodName(METHOD_NAME); in HWTEST_F() local
77 ASSERT_NE(annotations, std::nullopt); in HWTEST_F()
78 bool hasAnnotation = ValidateAnnotation(annotations, ANNOTATION_NAME); in HWTEST_F()
/arkcompiler/ets_frontend/es2panda/ir/base/
H A DmethodDefinition.h46 ArenaVector<Annotation *> &&annotations, ArenaVector<ParamDecorators> &&paramDecorators, in MethodDefinition()
55 annotations_(std::move(annotations)), in MethodDefinition()
136 void SetAnnotations(ArenaVector<Annotation *> &&annotations) in SetAnnotations() argument
138 annotations_ = std::move(annotations); in SetAnnotations()
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
/arkcompiler/ets_frontend/merge_abc/src/
H A DmetaProto.cpp133 std::vector<panda::pandasm::AnnotationData> annotations; in Deserialize() local
134 annotations.reserve(protoMeta.annotations_size()); in Deserialize()
135 for (const auto &protoAnnotation : protoMeta.annotations()) { in Deserialize()
139 annotations.emplace_back(std::move(*annotation)); in Deserialize()
141 meta.AddAnnotations(annotations); in Deserialize()
/arkcompiler/ets_frontend/es2panda/ir/statements/
H A DclassDeclaration.h36 ArenaVector<Annotation *> &&annotations, bool isAnnoDecl) in ClassDeclaration()
40 def_->Ctor()->SetAnnotations(std::move(annotations)); in ClassDeclaration()
35 ClassDeclaration(ClassDefinition *def, ArenaVector<Decorator *> &&decorators, ArenaVector<Annotation *> &&annotations, bool isAnnoDecl) ClassDeclaration() argument
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DETSemitter.cpp224 std::vector<pandasm::AnnotationData> annotations; in GenAnnotation() local
225 annotations.push_back(GenAnnotationAsync(scriptFunc)); in GenAnnotation()
226 func.metadata->SetAnnotations(std::move(annotations)); in GenAnnotation()
434 std::vector<pandasm::AnnotationData> annotations; in GenAnnotations() local
438 annotations.emplace_back(GenAnnotationEnclosingMethod(parent->AsMethodDefinition())); in GenAnnotations()
439 annotations.emplace_back(GenAnnotationInnerClass(classDef, parent)); in GenAnnotations()
443 annotations.emplace_back(GenAnnotationEnclosingClass( in GenAnnotations()
445 annotations.emplace_back(GenAnnotationInnerClass(classDef, parent)); in GenAnnotations()
455 annotations.push_back(GenAnnotationDynamicCall(*callNames)); in GenAnnotations()
458 return annotations; in GenAnnotations()
524 std::vector<pandasm::AnnotationData> annotations = GenAnnotations(classDef); GenClassRecord() local
[all...]
/arkcompiler/runtime_core/abc2program/
H A Dabc_annotation_processor.cpp45 std::vector<pandasm::AnnotationData> annotations; in FillAnnotation() local
46 annotations.emplace_back(std::move(annotation_data)); in FillAnnotation()
47 function_.metadata->AddAnnotations(annotations); in FillAnnotation()
/arkcompiler/runtime_core/static_core/assembler/
H A Dmeta.h200 void SetAnnotations(std::vector<AnnotationData> &&annotations) in SetAnnotations() argument
203 annotations_ = std::forward<std::vector<AnnotationData>>(annotations); in SetAnnotations()
206 void AddAnnotations(const std::vector<AnnotationData> &annotations) in AddAnnotations() argument
208 annotations_.insert(annotations_.end(), annotations.begin(), annotations.end()); in AddAnnotations()
373 void AddAnnnotationDataToVector(std::vector<AnnotationData> *annotations) in AddAnnnotationDataToVector() argument
375 annotations->emplace_back(name_, std::move(elements_)); in AddAnnnotationDataToVector()
/arkcompiler/runtime_core/assembler/
H A Dmeta.h201 void SetAnnotations(std::vector<AnnotationData> &&annotations) in SetAnnotations() argument
203 annotations_ = std::forward<std::vector<AnnotationData>>(annotations); in SetAnnotations()
206 void AddAnnotations(const std::vector<AnnotationData> &annotations) in AddAnnotations() argument
208 annotations_.insert(annotations_.end(), annotations.begin(), annotations.end()); in AddAnnotations()
413 void AddAnnnotationDataToVector(std::vector<AnnotationData> *annotations)
415 annotations->emplace_back(name_, std::move(elements_));
/arkcompiler/ets_frontend/es2panda/parser/
H A DstatementParser.cpp204 auto annotations = decoratorsAndAnnotations.second; in ParseStatement() local
219 if (!annotations.empty()) { in ParseStatement()
221 annotations.front()->Start()); in ParseStatement()
223 return ParseClassDeclaration(true, std::move(decorators), std::move(annotations), isDeclare, false, in ParseStatement()
239 if (!annotations.empty()) { in ParseStatement()
240 ThrowSyntaxError("Annotations can not be used with abstract classes", annotations.front()->Start()); 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()
690 ArenaVector<ir::Annotation *> &&annotations, boo in ParseClassStatement()
688 ParseClassStatement(StatementParsingFlags flags, bool isDeclare, ArenaVector<ir::Decorator *> &&decorators, ArenaVector<ir::Annotation *> &&annotations, bool isAbstract) ParseClassStatement() argument
700 ParseClassDeclaration(bool idRequired, ArenaVector<ir::Decorator *> &&decorators, ArenaVector<ir::Annotation *> &&annotations, bool isDeclare, bool isAbstract, bool isExported, bool isAnnotation) ParseClassDeclaration() 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.h312 ArenaVector<ir::Annotation *> &&annotations, bool isDeclare);
317 ArenaVector<ir::Annotation *> &&annotations, bool isDeclare,
468 ArenaVector<ir::Annotation *> annotations,
474 ArenaVector<ir::Annotation *> &&annotations);
555 ArenaVector<ir::Annotation *> &&annotations);
570 ArenaVector<ir::Annotation *> &&annotations, bool isAbstract = false);
572 ArenaVector<ir::Annotation *> &&annotations, bool isDeclare = false,
H A DparserImpl.cpp2596 ArenaVector<ir::Annotation *> &&annotations, bool isDeclare) 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, ArenaVector<ir::Annotation *> &&annotations, bool isDeclare, in ParseClassProperty()
2682 std::move(annotations), isDeclare); in ParseClassProperty()
2687 if (!annotations.empty()) { in ParseClassProperty()
2688 ThrowSyntaxError("Annotations can not be used with class properties", annotations.front()->Start()); in ParseClassProperty()
2823 ArenaVector<ir::Annotation *> annotations(Allocator()->Adapter()); in ParseDecoratorsAndAnnotations()
2832 return {decorators, annotations}; in ParseDecoratorsAndAnnotations()
2837 annotations in ParseDecoratorsAndAnnotations()
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
2867 auto annotations = decoratorsAndAnnotations.second; ParseClassElement() local
3719 auto annotations = decoratorsAndAnnotations.second; ParseFunctionParams() local
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/reports/
H A Dspec_node.py17 from __future__ import annotations namespace
H A Dpdf_loader.py18 from __future__ import annotations namespace
/arkcompiler/runtime_core/abc2program/tests/cpp_sources/
H A Dhello_world_test.cpp975 auto &annotations = a_function_->metadata->GetAnnotations(); in HWTEST_F() local
976 auto iter = std::find_if(annotations.begin(), annotations.end(), [](const pandasm::AnnotationData &anno) { in HWTEST_F()
979 EXPECT_NE(iter, annotations.end()); in HWTEST_F()
991 auto &annotations = b_function_->metadata->GetAnnotations(); in HWTEST_F() local
992 auto anno = std::find_if(annotations.begin(), annotations.end(), [](const pandasm::AnnotationData &anno) { in HWTEST_F()
995 EXPECT_NE(anno, annotations.end()); in HWTEST_F()
/arkcompiler/runtime_core/disassembler/
H A Ddisassembler.cpp608 std::vector<pandasm::AnnotationData> annotations; in GetMethodAnnotations()
609 annotations.push_back(std::move(ann_data)); in GetMethodAnnotations()
610 method.metadata->AddAnnotations(annotations); in GetMethodAnnotations()
665 const auto annotations = method_iter->second.metadata->GetAnnotations(); in GetAnnotationByMethodName() local
666 if (!is_method || annotations.empty()) { in GetAnnotationByMethodName()
671 for (const auto &ann_data : annotations) { in GetAnnotationByMethodName()
690 const auto annotations = method_iter->second.metadata->GetAnnotations(); in GetSerializedMethodAnnotation() local
691 if (annotations.empty()) { in GetSerializedMethodAnnotation()
696 std::find_if(annotations.begin(), annotations in GetSerializedMethodAnnotation()
1884 const auto annotations = method.metadata->GetAnnotations(); SerializeMethodAnnotations() local
[all...]
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/utils/
H A Dfile_structure.py19 from __future__ import annotations namespace
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/
H A Dhook.py18 from __future__ import annotations namespace
H A Dvmb.py18 from __future__ import annotations namespace
H A Dplatform.py18 from __future__ import annotations namespace
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/
H A Dtest_sts_ts_subset.py18 from __future__ import annotations namespace
H A Dets_test_suite.py18 from __future__ import annotations namespace
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/
H A Dtest_base.py18 from __future__ import annotations namespace
/arkcompiler/runtime_core/libpandafile/
H A Dfile_items.h926 void SetRuntimeParamAnnotationItem(ParamAnnotationsItem *annotations) in SetRuntimeParamAnnotationItem() argument
928 runtime_param_annotations_ = annotations; in SetRuntimeParamAnnotationItem()
931 void SetParamAnnotationItem(ParamAnnotationsItem *annotations) in SetParamAnnotationItem() argument
933 param_annotations_ = annotations; in SetParamAnnotationItem()
/arkcompiler/runtime_core/static_core/libpandafile/
H A Dfile_items.h944 void SetRuntimeParamAnnotationItem(ParamAnnotationsItem *annotations) in SetRuntimeParamAnnotationItem() argument
946 runtimeParamAnnotations_ = annotations; in SetRuntimeParamAnnotationItem()
949 void SetParamAnnotationItem(ParamAnnotationsItem *annotations) in SetParamAnnotationItem() argument
951 paramAnnotations_ = annotations; in SetParamAnnotationItem()
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/astchecker/
H A Dutil_astchecker.py18 from __future__ import annotations namespace

Completed in 37 milliseconds

12