Home
last modified time | relevance | path

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

12345678910>>...24

/arkcompiler/runtime_core/libabckit/include/cpp/headers/arkts/
Dannotation.h19 #include "../core/annotation.h"
25 * @brief Annotation
27 class Annotation : public core::Annotation {
33 /// @brief abckit::DefaultHash<Annotation>
34 friend class abckit::DefaultHash<Annotation>;
36 friend class abckit::traits::TargetCheckCast<Annotation>;
40 * @brief Constructor Arkts API Annotation from the Core API with compatibility check
41 * @param coreOther - Core API Annotation
43 explicit Annotation(const core::Annotation &coreOther);
46 * @brief Construct a new Annotation object
[all …]
Dannotation_impl.h19 #include "annotation.h"
27 inline AbckitArktsAnnotation *Annotation::TargetCast() const in TargetCast()
34 inline Annotation::Annotation(const core::Annotation &coreOther) : core::Annotation(coreOther), tar… in Annotation() function
36 inline arkts::Annotation Annotation::AddElement(const abckit::Value &val, std::string_view name) co… in AddElement()
46 inline AbckitCoreAnnotationElement *Annotation::AddAndGetElementImpl( in AddAndGetElementImpl()
58 inline arkts::AnnotationElement Annotation::AddAndGetElement(const abckit::Value &val, std::string_… in AddAndGetElement()
68 inline AnnotationElement Annotation::AddAnnotationElement(std::string_view name, Value value) const in AddAnnotationElement()
81 inline Annotation Annotation::RemoveAnnotationElement(AnnotationElement elem) const in RemoveAnnotationElement()
Dannotation_interface.h47 * @brief Construct a new Annotation Interface object
60 * @brief Construct a new Annotation Interface object
73 * @brief Destroy the Annotation Interface object
78 * @brief Add new field to the annotation interface.
79 * @return Newly created annotation field.
80 * @param [ in ] type - Type that is used to create the field of the Annotation Interface.
81 * @param [ in ] value - Value that is used to create the field of the Annotation Interface.
82 * @param [ in ] name - Name that is used to create the field of the Annotation Interface.
87 …* @note Set `ABCKIT_STATUS_UNSUPPORTED` error if annotation interface itself doesn't have `ABCKIT_…
93 * @brief Remove field from the annotation interface.
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ts/
Dtest-type-annotation-expected.txt18 "program": "test-type-annotation.ts"
23 "program": "test-type-annotation.ts"
32 "program": "test-type-annotation.ts"
37 "program": "test-type-annotation.ts"
46 "program": "test-type-annotation.ts"
51 "program": "test-type-annotation.ts"
61 "program": "test-type-annotation.ts"
66 "program": "test-type-annotation.ts"
84 "program": "test-type-annotation.ts"
89 "program": "test-type-annotation.ts"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D18_annotations.rst21 *Annotation* is a special language element that changes the semantics of
24 The example below illustrates how an annotation is declared and used:
29 // Annotation declaration:
34 // Annotation use:
38 The annotation *ClassAuthor* in the example above adds metadata to
41 An annotation must be placed immediately before the declaration to which it is
42 applied. An annotation can include arguments as in the example above.
44 For an annotation to be used, the name of the annotation must be prefixed with
49 annotation
65 A :index:`compile-time error` occurs if the annotation name is not accessible
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/annotations/
Dannotations.rst16 An *annotation* is a special language element that changes the semantics of
19 The example below illustrates the declaring and using of an annotation:
24 // Annotation declaration:
29 // Annotation use:
33 The annotation *ClassAuthor* in the example above adds meta information to
36 An annotation must be placed immediately before the declaration it is applied to.
37 The annotation usage can include arguments as in the example above.
39 For an annotation to be used, its name must be prefixed with the symbol ``@``
49 A compile-time error occurs if the annotation
50 name is not accessible at the place of usage. An annotation declaration can be
[all …]
Danno2.txt24 Such annotation will be used by the compiler.
27 As an example of such annotation, the annotation ``@Deprecated``
37 The annotation ``@Deprecated`` indicates that the annotated declaration is
46 The annotation ``@Deprecated`` has no argument.
70 denotes the plugin name of the annotation.
75 annotation:
93 - Does plugin define syntax of annotation usage syntax?
/arkcompiler/runtime_core/libabckit/include/cpp/headers/core/
Dannotation.h27 * @brief Annotation
29 class Annotation : public ViewInResource<AbckitCoreAnnotation *, const File *> {
42 /// @brief abckit::DefaultHash<Annotation>
43 friend class abckit::DefaultHash<Annotation>;
47 using CoreViewT = Annotation;
51 * @brief Construct a new Annotation object
54Annotation(const Annotation &other) = default; // CC-OFF(G.CLS.07): design decision, detail: base…
59 * @return Annotation&
61 Annotation &operator=(const Annotation &other) = default;
64 * @brief Construct a new Annotation object
[all …]
Dannotation_element.h30 /// @brief core::Annotation
31 friend class core::Annotation;
32 /// @brief arkts::Annotation
33 friend class arkts::Annotation;
78 * @brief Returns binary file that the Annotation Element is a part of.
85 * @brief Returns name for annotation element.
93 * @brief Returns value for annotation element.
100 * @brief Returns annotation for Annotation Element.
101 * @return core::Annotation.
104 core::Annotation GetAnnotation() const;
Dclass_impl.h20 #include "annotation.h"
59 inline std::vector<core::Annotation> Class::GetAnnotations() const in GetAnnotations()
61 std::vector<core::Annotation> anns; in GetAnnotations()
63 Payload<std::vector<core::Annotation> *> payload {&anns, GetApiConfig(), GetResource()}; in GetAnnotations()
67 const auto &payload = *static_cast<Payload<std::vector<core::Annotation> *> *>(data); in GetAnnotations()
68 payload.data->push_back(core::Annotation(method, payload.config, payload.resource)); in GetAnnotations()
104 inline bool Class::GetAllAnnotationsInner(std::vector<core::Annotation> &anns) const in GetAllAnnotationsInner()
106 Payload<std::vector<core::Annotation> *> payload {&anns, GetApiConfig(), GetResource()}; in GetAllAnnotationsInner()
110 const auto &payload = *static_cast<Payload<std::vector<core::Annotation> *> *>(data); in GetAllAnnotationsInner()
111 payload.data->push_back(core::Annotation(method, payload.config, payload.resource)); in GetAllAnnotationsInner()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/
Dambient_annotations_bad_type03.ets21 /* @@? 18:2 Error TypeError: Field 'mutiArray' in annotation 'ClassAuthor' is declared in the ambie…
22 /* @@? 18:2 Error TypeError: Field 'color' in annotation 'ClassAuthor' is declared in the ambient d…
23 /* @@? 18:2 Error TypeError: Field 'testBools' in annotation 'ClassAuthor' is declared in the ambie…
24 /* @@? 18:2 Error TypeError: Field 'reviewers' in annotation 'ClassAuthor' is declared in the ambie…
25 /* @@? 18:2 Error TypeError: Field 'favorColor' in annotation 'ClassAuthor' is declared in the ambi…
26 /* @@? 18:2 Error TypeError: Field 'testBool' in annotation 'ClassAuthor' is declared in the ambien…
27 /* @@? 18:2 Error TypeError: Field 'reviewersAge' in annotation 'ClassAuthor' is declared in the am…
28 /* @@? 18:2 Error TypeError: Field 'authorAge' in annotation 'ClassAuthor' is declared in the ambie…
29 /* @@? 18:2 Error TypeError: Field 'authorName' in annotation 'ClassAuthor' is declared in the ambi…
Dannotation_for_union_type.ets31 /* @@? 20:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
32 /* @@? 20:48 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
33 /* @@? 23:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
34 /* @@? 23:47 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
35 /* @@? 26:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
36 /* @@? 26:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
37 /* @@? 29:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
38 /* @@? 29:41 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
39 /* @@? 29:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
Dannotation_for_boxing_type.ets29 /* @@? 20:23 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
30 /* @@? 21:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
31 /* @@? 22:25 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
32 /* @@? 23:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
33 /* @@? 24:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
34 /* @@? 25:26 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
35 /* @@? 26:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
36 /* @@? 27:24 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
Dannotation_for_types_in_class.ets36 /* @@? 20:22 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
37 /* @@? 22:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
38 /* @@? 25:29 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
39 /* @@? 28:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
40 /* @@? 28:45 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
41 /* @@? 31:39 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
42 /* @@? 31:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
43 /* @@? 31:59 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
Dannotation_for_type_parameter01.ets28 /* @@? 26:20 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
29 /* @@? 21:40 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
30 /* @@? 21:21 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
31 /* @@? 21:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
32 /* @@? 22:16 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
33 /* @@? 23:14 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
34 /* @@? 24:15 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
Dannotation_for_function_type.ets23 /* @@? 20:18 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
24 /* @@? 20:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
25 /* @@? 20:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
26 /* @@? 21:17 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
27 /* @@? 21:57 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
28 /* @@? 21:34 Error TypeError: Duplicate annotations are not allowed. The annotation 'Anno' has alre…
Dambient_annotations_bad_type02.ets34 /* @@@ label1 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'C…
36 …ield 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
37 /* @@@ label4 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'Cl…
38 …field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
39 …eld 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
40 …or field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
41 /* @@@ label7 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation
/arkcompiler/runtime_core/panda_guard/obfuscate/
Dannotation.cpp16 #include "annotation.h"
24 constexpr std::string_view TAG = "[Annotation]";
31 bool panda::guard::Annotation::IsWhiteListAnnotation(const std::string &name) in IsWhiteListAnnotation()
36 void panda::guard::Annotation::WriteNameCache(const std::string &filePath) in WriteNameCache()
45 void panda::guard::Annotation::Update() in Update()
47 LOG(INFO, PANDAGUARD) << TAG << "annotation update for:" << this->name_ << " start"; in Update()
52 LOG(INFO, PANDAGUARD) << TAG << "annotation obfName:" << obfRecordName; in Update()
60 LOG(INFO, PANDAGUARD) << TAG << "annotation update for:" << this->name_ << " end"; in Update()
63 void panda::guard::Annotation::RefreshNeedUpdate() in RefreshNeedUpdate()
69 void panda::guard::Annotation::WriteFileCache(const std::string &filePath) in WriteFileCache()
[all …]
Dprogram.cpp23 #include "annotation.h"
63 if (node->type_ == NodeType::ANNOTATION) { in CreateNode()
70 if (Annotation::IsWhiteListAnnotation(record.name)) { in CreateAnnotation()
77 "parse annotation get bad nodeName:" << nodeName); in CreateAnnotation()
78 auto annotation = std::make_shared<Annotation>(this, annoName); in CreateAnnotation() local
79 annotation->nodeName_ = nodeName; in CreateAnnotation()
80 annotation->recordName_ = record.name; in CreateAnnotation()
81 annotation->needUpdate_ = node->second->needUpdate_; in CreateAnnotation()
82 annotation->scope_ = TOP_LEVEL; in CreateAnnotation()
83 annotation->export_ = node->second->moduleRecord_.IsExportVar(annoName); in CreateAnnotation()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/assembler/extension/
Dmetadata.yaml49 - name: annotation
62 - name: annotation.type
71 - name: annotation.class
80 - name: annotation.id
89 - name: annotation.element.type
108 - value: annotation
116 - name: annotation.element.array.component.type
134 - value: annotation
141 - name: annotation.element.name
150 - name: annotation.element.value
/arkcompiler/ets_frontend/es2panda/ir/base/
Dannotation.cpp16 #include "annotation.h"
23 void Annotation::Iterate(const NodeTraverser &cb) const in Iterate()
28 void Annotation::Dump(ir::AstDumper *dumper) const in Dump()
30 …dumper->Add({{"type", "Annotation"}, {"expression", expr_}, {"name", nameView_}, {"isImported", is… in Dump()
33 void Annotation::Compile([[maybe_unused]] compiler::PandaGen *pg) const {} in Compile()
35 checker::Type *Annotation::Check([[maybe_unused]] checker::Checker *checker) const in Check()
40 void Annotation::UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) {} in UpdateSelf()
/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 …]
/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 …]
/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/ets_frontend/ets2panda/test/ast/compiler/ets/FixedArray/annotation_tests/
Dambient_annotations_bad_type02.ets34 /* @@@ label1 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'C…
36 …ield 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
37 /* @@@ label4 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'Cl…
38 …field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
39 …eld 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
40 …or field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
41 /* @@@ label7 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation

12345678910>>...24