Home
last modified time | relevance | path

Searched refs:AnnotationData (Results 1 – 25 of 33) sorted by relevance

12

/arkcompiler/ets_frontend/merge_abc/src/
DannotationProto.h25 class AnnotationData {
27 …static void Serialize(const panda::pandasm::AnnotationData &anno, protoPanda::AnnotationData &prot…
28 …static void Deserialize(const protoPanda::AnnotationData &protoAnno, panda::pandasm::AnnotationDat…
46 …variant<uint64_t, float, double, std::string, panda::pandasm::Type, panda::pandasm::AnnotationData>
DannotationProto.cpp19 void AnnotationData::Serialize(const panda::pandasm::AnnotationData &anno, protoPanda::AnnotationDa… in Serialize()
28 void AnnotationData::Deserialize(const protoPanda::AnnotationData &protoAnno, panda::pandasm::Annot… in Deserialize()
123AnnotationData::Serialize(scalar.GetValue<panda::pandasm::AnnotationData>(), *protoAnno); in Serialize()
137 …<uint64_t, float, double, std::string, panda::pandasm::Type, panda::pandasm::AnnotationData> value; in Deserialize()
161 … auto *value = allocator->New<panda::pandasm::AnnotationData>(protoAnnotationData.recordname()); in Deserialize()
162 AnnotationData::Deserialize(protoAnnotationData, *value, allocator); in Deserialize()
174 …uint64_t, float, double, std::string, panda::pandasm::Type, panda::pandasm::AnnotationData> &value) in CreateScalarValue()
240 std::get<panda::pandasm::AnnotationData>(value)); in CreateScalarValue()
DmetaProto.cpp125 AnnotationData::Serialize(anno, *proto_anno); in Serialize()
133 std::vector<panda::pandasm::AnnotationData> annotations; in Deserialize()
136 … auto *annotation = allocator->New<panda::pandasm::AnnotationData>(protoAnnotation.recordname()); in Deserialize()
137 AnnotationData::Deserialize(protoAnnotation, *annotation, allocator); in Deserialize()
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DETSemitter.h39 class AnnotationData; variable
86 pandasm::AnnotationData GenAnnotationSignature(const ir::ClassDefinition *classDef);
87 pandasm::AnnotationData GenAnnotationEnclosingClass(std::string_view className);
88 pandasm::AnnotationData GenAnnotationEnclosingMethod(const ir::MethodDefinition *methodDef);
89 …pandasm::AnnotationData GenAnnotationInnerClass(const ir::ClassDefinition *classDef, const ir::Ast…
90 pandasm::AnnotationData GenAnnotationAsync(ir::ScriptFunction *scriptFunc);
DETSemitter.cpp211 std::vector<pandasm::AnnotationData> annotations; in GenAnnotation()
498 std::vector<pandasm::AnnotationData> annotations; in GenClassRecord()
523 pandasm::AnnotationData ETSEmitter::GenAnnotationSignature(const ir::ClassDefinition *classDef) in GenAnnotationSignature()
571 pandasm::AnnotationData signature(Signatures::ETS_ANNOTATION_SIGNATURE); in GenAnnotationSignature()
579 pandasm::AnnotationData ETSEmitter::GenAnnotationEnclosingMethod(const ir::MethodDefinition *method… in GenAnnotationEnclosingMethod()
582 pandasm::AnnotationData enclosingMethod(Signatures::ETS_ANNOTATION_ENCLOSING_METHOD); in GenAnnotationEnclosingMethod()
591 pandasm::AnnotationData ETSEmitter::GenAnnotationEnclosingClass(std::string_view className) in GenAnnotationEnclosingClass()
594 pandasm::AnnotationData enclosingClass(Signatures::ETS_ANNOTATION_ENCLOSING_CLASS); in GenAnnotationEnclosingClass()
603 pandasm::AnnotationData ETSEmitter::GenAnnotationInnerClass(const ir::ClassDefinition *classDef, in GenAnnotationInnerClass()
607 pandasm::AnnotationData innerClass(Signatures::ETS_ANNOTATION_INNER_CLASS); in GenAnnotationInnerClass()
[all …]
DJSemitter.cpp56 pandasm::AnnotationData funcAnnotationData("_ESAnnotation"); in GenFunctionAnnotations()
/arkcompiler/ets_frontend/es2panda/compiler/core/emitter/
DtypeExtractorEmitter.h29 using AnnotationData = panda::pandasm::AnnotationData; variable
65 const M &map, AnnotationData &funcTypeAnnotation);
DtypeExtractorEmitter.cpp138 AnnotationData funcTypeAnnotation(TypeExtractorEmitter::TYPE_ANNOTATION); in GenFunctionTypeInfo()
147 const extractor::TypeRecorder *recorder, const M &map, AnnotationData &funcTypeAnnotation) in GenImportOrDeclareTypeInfo()
184 AnnotationData funcTypeAnnotation(TypeExtractorEmitter::TYPE_ANNOTATION); in GenExportTypeInfo()
192 AnnotationData funcTypeAnnotation(TypeExtractorEmitter::TYPE_ANNOTATION); in GenDeclareTypeInfo()
/arkcompiler/runtime_core/static_core/assembler/
Dannotation.h35 class AnnotationData {
37 AnnotationData(std::string_view recordName, std::vector<AnnotationElement> elements) in AnnotationData() function
42 explicit AnnotationData(std::string_view recordName) : recordName_(recordName) {} in AnnotationData() function
44 DEFAULT_MOVE_SEMANTIC(AnnotationData);
45 DEFAULT_COPY_SEMANTIC(AnnotationData);
47 ~AnnotationData() = default;
432 std::conditional_t<VALUE_TYPE == Value::Type::ANNOTATION, AnnotationData,
495 ScalarValue(Type type, AnnotationData &value) : Value(type), value_(value) {} in ScalarValue()
497 std::variant<uint64_t, float, double, std::string, pandasm::Type, AnnotationData> value_;
Dmeta.h196 const std::vector<AnnotationData> &GetAnnotations() const in GetAnnotations()
201 void SetAnnotations(std::vector<AnnotationData> &&annotations) in SetAnnotations()
203 annotations_ = std::forward<std::vector<AnnotationData>>(annotations); in SetAnnotations()
206 void AddAnnotations(const std::vector<AnnotationData> &annotations) in AddAnnotations()
279 … const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotationIdMap);
368 std::unique_ptr<AnnotationData> CreateAnnotationData() in CreateAnnotationData()
370 return std::make_unique<AnnotationData>(name_, std::move(elements_)); in CreateAnnotationData()
373 void AddAnnnotationDataToVector(std::vector<AnnotationData> *annotations) in AddAnnnotationDataToVector()
460 std::vector<AnnotationData> annotations_;
461 std::unordered_map<std::string, std::unique_ptr<AnnotationData>> idMap_;
Dmeta.cpp151 const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotationIdMap = {}) in CreateValue()
217 …std::string_view value, const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &an… in AddValue()
Dannotation.cpp94 ScalarValue::Create<Value::Type::ANNOTATION>(scVal.GetValue<AnnotationData>())); in InitScalarValue()
/arkcompiler/runtime_core/assembler/
Dannotation.h35 class AnnotationData {
37 AnnotationData(std::string_view record_name, std::vector<AnnotationElement> elements) in AnnotationData() function
42 explicit AnnotationData(std::string_view record_name) : record_name_(record_name) {} in AnnotationData() function
44 DEFAULT_MOVE_SEMANTIC(AnnotationData);
45 DEFAULT_COPY_SEMANTIC(AnnotationData);
47 ~AnnotationData() = default;
438 std::conditional_t<value_type == Value::Type::ANNOTATION, AnnotationData,
503 ScalarValue(Type type, AnnotationData &value) : Value(type), value_(value) {} in ScalarValue()
505 std::variant<uint64_t, float, double, std::string, pandasm::Type, AnnotationData> value_;
Dmeta.h195 const std::vector<AnnotationData> &GetAnnotations() const in GetAnnotations()
200 void SetAnnotations(std::vector<AnnotationData> &&annotations) in SetAnnotations()
202 annotations_ = std::forward<std::vector<AnnotationData>>(annotations); in SetAnnotations()
205 void AddAnnotations(const std::vector<AnnotationData> &annotations) in AddAnnotations()
284 … const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotation_id_map);
373 std::unique_ptr<AnnotationData> CreateAnnotationData() in CreateAnnotationData()
375 return std::make_unique<AnnotationData>(name_, std::move(elements_)); in CreateAnnotationData()
378 void AddAnnnotationDataToVector(std::vector<AnnotationData> *annotations) in AddAnnnotationDataToVector()
465 std::vector<AnnotationData> annotations_;
466 std::unordered_map<std::string, std::unique_ptr<AnnotationData>> id_map_;
Dannotation.cpp97 ScalarValue::Create<Value::Type::ANNOTATION>(sc_val.GetValue<AnnotationData>())); in InitScalarValue()
251 void AnnotationData::SetOrAddElementByIndex(size_t ele_idx, AnnotationElement &&element) in SetOrAddElementByIndex()
Dmeta.cpp150 const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &annotation_id_map = {}) in CreateValue()
216 …std::string_view value, const std::unordered_map<std::string, std::unique_ptr<AnnotationData>> &an… in AddValue()
/arkcompiler/ets_frontend/merge_abc/protos/
Dannotation.proto41 AnnotationData valueAnno = 7;
65 message AnnotationData { message
Dmeta.proto33 repeated AnnotationData annotations = 2;
/arkcompiler/ets_frontend/merge_abc/
DHowToWriteProtoForAssemblyStuff.md231 std::variant<uint64_t, float, double, std::string, pandasm::Type, AnnotationData> value_;
242 AnnotationData valueAnno = 7;
/arkcompiler/ets_frontend/ets2panda/compiler/debugger/
DdebuginfoDumper.h40 void WriteMetaData(const std::vector<pandasm::AnnotationData> &metaData);
DdebuginfoDumper.cpp115 void DebugInfoDumper::WriteMetaData(const std::vector<pandasm::AnnotationData> &metaData) in WriteMetaData()
/arkcompiler/ets_frontend/es2panda/compiler/debugger/
DdebuginfoDumper.h40 void WriteMetaData(const std::vector<pandasm::AnnotationData> &metaData);
DdebuginfoDumper.cpp118 void DebugInfoDumper::WriteMetaData(const std::vector<pandasm::AnnotationData> &metaData) in WriteMetaData()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Dbcopt_type_adaption_test.cpp25 using AnnotationData = panda::pandasm::AnnotationData; typedef
115 AnnotationData annotation(TSTYPE_ANNO_RECORD_NAME); in SetTypeAnnotationForFunc()
117 std::vector<AnnotationData> annos; in SetTypeAnnotationForFunc()
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dts2abc.cpp696 panda::pandasm::AnnotationData funcAnnotation(TSTYPE_ANNO_RECORD_NAME); in ParseFunctionTypeInfo()
701 …const_cast<std::vector<panda::pandasm::AnnotationData>&>(pandaFunc.metadata->GetAnnotations()).pus… in ParseFunctionTypeInfo()
773 panda::pandasm::AnnotationData funcAnnotation(TSTYPE_ANNO_RECORD_NAME); in ParseFunctionExportedType()
782 const_cast<std::vector<panda::pandasm::AnnotationData>&>( in ParseFunctionExportedType()
800 panda::pandasm::AnnotationData funcAnnotation(TSTYPE_ANNO_RECORD_NAME); in ParseFunctionDeclaredType()
809 …const_cast<std::vector<panda::pandasm::AnnotationData>&>(pandaFunc.metadata->GetAnnotations()).pus… in ParseFunctionDeclaredType()

12