/arkcompiler/runtime_core/disassembler/tests/ |
H A D | disassembler_system_annotations_test.cpp | 34 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 D | methodDefinition.h | 46 ArenaVector<Annotation *> &&annotations, ArenaVector<ParamDecorators> &¶mDecorators, 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> &¶mDecorators, bool isComputed) MethodDefinition() argument
|
/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | metaProto.cpp | 133 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 D | classDeclaration.h | 36 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 D | ETSemitter.cpp | 224 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 D | abc_annotation_processor.cpp | 45 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 D | meta.h | 200 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 D | meta.h | 201 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 D | statementParser.cpp | 204 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 D | parserImpl.h | 312 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 D | parserImpl.cpp | 2596 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 D | spec_node.py | 17 from __future__ import annotations namespace
|
H A D | pdf_loader.py | 18 from __future__ import annotations namespace
|
/arkcompiler/runtime_core/abc2program/tests/cpp_sources/ |
H A D | hello_world_test.cpp | 975 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 D | disassembler.cpp | 608 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 D | file_structure.py | 19 from __future__ import annotations namespace
|
/arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/ |
H A D | hook.py | 18 from __future__ import annotations namespace
|
H A D | vmb.py | 18 from __future__ import annotations namespace
|
H A D | platform.py | 18 from __future__ import annotations namespace
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/plugins/ets/ |
H A D | test_sts_ts_subset.py | 18 from __future__ import annotations namespace
|
H A D | ets_test_suite.py | 18 from __future__ import annotations namespace
|
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/ |
H A D | test_base.py | 18 from __future__ import annotations namespace
|
/arkcompiler/runtime_core/libpandafile/ |
H A D | file_items.h | 926 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 D | file_items.h | 944 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 D | util_astchecker.py | 18 from __future__ import annotations namespace
|