Home
last modified time | relevance | path

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

123

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DdeclFileTypeAnnotationVisibilityErrorAccessors.ts34 // getter with annotation
39 // getter without annotation
46 // setter with annotation
50 // Both - getter without annotation, setter with annotation
59 // Both - with annotation
66 // getter with annotation
71 // getter without annotation
78 // setter with annotation
82 // Both - getter without annotation, setter with annotation
91 // Both - with annotation
[all …]
DambientDeclarations.ts21 // Ambient letiable without type annotation
25 // Ambient letiable with type annotation
DcallSignatureWithoutAnnotationsOrBody.ts21 // Call signatures without a return type annotation and function body return 'any'
DgenericTypeAssertions3.ts29 return null; }); // bug was 'could not find dotted symbol T' on x's annotation in the type assertio…
/arkcompiler/runtime_core/docs/
Dassembly_format.md81 * All keys are unique within a single annotation list.
160 | `java.annotation` | Used to specify that the record represents Java annotation. |
161 | `java.annotation.type` | Used to specify type of annotation. Possible values: `class`, `runtime`.…
162 …va.annotation.class` | Used to specify annotation class. Allowed multiple definitions. Value is th…
163annotation.id` | Used to specify annotation id. Annotations with id are used as values of other an…
164annotation.element.name` | Used to specify name of the annotation element. `java.annotation.class`…
165annotation.element.type` | Used to specify type of the annotation element. `java.annotation.elemen…
166annotation.element.array.component.type` | Used to specify component type of the array annotation
167 ….annotation.element.value` | Used to specify value of the annotation element. Allowed multiple def…
183 .record A1 <java.annotation, java.annotation.type=runtime> {}
[all …]
Dfile_format.md179 | `ACC_ANNOTATION` | `0x2000` | Declared as an annotation type. |
294annotation of the field. The tag may be repeated in case the field has several annotations. The of…
295annotation of the field. The tag may be repeated in case the field has several annotations. The of…
296annotation of the field. The tag may be repeated in case the field has several annotations. The of…
297annotation of the field. The tag may be repeated in case the field has several annotations. The of…
363annotation of the method. The tag may be repeated in case the method has several annotations. The …
366ANNOTATION` | `0x06` | `>=0` | `uint8_t[4]` | Data represents the offset to…
368annotation of the method. The tag may be repeated in case the method has several annotations. The …
369annotation of the method. The tag may be repeated in case the method has several annotations. The …
405annotation of the class. The tag may be repeated in case the class has several annotations. The of…
[all …]
Dcfi_directives.md14 ## Bridges annotation
23 From `CFI` perspective, annotation of `prolog` and `epilog` is needed.
Dcoding-style.md29 case 41: // No annotation needed here.
/arkcompiler/runtime_core/assembler/tests/
Decmascript_meta_test.cpp44 std::optional<pandasm::Metadata::Error> result2 = rmd.SetAttribute("ecmascript.annotation");
50 …std::optional<pandasm::Metadata::Error> result4 = rmd.SetAttributeValue("ecmascript.annotation", "…
52 EXPECT_EQ(result4->GetMessage(), "Attribute 'ecmascript.annotation' must not have a value");
59 std::optional<pandasm::Metadata::Error> result6 = rmd.SetAttribute("ecmascript.annotation");
61 EXPECT_EQ(result6->GetMessage(), "Attribute 'ecmascript.annotation' already defined");
78 rmd.SetAttribute("ecmascript.annotation");
81 EXPECT_TRUE(rmd.GetAttribute("ecmascript.annotation"));
87 rmd.RemoveAttribute("ecmascript.annotation");
88 EXPECT_FALSE(rmd.GetAttribute("ecmascript.annotation"));
97 rmd.SetAttribute("ecmascript.annotation");
[all …]
Dannotation_test.cpp18 #include "annotation.h"
19 #include "annotation.cpp"
134 type_u1 = Value::GetTypeAsChar(panda::pandasm::Value::Type::ANNOTATION);
222 type_u1 = Value::GetArrayTypeAsChar(panda::pandasm::Value::Type::ANNOTATION);
288 EXPECT_EQ(panda::pandasm::Value::Type::ANNOTATION, type);
351 EXPECT_EQ(panda::pandasm::Value::Type::ANNOTATION, type);
428 type = "annotation";
429 type_u1 = AnnotationElement::TypeToString(panda::pandasm::Value::Type::ANNOTATION);
517 …ScalarValue insn_order_anno(ScalarValue::Create<panda::pandasm::Value::Type::ANNOTATION>(annotatio…
/arkcompiler/runtime_core/plugins/ecmascript/tests/
Decmascript_meta_test.cpp33 std::optional<pandasm::Metadata::Error> result2 = rmd.SetAttribute("ecmascript.annotation");
39 …std::optional<pandasm::Metadata::Error> result4 = rmd.SetAttributeValue("ecmascript.annotation", "…
41 ASSERT_EQ(result4->GetMessage(), "Attribute 'ecmascript.annotation' must not have a value");
48 std::optional<pandasm::Metadata::Error> result6 = rmd.SetAttribute("ecmascript.annotation");
50 ASSERT_EQ(result6->GetMessage(), "Attribute 'ecmascript.annotation' already defined");
58 rmd.SetAttribute("ecmascript.annotation");
61 ASSERT_TRUE(rmd.GetAttribute("ecmascript.annotation"));
67 rmd.RemoveAttribute("ecmascript.annotation");
68 ASSERT_FALSE(rmd.GetAttribute("ecmascript.annotation"));
/arkcompiler/runtime_core/assembler/
Dmeta.cpp56 {"class", VType::RECORD}, {"enum", VType::ENUM}, {"annotation", VType::ANNOTATION}, in GetType()
198 case Value::Type::ANNOTATION: {
201 … return Unexpected(Metadata::Error("Unknown annotation id", Metadata::Error::Type::INVALID_VALUE));
205 return ScalarValue::Create<Value::Type::ANNOTATION>(*annotation_value);
240 "'. Annotation element isn't completely defined", in Store()
256 "'. Annotation element isn't completely defined", in MeetExpRecordAttribute()
270 "'. Annotation record attribute must be defined first", in MeetExpIdAttribute()
276 "'. Annotation id attribute already defined", in MeetExpIdAttribute()
290 "'. Annotation record attribute must be defined first", in MeetExpElementNameAttribute()
296 "'. Previous annotation element isn't defined completely", in MeetExpElementNameAttribute()
[all …]
Dannotation.cpp16 #include "annotation.h"
95 case Value::Type::ANNOTATION: { in InitScalarValue()
97 ScalarValue::Create<Value::Type::ANNOTATION>(sc_val.GetValue<AnnotationData>())); in InitScalarValue()
134 case Value::Type::ANNOTATION: in making_value()
238 case Value::Type::ANNOTATION: in TypeToString()
239 return "annotation"; in TypeToString()
Dannotation.h93 ANNOTATION, enumerator
150 case Type::ANNOTATION: in GetTypeAsChar()
224 case Type::ANNOTATION: in GetArrayTypeAsChar()
287 type = Type::ANNOTATION; in GetCharAsType()
358 type = Type::ANNOTATION; in GetCharAsArrayType()
438 std::conditional_t<value_type == Value::Type::ANNOTATION, AnnotationData,
/arkcompiler/runtime_core/assembler/extensions/
Decmascript_meta.cpp22 if (attribute == "ecmascript.annotation") { in Validate()
24 return Error("Attribute 'ecmascript.annotation' already defined", in Validate()
48 if (attribute == "ecmascript.annotation") { in Validate()
49 return Error("Attribute 'ecmascript.annotation' must not have a value", in Validate()
88 if (attribute == "ecmascript.annotation") { in SetFlags()
101 if (attribute == "ecmascript.annotation") { in RemoveFlags()
/arkcompiler/runtime_core/libpandafile/
Dfield_data_accessor-inl.h155 …numerateTaggedValues<File::EntityId, FieldTag, Callback>(annotations_sp_, FieldTag::ANNOTATION, cb, in EnumerateAnnotations()
171 … FieldTag::ANNOTATION, cb, &type_annotations_sp_); in EnumerateRuntimeTypeAnnotations()
186 …ateTaggedValues<File::EntityId, FieldTag, Callback>(type_annotations_sp_, FieldTag::ANNOTATION, cb, in EnumerateTypeAnnotations()
219 … FieldTag::ANNOTATION, cb); in EnumerateAnnotationsWithEarlyStop()
Dfile_items.h45 ANNOTATION = 0x04, enumerator
58 ANNOTATION = 0x06, enumerator
69 ANNOTATION = 0x04, enumerator
523 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument
525 annotations_.push_back(annotation); in AddAnnotation()
803 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument
805 annotations_.push_back(annotation); in AddAnnotation()
884 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument
886 annotations_.push_back(annotation); in AddAnnotation()
1051 void AddAnnotation(AnnotationItem *annotation) in AddAnnotation() argument
[all …]
Dclass_data_accessor-inl.h110 …numerateTaggedValues<File::EntityId, ClassTag, Callback>(annotations_sp_, ClassTag::ANNOTATION, cb, in EnumerateAnnotations()
133 … ClassTag::ANNOTATION, cb); in EnumerateAnnotationsWithEarlyStop()
Dfile_items.cpp353 for (auto annotation : annotations_) { in WriteAnnotations() local
354 if (!WriteIdTaggedValue(writer, ClassTag::ANNOTATION, annotation)) { in WriteAnnotations()
691 for (auto annotation : annotations_) { in WriteTaggedData() local
692 if (!WriteIdTaggedValue(writer, MethodTag::ANNOTATION, annotation)) { in WriteTaggedData()
1340 for (auto annotation : annotations_) { in WriteAnnotations() local
1341 if (!WriteIdTaggedValue(writer, FieldTag::ANNOTATION, annotation)) { in WriteAnnotations()
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
Dtest-interface7-expected.txt1 SyntaxError: An index signature must have a type annotation. [test-interface7.ts:17:15]
Dtest-type-literal7-expected.txt1 SyntaxError: An index signature must have a type annotation. [test-type-literal7.ts:17:10]
/arkcompiler/ets_frontend/merge_abc/src/
DmetaProto.cpp136 … auto *annotation = allocator->New<panda::pandasm::AnnotationData>(protoAnnotation.recordname()); in Deserialize() local
137 AnnotationData::Deserialize(protoAnnotation, *annotation, allocator); in Deserialize()
138 annotations.emplace_back(std::move(*annotation)); in Deserialize()
DannotationProto.h19 #include "annotation.pb.h"
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsSignatureDeclaration.cpp72 …"Call signature, which lacks return-type annotation, implicitly has an 'any' return type.", Start(… in Check()
76 …"Construct signature, which lacks return-type annotation, implicitly has an 'any' return type.", S… in Check()
/arkcompiler/ets_frontend/merge_abc/protos/
Dmeta.proto19 import "annotation.proto";

123