Home
last modified time | relevance | path

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

12345678910>>...16

/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 …]
Dclass.h79 * @brief Remove annotation from the class declaration.
80 * @param [ in ] anno - Annotation to remove.
86 Class RemoveAnnotation(arkts::Annotation anno) const;
89 * @brief Add annotation to the class declaration.
90 * @return Newly created annotation.
91 * @param [ in ] ai - Annotation Interface that is used to create the annotation.
97 Annotation AddAnnotation(AnnotationInterface ai);
Dfunction.h83 * @brief Function to add annotation to.
84 * @return Newly created annotation.
85 * @param [ in ] ai - Annotation Interface that is used to create the annotation.
91 Annotation AddAnnotation(AnnotationInterface ai) const;
94 * @brief Remove annotation from the function.
95 * @param [ in ] anno - Annotation to remove from the function `function`.
101 Function RemoveAnnotation(Annotation anno) const;
Dfunction_impl.h20 #include "./annotation.h"
21 #include "../core/annotation.h"
45 inline Annotation Function::AddAnnotation(AnnotationInterface ai) const in AddAnnotation()
54 return Annotation(core::Annotation(coreAnno, GetApiConfig(), GetResource())); in AddAnnotation()
57 inline Function Function::RemoveAnnotation(Annotation anno) const in RemoveAnnotation()
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D18_annotations.rst21 An *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 meta information to
41 An annotation must be placed immediately before the declaration it is applied to.
42 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 …]
Dannotation_interface.h32 /// @brief core::Annotation
33 friend class core::Annotation;
49 * @brief Construct a new Annotation Interface object
62 * @brief Construct a new Annotation Interface object
75 * @brief Destroy the Annotation Interface object
80 * @brief Returns binary file that the given Annotation Interface is a part of.
87 * @brief Returns name for annotation interface.
102 * @brief Returns module for annotation interface.
110 * @brief Enumerates fields of Annotation Interface, invoking callback `cb` for each field.
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/
Dambient_annotations_bad_type03.sts21 /* @@? 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…
DannotationDecl_bad_type.sts24 … TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these…
25 … TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these…
26 … TypeError: Invalid annotation field type. Only numeric, boolean, string, enum, or arrays of these…
Dambient_annotations_bad_type02.sts34 /* @@? 20:16 Error TypeError: Field 'authorAge' has a type mismatch with the ambient annotation 'Cl…
36 …ield 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
37 /* @@? 21:15 Error TypeError: Field 'testBool' has a type mismatch with the ambient annotation 'Cla…
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 /* @@? 25:22 Error TypeError: Field 'reviewersAge' has a type mismatch with the ambient annotation
Dambient_annotations_bad_type01.sts35 …eld 'authorName' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
37 …ield 'authorAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
39 …field 'testBool' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
41 …eld 'favorColor' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
44 …or field 'color' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
47 …ield 'reviewers' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
50 …d 'reviewersAge' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
53 …ield 'testBools' does not match the expected definition in the ambient annotation 'ClassAuthor'. …
/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/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/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/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/libabckit/include/c/extensions/arkts/
Dmetadata_arkts.h233 * Annotation
240 * @param [ in ] anno - Annotation to convert.
249 * @param [ in ] anno - Annotation to convert.
264 * @param [ in ] annoElem - Annotation element to convert.
274 * @param [ in ] annoElem - Annotation element to convert.
316 * @param [ in ] annoInterfaceField - Annotation inteface field to convert.
326 * @param [ in ] annoInterfaceField - Annotation inteface field to convert.
336 * @brief Struct that is used to create new annotation interfaces.
340 * @brief Name of the created annotation interface.
346 * @brief Struct that is used to create new annotation interface fields.
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dunexpected_token_33.sts20 /* @@? 16:12 Error SyntaxError: Field type annotation expected */
21 /* @@? 16:14 Error SyntaxError: Field type annotation expected */
23 /* @@? 16:22 Error SyntaxError: Field type annotation expected */
24 /* @@? 16:23 Error SyntaxError: Field type annotation expected */
26 /* @@? 16:25 Error SyntaxError: Field type annotation expected */
28 /* @@? 16:26 Error SyntaxError: Field type annotation expected */
/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/linter/test/main/
Dsendable_explicit_field_type.ts.json544 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
554 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
564 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
574 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
584 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
594 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
604 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
624 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
634 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
644 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
[all …]

12345678910>>...16