Home
last modified time | relevance | path

Searched full:declaration (Results 1 – 25 of 819) sorted by relevance

12345678910>>...33

/arkcompiler/runtime_core/disassembler/tests/
Ddisassembler_user_annotations_test.cpp30 GRAPH_TEST_ABC_DIR "declaration-3d-array-boolean.abc";
32 GRAPH_TEST_ABC_DIR "declaration-3d-array-enum-number.abc";
34 GRAPH_TEST_ABC_DIR "declaration-3d-array-enum-string.abc";
36 GRAPH_TEST_ABC_DIR "declaration-3d-array-number.abc";
38 GRAPH_TEST_ABC_DIR "declaration-3d-array-string.abc";
40 GRAPH_TEST_ABC_DIR "declaration-array-boolean.abc";
42 GRAPH_TEST_ABC_DIR "declaration-array-enum-number.abc";
44 GRAPH_TEST_ABC_DIR "declaration-array-enum-string.abc";
46 GRAPH_TEST_ABC_DIR "declaration-array-number.abc";
48 GRAPH_TEST_ABC_DIR "declaration-array-string.abc";
[all …]
DBUILD.gn84 "declaration-3d-array-boolean",
85 "declaration-3d-array-enum-number",
86 "declaration-3d-array-enum-string",
87 "declaration-3d-array-number",
88 "declaration-3d-array-string",
89 "declaration-array-boolean",
90 "declaration-array-enum-number",
91 "declaration-array-enum-string",
92 "declaration-array-number",
93 "declaration-array-string",
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/08.reference_types/10.undefined_type/
Dundefined_incorrect_usage.params.yaml16 - { declaration: 'undefined class A {}', usage: 'let a = new A' }
17 - { declaration: 'class undefined {}', usage: 'let a = new undefined()' }
18 - { declaration: 'undefined interface I {}', usage: 'let a = 1' }
19 - { declaration: 'undefined function foo() { return 1}', usage: 'assert foo() == 2' }
20 - { declaration: 'function undefined() { return 1}', usage: 'assert undefined() == 1' }
21 - { declaration: 'undefined foo() { return 1}', usage: 'assert foo() == 1' }
22 - { declaration: 'function foo(undefined int) { return 1}', usage: 'assert foo() == undefined' }
23 - { declaration: 'class A { undefined:int = 1 }', usage: 'assert new A().undefined == 1' }
24 - { declaration: 'class A { static undefined:int = 1 }', usage: 'assert A.undefined == 1' }
25 …- { declaration: 'class A { undefined:undefined = undefined }', usage: 'assert new A().undefined =…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_warnings_tests/implicit_boxing_unboxing_tests/
Dimplicit_boxing_unboxing_1-expected.txt5 ETS Warning: Implicit Boxing to Char in Variable Declaration. [implicit_boxing_unboxing_1.sts:33:15]
6 ETS Warning: Implicit Boxing to Float in Variable Declaration. [implicit_boxing_unboxing_1.sts:34:2…
7 ETS Warning: Implicit Boxing to Double in Variable Declaration. [implicit_boxing_unboxing_1.sts:35:…
8 ETS Warning: Implicit Boxing to Short in Variable Declaration. [implicit_boxing_unboxing_1.sts:36:2…
9 ETS Warning: Implicit Boxing to Long in Variable Declaration. [implicit_boxing_unboxing_1.sts:37:20]
10 ETS Warning: Implicit Boxing to Int in Variable Declaration. [implicit_boxing_unboxing_1.sts:38:19]
11 ETS Warning: Implicit Boxing to Byte in Variable Declaration. [implicit_boxing_unboxing_1.sts:39:20]
12 ETS Warning: Implicit Boxing to Boolean in Variable Declaration. [implicit_boxing_unboxing_1.sts:40…
13 ETS Warning: Implicit Unboxing to char in Variable Declaration. [implicit_boxing_unboxing_1.sts:42:…
14 ETS Warning: Implicit Unboxing to float in Variable Declaration. [implicit_boxing_unboxing_1.sts:43…
[all …]
/arkcompiler/runtime_core/libabckit/scripts/
Ddyn_inst_constructors_gen.rb70 declaration = indent + "AbckitInst *(*Icreate#{inst.opcode})(\n"
72 declaration += indent + "/* in */ AbckitGraph *graph"
75 declaration += ",\n" + indent
76 declaration += "/* in */ AbckitInst *acc"
83 declaration += ",\n" + indent
84 declaration += "/* #{param.direction} */ "
88 declaration += "AbckitInst *input#{inst_input}"
91 declaration += "AbckitCoreFunction *method"
93 declaration += "AbckitLiteralArray *literalArray"
95 declaration += "AbckitString *string"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D14_ambients.rst27 Ambient declaration can be specified in :ref:`Declaration Modules` only.
32 ambient declaration
33 declaration
58 An ambient enumeration type declaration can be prefixed by the keyword
109 declaration
140 - Explicit return type is not specified for an ambient function declaration;
145 ambient function declaration
173 ambient function declaration
218 ambient field declaration
286 ambient indexer declaration
[all …]
D18_annotations.rst22 the declaration it is applied to by adding metadata.
29 // Annotation declaration:
39 the class declaration.
41 An annotation must be placed immediately before the declaration it is applied to.
52 declaration
53 class declaration
66 at the place of usage. An annotation declaration can be exported and used in
69 Multiple annotations can be applied to a single declaration:
93 The declaration of a *annotation* is similar to that of an interface where the
143 An annotation declaration does not define a type, and a type alias can be
[all …]
D10_interfaces.rst21 An interface declaration declares an *interface type*, i.e., a reference
31 interface declaration
104 An *interface declaration* specifies a new named reference type:
107 interface declaration
125 The *identifier* in an interface declaration specifies the interface name.
127 An interface declaration with ``typeParameters`` introduces a new generic
130 The scope of an interface declaration is defined in :ref:`Scopes`.
132 .. The interface declaration shadowing is specified in :ref:`Shadowing by Parameter`.
136 interface declaration
139 generic declaration
[all …]
D4_names.rst28 a type, a function, a method, etc.---is introduced via a *declaration*.
29 An entity declaration defines a *name* of the entity. The name is used to
30 refer to the entity further in the program text. The declaration binds the
44 declaration
115 A declaration introduces a named entity in an appropriate *declaration scope*
121 declaration scope
133 Each declaration in the declaration scope must be *distinguishable*.
140 - Different signatures (see :ref:`Declaration Distinguishable by Signatures`).
143 distinguishable declaration
144 declaration scope
[all …]
D9_classes.rst29 constructors (see :ref:`Constructor Declaration`).
31 The body of the declaration of a member comprises the scope of a
32 declaration (see :ref:`Scopes`).
41 class declaration
56 Every member is associated with the class declaration it is declared in.
77 class declaration
83 field declaration
84 method declaration
85 accessor declaration
86 constructor declaration
[all …]
D13_modules.rst36 - *Declaration modules* (discussed in detail in :ref:`Declaration Modules`), and
62 declaration
66 declaration module
111 imported declaration
115 top-level declaration
144 variable declaration
146 constant declaration
200 also :ref:`Declaration Modules`) available for use in the current compilation
203 An import declaration has two parts as follows:
220 import declaration
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/
Dambient_annotations_bad_type03.sts21 …eld 'mutiArray' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
22 …: Field 'color' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
23 …eld 'testBools' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
24 …eld 'reviewers' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
25 …ld 'favorColor' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
26 …ield 'testBool' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
27 … 'reviewersAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
28 …eld 'authorAge' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
29 …ld 'authorName' in annotation 'ClassAuthor' is declared in the ambient declaration but missing in …
/arkcompiler/ets_frontend/ets2panda/linter/test/rules/
Drule113.ts.json24 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
34 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
44 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
54 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
64 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
74 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
84 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
94 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
114 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
134 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
[all …]
Drule113.ts.autofix.json41 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
68 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
95 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
105 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
115 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
125 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
135 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
157 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
189 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
221 "rule": "\"enum\" declaration merging is not supported (arkts-no-enum-merging)",
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dambient_module.ts.json24 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)",
34 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside…
44 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)",
64 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside…
74 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)",
104 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)",
124 "rule": "Ambient module declaration is not supported (arkts-no-ambient-decls)",
/arkcompiler/runtime_core/static_core/plugins/ets/doc/annotations/
Dannotations.rst24 // Annotation declaration:
34 the class declaration.
36 An annotation must be placed immediately before the declaration it is applied to.
50 name is not accessible at the place of usage. An annotation declaration can be
53 Multiple annotations can be applied to one declaration:
69 Declaration of User-Defined Annotation
112 An annotation declaration does not define a type, so a type alias
147 annotation to a declaration,
162 An annotation declaration is presented in the example below:
270 To export an annotation its declaration must be marked with ``export`` keyword:
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/06.method_declarations/
Dmethod_declaration_with_existed_name.sts17 desc: Method declaration with existed name in class body declaration.
18 …the body of a class declaration to declare a method with the name that is already used for field o…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/09.constructor_declaration/
Dconstructor_declaration_with_type_arguments.sts17 desc: Class constructor declaration
18declaration starts with the constructor keyword and does not has a name. In all other respects, a …
Dconstructor_declaration.sts19 desc: Class constructor declaration
20declaration starts with the constructor keyword and does not has a name. In all other respects, a …
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/06.type_declarations/
Ddecl.sts19 Type declaration is either interface declaration, class declaration or
20 enum declaration. See corresponding chapters.
/arkcompiler/ets_frontend/arkguard/src/utils/
DTypeUtils.ts111 * Retrieves the symbol associated with the declaration site of the given symbol.
113 * This method resolves the symbol to its declaration site to ensure consistency
114 * in obfuscated naming. Obfuscation names are bound to the symbol at the declaration
115 * site. If the symbol at the declaration site differs from the symbol at the usage
117 * obfuscation name can be consistently retrieved from the declaration site symbol,
118 * ensuring uniformity between the declaration and usage sites.
134 …// However, for obfuscation purposes, we want to ensure that the symbol used in the declaration (i…
135 …// aligns with the current symbol (i.e., `B`), because this allows us to apply the declaration's o…
136 …// If the names don't match, we should avoid applying the declaration's obfuscation name to the cu…
/arkcompiler/runtime_core/static_core/runtime/templates/
Dintrinsics.h.erb44 …8_t, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration)
45 …6_t, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration)
46 …2_t, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration)
47 …4_t, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration)
48 …oat, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration)
49 …ble, uint32_t, uint32_t); // NOLINT(readability-named-parameter, readability-redundant-declaration)
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
DimportExportAccessValid.cpp65 const auto *decl = var->Declaration(); in ValidateExport()
87 …if (signature != nullptr && varCallee->Declaration() != nullptr && varCallee->Declaration()->Node(… in InvariantImportExportMethod()
88 !IsContainedIn(varCallee->Declaration()->Node(), signature->Owner()->GetDeclNode()) && in InvariantImportExportMethod()
89 varCallee->Declaration()->Node() != signature->Owner()->GetDeclNode()) { in InvariantImportExportMethod()
104 var->HasFlag(varbinder::VariableFlags::INITIALIZED) && var->Declaration() != nullptr && in InvariantImportExportVariable()
105 … var->Declaration()->Node() != nullptr && !var->Declaration()->Node()->IsMethodDefinition() && in InvariantImportExportVariable()
106 !var->Declaration()->Node()->IsClassProperty()) { in InvariantImportExportVariable()
107 auto varParent = var->Declaration()->Node()->Parent(); in InvariantImportExportVariable()
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Denum2.sts41 /* @@@ label Error SyntaxError: Local type declaration (class, struct, interface and enum) support …
42 /* @@@ label1 Error SyntaxError: Local type declaration (class, struct, interface and enum) support…
43 /* @@@ label2 Error SyntaxError: Local type declaration (class, struct, interface and enum) support…
44 /* @@@ label3 Error SyntaxError: Local type declaration (class, struct, interface and enum) support…
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe129.md17 // Declaration:
33 // Declaration:
46 - Recipe 128: Ambient module declaration is not supported (``arkts-no-ambient-decls``)

12345678910>>...33