Home
last modified time | relevance | path

Searched full:annotation (Results 1 – 25 of 31) sorted by relevance

12

/ark/runtime_core/assembler/
Dmeta.cpp56 {"class", VType::RECORD}, {"enum", VType::ENUM}, {"annotation", VType::ANNOTATION}, in GetType()
199 case Value::Type::ANNOTATION: {
202 … return Unexpected(Metadata::Error("Unknown annotation id", Metadata::Error::Type::INVALID_VALUE));
206 return ScalarValue::Create<Value::Type::ANNOTATION>(*annotation_value);
241 "'. Annotation element isn't completely defined", in Store()
257 "'. Annotation element isn't completely defined", in MeetExpRecordAttribute()
271 "'. Annotation record attribute must be defined first", in MeetExpIdAttribute()
277 "'. Annotation id attribute already defined", in MeetExpIdAttribute()
291 "'. Annotation record attribute must be defined first", in MeetExpElementNameAttribute()
297 "'. Previous annotation element isn't defined completely", in MeetExpElementNameAttribute()
[all …]
Dannotation.cpp16 #include "annotation.h"
96 case Value::Type::ANNOTATION: { in InitScalarValue()
98 ScalarValue::Create<Value::Type::ANNOTATION>(sc_val.GetValue<AnnotationData>())); in InitScalarValue()
130 case Value::Type::ANNOTATION: { in making_value()
233 case Value::Type::ANNOTATION: in TypeToString()
234 return "annotation"; in TypeToString()
Dannotation.h90 ANNOTATION, enumerator
147 case Type::ANNOTATION: in GetTypeAsChar()
220 case Type::ANNOTATION: in GetArrayTypeAsChar()
285 type = Type::ANNOTATION; in GetCharAsType()
358 type = Type::ANNOTATION; in GetCharAsArrayType()
439 std::conditional_t<value_type == Value::Type::ANNOTATION, AnnotationData,
Dassembly-emitter.cpp142 case Value::Type::ANNOTATION: in CheckValueType()
151 if (value_type == Value::Type::ANNOTATION && !record.metadata->IsAnnotation() && in CheckValueType()
154 SetLastError("Record " + type.GetName() + " isn't annotation"); in CheckValueType()
470 auto annotation = value->GetAsScalar()->GetValue<AnnotationData>(); in CreateScalarAnnotationValueItem() local
471 …auto *annotation_item = CreateAnnotationItem(container, annotation, program, classes, fields, meth… in CreateScalarAnnotationValueItem()
525 case Value::Type::ANNOTATION: { in CreateScalarValueItem()
563 …nItem *AsmEmitter::CreateAnnotationItem(ItemContainer *container, const AnnotationData &annotation, in CreateAnnotationItem() argument
569 auto record_name = annotation.GetName(); in CreateAnnotationItem()
578 SetLastError("Record " + record_name + " isn't annotation"); in CreateAnnotationItem()
585 for (const auto &element : annotation.GetElements()) { in CreateAnnotationItem()
[all …]
DBUILD.gn29 "annotation.cpp",
DCMakeLists.txt37 annotation.cpp
/ark/runtime_core/docs/
Dfile_format.md185 | `ACC_ANNOTATION` | `0x2000` | Declared as an annotation type. |
315annotation of the field. The tag may be repeated in case the field has several annotations. The of…
316annotation of the field. The tag may be repeated in case the field has several annotations. The of…
317annotation of the field. The tag may be repeated in case the field has several annotations. The of…
318annotation of the field. The tag may be repeated in case the field has several annotations. The of…
383annotation of the method. The tag may be repeated in case the method has several annotations. The …
386ANNOTATION` | `0x06` | `>=0` | `uint8_t[4]` | Data represents the offset to…
388annotation of the method. The tag may be repeated in case the method has several annotations. The …
389annotation of the method. The tag may be repeated in case the method has several annotations. The …
426annotation of the class. The tag may be repeated in case the class has several annotations. The of…
[all …]
Dcfi_directives.md10 ## Bridges annotation
19 From `CFI` perspective, annotation of `prolog` and `epilog` is needed.
Dcoding-style.md27 case 41: // No annotation needed here.
/ark/runtime_core/libpandafile/
Dfile_items.h43 ANNOTATION = 0x04, enumerator
56 ANNOTATION = 0x06, enumerator
67 ANNOTATION = 0x04, enumerator
425 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument
427 annotations_.push_back(annotation); in AddAnnotation()
682 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument
684 annotations_.push_back(annotation); in AddAnnotation()
762 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument
764 annotations_.push_back(annotation); in AddAnnotation()
927 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument
[all …]
Dfile_items.cpp233 for (auto annotation : annotations_) { in WriteAnnotations() local
234 if (!WriteIdTaggedValue(writer, ClassTag::ANNOTATION, annotation)) { in WriteAnnotations()
569 for (auto annotation : annotations_) { in WriteTaggedData() local
570 if (!WriteIdTaggedValue(writer, MethodTag::ANNOTATION, annotation)) { in WriteTaggedData()
1206 for (auto annotation : annotations_) { in WriteAnnotations() local
1207 if (!WriteIdTaggedValue(writer, FieldTag::ANNOTATION, annotation)) { in WriteAnnotations()
Dclass_data_accessor-inl.h100 …numerateTaggedValues<File::EntityId, ClassTag, Callback>(annotations_sp_, ClassTag::ANNOTATION, cb, in EnumerateAnnotations()
Dfield_data_accessor-inl.h130 …teTaggedValues<File::EntityId, FieldTag, Callback>(annotations_sp_, FieldTag::ANNOTATION, cb, &sp); in EnumerateAnnotations()
Dmethod_data_accessor-inl.h143 …merateTaggedValues<File::EntityId, MethodTag, Callback>(annotations_sp_, MethodTag::ANNOTATION, cb, in EnumerateAnnotations()
/ark/runtime_core/assembler/extensions/ecmascript/
Dmetadata.yaml17 - name: annotation
/ark/runtime_core/tests/cts-generator/cts-template/
Dlenarr.yaml34 .record A <java.annotation, java.annotation.type=runtime> {}
Disinstance.yaml28 .record A <java.annotation, java.annotation.type=runtime> {}
Dcheckcast.yaml29 .record A <java.annotation, java.annotation.type=runtime> {}
Dnewobj.yaml20 .record A <java.annotation, java.annotation.type=runtime> {}
Dlda.type.yaml22 .record A <java.annotation, java.annotation.type=runtime> {}
Dnewarr.yaml40 .record A <java.annotation, java.annotation.type=runtime> {}
/ark/ts2abc/ts2panda/scripts/
DdiagnosticMessages.json394 "The left-hand side of a 'for...in' statement cannot use a type annotation.": {
410 "The left-hand side of a 'for...of' statement cannot use a type annotation.": {
/ark/runtime_core/verification/job_queue/
Dcache.h232 ANNOTATION, enumerator
249 … FlagsForEnum<unsigned int, Flag, Flag::DYNAMIC_CLASS, Flag::PUBLIC, Flag::FINAL, Flag::ANNOTATION,
/ark/runtime_core/libpandafile/tests/
Dfile_item_container_test.cpp200 // Add runtime annotation in TEST()
208 // Add annotation in TEST()
278 // Annotation is the same as the runtime one, so we deduplicate it in TEST()
/ark/runtime_core/disassembler/
Ddisassembler.cpp750 return "annotation"; in AnnotationTagToString()
786 return "annotation[]"; in AnnotationTagToString()
838 } else if (type == "annotation") { in ScalarValueToString()
893 } else if (type == "annotation") { in ArrayValueToString()

12