/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | expression.cpp | 24 if (auto *const annotation = other.TypeAnnotation(); annotation != nullptr) { in AnnotatedExpression() 25 SetTsTypeAnnotation(annotation->Clone(allocator, this)->AsTypeNode()); in AnnotatedExpression()
|
/arkcompiler/runtime_core/abc2program/ |
H A D | abc_method_processor.cpp | 138 for (auto annotation : function_.metadata->GetAnnotations()) { in FillSlotsNum() 139 if (annotation.GetName() == SLOT_NUMBER_RECORD_NAME && !annotation.GetElements().empty()) { in FillSlotsNum() 140 uint32_t slots_num = annotation.GetElements()[0].GetValue()->GetAsScalar()->GetValue<uint32_t>(); in FillSlotsNum() 148 for (auto annotation : function_.metadata->GetAnnotations()) { in FillConcurrentModuleRequests() 149 if (annotation.GetName() != CONCURRENT_MODULE_REQUEST_RECORD_NAME) { in FillConcurrentModuleRequests() 152 for (auto &elem : annotation.GetElements()) { in FillConcurrentModuleRequests()
|
H A D | program_dump.cpp | 261 for (auto &annotation : function.metadata->GetAnnotations()) { in DumpFunctionAnnotations() 262 DumpAnnotationData(os, annotation); in DumpFunctionAnnotations()
|
/arkcompiler/ets_frontend/merge_abc/src/ |
H A D | metaProto.cpp | 136 auto *annotation = allocator->New<panda::pandasm::AnnotationData>(protoAnnotation.recordname()); in Deserialize() local 137 CHECK_NOT_NULL(annotation); in Deserialize() 138 AnnotationData::Deserialize(protoAnnotation, *annotation, allocator); in Deserialize() 139 annotations.emplace_back(std::move(*annotation)); in Deserialize()
|
/arkcompiler/runtime_core/assembler/ |
H A D | meta.h | 27 #include "annotation.h" 214 [&](pandasm::AnnotationData &annotation) -> bool { in DeleteAnnotationElementByName() 215 return annotation.GetName() == annotation_name; in DeleteAnnotationElementByName() 225 [&](pandasm::AnnotationData &annotation) -> bool { in DeleteAnnotationByName() 226 return annotation.GetName() == annotation_name; in DeleteAnnotationByName() 236 [&](pandasm::AnnotationData &annotation) -> bool { in AddAnnotationElementByName() 237 return annotation.GetName() == annotation_name; in AddAnnotationElementByName()
|
H A D | assembly-emitter.cpp | 320 auto annotation = value->GetAsScalar()->GetValue<AnnotationData>(); in CreateScalarAnnotationValueItem() local 321 auto *annotation_item = CreateAnnotationItem(container, annotation, program, entities); in CreateScalarAnnotationValueItem() 413 AnnotationItem *AsmEmitter::CreateAnnotationItem(ItemContainer *container, const AnnotationData &annotation, in CreateAnnotationItem() argument 416 auto record_name = annotation.GetName(); in CreateAnnotationItem() 425 SetLastError("Record " + record_name + " isn't annotation"); in CreateAnnotationItem() 432 for (const auto &element : annotation.GetElements()) { in CreateAnnotationItem() 451 SetLastError("Cannot create value item for annotation element " + name + ": " + GetLastError()); in CreateAnnotationItem() 496 for (const auto &annotation : metadata.GetAnnotations()) { in AddAnnotations() 497 auto *annotation_item = CreateAnnotationItem(container, annotation, program, entities); in AddAnnotations() 502 auto &record = program.record_table.find(annotation in AddAnnotations() [all...] |
H A D | assembly-emitter.h | 222 panda_file::ItemContainer *container, const AnnotationData &annotation, const Program &program,
|
/arkcompiler/ets_frontend/es2panda/binder/ |
H A D | binder.cpp | 22 #include "ir/base/annotation.h" 125 ss << "Invalid annotation declaration: " << name; in ThrowInvalidAnnotationDeclaration() 721 auto *annotation = childNode->AsAnnotation(); in ResolveReference() local 722 std::string annoName{annotation->Name()}; in ResolveReference() 723 ScopeFindResult res = scope_->Find(annotation->Name(), bindingOptions_); in ResolveReference() 726 annotation->SetIsImported(); in ResolveReference() 728 ThrowInvalidAnnotationDeclaration(annotation->Start(), annotation->Name()); in ResolveReference() 734 annotation->SetIsImported(); in ResolveReference() 736 ThrowInvalidAnnotationDeclaration(annotation in ResolveReference() [all...] |
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ |
H A D | ets_interop_runtime_interface-inl.h | 131 // returns index of the first element in annotation array having the same value as element `index` 132 uint32_t GetAnnotationElementUniqueIndex(ClassPtr klass, const char *annotation, uint32_t index) override 142 cda.EnumerateAnnotation(annotation, [pf, &indices = it->second](panda_file::AnnotationDataAccessor &ada) {
|
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | methodDefinition.cpp | 19 #include <ir/base/annotation.h>
|
/arkcompiler/runtime_core/libpandafile/ |
H A D | file_items.cpp | 353 for (auto annotation : annotations_) { in WriteAnnotations() 354 if (!WriteIdTaggedValue(writer, ClassTag::ANNOTATION, annotation)) { in WriteAnnotations() 705 for (auto annotation : annotations_) { in WriteTaggedData() 706 if (!WriteIdTaggedValue(writer, MethodTag::ANNOTATION, annotation)) { in WriteTaggedData() 1354 for (auto annotation : annotations_) { in WriteAnnotations() 1355 if (!WriteIdTaggedValue(writer, FieldTag::ANNOTATION, annotation)) { in WriteAnnotations()
|
H A D | file_items.h | 550 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument 552 annotations_.push_back(annotation); in AddAnnotation() 830 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument 832 annotations_.push_back(annotation); in AddAnnotation() 911 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument 913 annotations_.push_back(annotation); in AddAnnotation() 1078 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument 1080 annotations_.push_back(annotation); in AddAnnotation()
|
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | file_items.cpp | 310 for (auto annotation : annotations_) { in WriteAnnotations() 311 if (!WriteIdTaggedValue(writer, ClassTag::ANNOTATION, annotation)) { in WriteAnnotations() 646 for (auto annotation : annotations_) { in WriteTaggedData() 647 if (!WriteIdTaggedValue(writer, MethodTag::ANNOTATION, annotation)) { in WriteTaggedData() 1290 for (auto annotation : annotations_) { in WriteAnnotations() 1291 if (!WriteIdTaggedValue(writer, FieldTag::ANNOTATION, annotation)) { in WriteAnnotations()
|
H A D | file_items.h | 528 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument 530 annotations_.push_back(annotation); in AddAnnotation() 833 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument 835 annotations_.push_back(annotation); in AddAnnotation() 929 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument 931 annotations_.push_back(annotation); in AddAnnotation() 1107 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument 1109 annotations_.push_back(annotation); in AddAnnotation()
|
/arkcompiler/runtime_core/static_core/assembler/ |
H A D | assembly-emitter.cpp | 149 SetLastError("Record " + type.GetName() + " isn't annotation"); in CheckValueType() 486 auto annotation = value->GetAsScalar()->GetValue<AnnotationData>(); in CreateScalarAnnotationValueItem() local 487 auto *annotationItem = CreateAnnotationItem(container, annotation, program, classes, fields, methods); in CreateScalarAnnotationValueItem() 581 AnnotationItem *AsmEmitter::CreateAnnotationItem(ItemContainer *container, const AnnotationData &annotation, in CreateAnnotationItem() argument 587 auto recordName = annotation.GetName(); in CreateAnnotationItem() 596 SetLastError("Record " + recordName + " isn't annotation"); in CreateAnnotationItem() 603 for (const auto &element : annotation.GetElements()) { in CreateAnnotationItem() 627 SetLastError("Incorrect annotation element " + functionName + ": " + GetLastError()); in CreateAnnotationItem() 633 SetLastError("Cannot create value item for annotation element " + functionName + ": " + GetLastError()); in CreateAnnotationItem() 681 for (const auto &annotation in AddAnnotations() [all...] |
H A D | assembly-emitter.h | 239 panda_file::ItemContainer *container, const AnnotationData &annotation, const Program &program,
|
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/ |
H A D | emitter.cpp | 28 #include <ir/base/annotation.h> 413 pandasm::AnnotationData annotation(annoName); in CreateAnnotation() 422 return annotation; in CreateAnnotation() 427 return annotation; in CreateAnnotation() 431 // default arguments in annotation interface declaration in CreateAnnotation() 435 annotation.AddElement(CreateAnnotationElement(propName, initValue)); in CreateAnnotation() 438 return annotation; in CreateAnnotation() 840 // By convention, if annotation interface prop has no init value, in CreateEnumProp() 841 // then underlying type of annotation is string in CreateEnumProp() 845 // By convention, if annotation interfac in CreateEnumProp() [all...] |
/arkcompiler/runtime_core/static_core/irtoc/lang/ |
H A D | instruction.rb | 38 attr_accessor :type, :annotation, :debug_info 147 Output << "// #{self.annotation}" 245 Output << "// #{self.annotation}"
|
H A D | function.rb | 320 inst.annotation = Kernel.send(:caller)[0].split(':in')[0]
|
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/ |
H A D | metadata_layout.h | 252 DataRefOffset32 annotation; member
|
/arkcompiler/runtime_core/abc2program/tests/cpp_sources/ |
H A D | hello_world_test.cpp | 49 std::string annotation = "Anno"; member 177 anno_record_ = GetRecord(RECORD_NAME.annotation, *prog_); in SetUp() 209 * @tc.desc: get program function annotation. 969 * @tc.desc: check if annotated function has annotation 985 * @tc.desc: annotation of function fields comparison
|
/arkcompiler/runtime_core/assembler/tests/ |
H A D | assembler_emitter_test.cpp | 1006 AnnotationData annotation("_ESSlotNumberAnnotation"); in HWTEST_F() 1007 annotation.AddElement(std::move(anno_element)); in HWTEST_F() 1010 ScalarValue insn_order_anno(ScalarValue::Create<panda::pandasm::Value::Type::ANNOTATION>(annotation)); in HWTEST_F()
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | runtime_interface.h | 1339 [[maybe_unused]] const char *annotation, in GetAnnotationElementUniqueIndex() 1338 GetAnnotationElementUniqueIndex([[maybe_unused]] MethodPtr methodPtr, [[maybe_unused]] const char *annotation, [[maybe_unused]] uint32_t index) GetAnnotationElementUniqueIndex() argument
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | parserImpl.cpp | 24 #include <ir/base/annotation.h> 1573 ThrowSyntaxError("An index signature must have a type annotation.", memberStartLoc); in ParseTsTypeLiteralOrInterfaceMember() 2947 ThrowSyntaxError("An index signature must have a type annotation"); in ParseClassElement()
|
H A D | statementParser.cpp | 19 #include <ir/base/annotation.h> 220 ThrowSyntaxError("Annotations can not be used with annotation declaration", in ParseStatement() 2740 ThrowSyntaxError("Annotations can not be used with annotation declaration", in ParseNamedExportDeclaration()
|