| /arkcompiler/ets_frontend/ets2panda/test/parser/ts/ |
| D | test-enum-declaration-expected.txt | 14 "program": "test-enum-declaration.ts" 19 "program": "test-enum-declaration.ts" 34 "program": "test-enum-declaration.ts" 39 "program": "test-enum-declaration.ts" 47 "program": "test-enum-declaration.ts" 52 "program": "test-enum-declaration.ts" 66 "program": "test-enum-declaration.ts" 71 "program": "test-enum-declaration.ts" 85 "program": "test-enum-declaration.ts" 90 "program": "test-enum-declaration.ts" [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 14_ambients.rst | 21 *Ambient declaration* specifies an entity that is declared somewhere else. 32 ambient declaration 33 declaration 46 The syntax of *ambient declaration* is presented below: 63 An ambient enumeration type declaration can be prefixed by the keyword 77 ambient declaration 97 The syntax of *ambient constant declaration* is presented below: 115 constant, while the actual value must be provided when a non-ambient declaration 120 declaration 124 non-ambient declaration [all …]
|
| D | 18_annotations.rst | 22 the declaration to which it is applied by adding metadata. 29 // Annotation declaration: 39 the class declaration. 41 An annotation must be placed immediately before the declaration to which it is 52 declaration 53 class declaration 66 (see :ref:`Accessible`) at the place of usage. An annotation declaration can be 69 Multiple annotations can be applied to a single declaration: 82 annotation declaration 98 The syntax of *annotation declaration* is presented below: [all …]
|
| D | 10_interfaces.rst | 21 An interface declaration declares an *interface type*, i.e., a reference 31 interface declaration 100 *Interface declaration* specifies a new named reference type. 106 interface declaration 124 The *identifier* in an interface declaration specifies the interface name. 126 An interface declaration with ``typeParameters`` introduces a new generic 129 The scope of an interface declaration is defined in :ref:`Scopes`. 131 .. The interface declaration shadowing is specified in :ref:`Shadowing by Parameter`. 135 interface declaration 139 generic declaration [all …]
|
| D | 4_names.rst | 28 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 123 A declaration introduces a named entity in an appropriate *declaration scope* 129 declaration scope 141 Each declaration in the declaration scope must be *distinguishable*. 148 - Different signatures (see :ref:`Declaration Distinguishable by Signatures`). 151 distinguishable declaration 152 declaration scope [all …]
|
| D | 13_modules.rst | 36 - *Declaration modules* (discussed in detail in :ref:`Declaration Modules`), and 65 declaration 71 declaration module 121 imported declaration 125 top-level declaration 149 An import declaration has the following two parts: 163 import declaration 208 Each binding adds a declaration or declarations to the scope of a module 209 or a package (see :ref:`Scopes`). Any declaration added so must be 210 distinguishable in the declaration scope (see [all …]
|
| /arkcompiler/runtime_core/disassembler/tests/ |
| D | disassembler_user_annotations_test.cpp | 30 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 …]
|
| D | BUILD.gn | 100 "declaration-3d-array-boolean", 101 "declaration-3d-array-enum-number", 102 "declaration-3d-array-enum-string", 103 "declaration-3d-array-number", 104 "declaration-3d-array-string", 105 "declaration-array-boolean", 106 "declaration-array-enum-number", 107 "declaration-array-enum-string", 108 "declaration-array-number", 109 "declaration-array-string", [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | numeric_semantics2.ets.migrate.json | 24 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 34 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 44 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 54 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 104 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 114 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 124 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 134 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 144 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 154 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… [all …]
|
| D | numeric_semantics2.ets.json | 24 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 34 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 44 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 54 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 114 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 124 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 134 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 144 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 154 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 164 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… [all …]
|
| D | ambient_module.ets.json | 24 "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)",
|
| D | numeric_semantics2.ets.arkts2.json | 24 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 104 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 114 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 124 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 264 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 294 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 434 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 444 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 454 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… 464 …"rule": "Non-declaration statements in namespaces are not supported (single semicolons are conside… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/11.type_undefined/ |
| D | undefined_incorrect_usage.params.yaml | 16 - { 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: 'assertTrue(foo() == 2)' } 20 - { declaration: 'function undefined() { return 1}', usage: 'assertTrue(undefined() == 1)' } 21 - { declaration: 'undefined foo() { return 1}', usage: 'assertTrue(foo() == 1)' } 22 …- { declaration: 'function foo(undefined int) { return 1}', usage: 'assertTrue(foo() == undefined)… 23 - { declaration: 'class A { undefined:int = 1 }', usage: 'assertTrue(new A().undefined == 1)' } 24 - { declaration: 'class A { static undefined:int = 1 }', usage: 'assertTrue(A.undefined == 1)' } 25 …- { declaration: 'class A { undefined:undefined = undefined }', usage: 'assertTrue(new A().undefin… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_warnings_tests/implicit_boxing_unboxing_tests/ |
| D | implicit_boxing_unboxing_1-expected.txt | 5 Warning: Implicit Boxing to Char in Variable Declaration. [implicit_boxing_unboxing_1.ets:33:15] 6 Warning: Implicit Boxing to Float in Variable Declaration. [implicit_boxing_unboxing_1.ets:34:21] 7 Warning: Implicit Boxing to Double in Variable Declaration. [implicit_boxing_unboxing_1.ets:35:22] 8 Warning: Implicit Boxing to Short in Variable Declaration. [implicit_boxing_unboxing_1.ets:36:21] 9 Warning: Implicit Boxing to Long in Variable Declaration. [implicit_boxing_unboxing_1.ets:37:20] 10 Warning: Implicit Boxing to Int in Variable Declaration. [implicit_boxing_unboxing_1.ets:38:19] 11 Warning: Implicit Boxing to Byte in Variable Declaration. [implicit_boxing_unboxing_1.ets:39:20] 12 Warning: Implicit Boxing to Boolean in Variable Declaration. [implicit_boxing_unboxing_1.ets:40:23] 13 Warning: Implicit Boxing to Char in Variable Declaration. [implicit_boxing_unboxing_1.ets:42:20] 14 Warning: Implicit Boxing to Float in Variable Declaration. [implicit_boxing_unboxing_1.ets:43:22] [all …]
|
| /arkcompiler/ets_frontend/ets2panda/util/diagnostic/ |
| D | isolated_declgen.yaml | 16 message: Variable must have an explicit type annotation when using isolated declaration. 20 message: Parameter must have an explicit type annotation when using isolated declaration. 24 message: Property must have an explicit type annotation when using isolated declaration. 28 message: Objects that contain spread assignments cannot be inferred with isolated declaration. 32 message: Only const arrays can be inferred with isolated declaration. 36 …message: Declaration emit for this parameter requires implicitly adding undefined to its type, whi… 44 message: Function must have an explicit return type annotation when using isolated declaration. 48 message: Method must have an explicit return type annotation when using isolated declaration.
|
| /arkcompiler/runtime_core/libabckit/scripts/ |
| D | dyn_inst_constructors_gen.rb | 70 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/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/ |
| D | ambient_annotations_bad_type03.ets | 21 …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/ |
| D | rule113.ets.json | 24 "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 …]
|
| D | rule113.ets.autofix.json | 41 "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/test/unit/public/ |
| D | ast_verifier_check_struct_declaration_test.cpp | 35 … ASSERT_TRUE(Verify<CheckStructDeclaration>(ExpectVerifierMessage {"Struct declaration should"})); in TEST_F() 53 … ASSERT_TRUE(Verify<CheckStructDeclaration>(ExpectVerifierMessage {"Struct declaration should"})); in TEST_F() 67 … ASSERT_TRUE(Verify<CheckStructDeclaration>(ExpectVerifierMessage {"Struct declaration should"})); in TEST_F() 82 ExpectVerifierMessage {"Struct declaration should", "Struct declaration should"})); in TEST_F() 96 … ASSERT_TRUE(Verify<CheckStructDeclaration>(ExpectVerifierMessage {"Struct declaration should"})); in TEST_F() 113 … ASSERT_TRUE(Verify<CheckStructDeclaration>(ExpectVerifierMessage {"Struct declaration should"})); in TEST_F() 127 … ASSERT_TRUE(Verify<CheckStructDeclaration>(ExpectVerifierMessage {"Struct declaration should"})); in TEST_F() 141 … ASSERT_TRUE(Verify<CheckStructDeclaration>(ExpectVerifierMessage {"Struct declaration should"})); in TEST_F() 153 … ASSERT_TRUE(Verify<CheckStructDeclaration>(ExpectVerifierMessage {"Struct declaration should"})); in TEST_F()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/04.array_literal/01.type_inference_from_context/ |
| D | arr_inf_decl.params.yaml | 16 # declaration context 18 // declaration context, array of primitives 26 // declaration context, array of primitives 32 // declaration context, array of array of primitives 39 // declaration context, array of primitives 46 // declaration context, array of boxed 54 // declaration context, array of boxed 60 // declaration context, array of boxed 67 // declaration context, array of array of boxed 74 // declaration context, array of strings [all …]
|
| D | arr3_inf_decl.params.yaml | 16 # declaration context 18 // declaration context, array of primitives 26 // declaration context, array of primitives 32 // declaration context, array of array of primitives 39 // declaration context, array of primitives 46 // declaration context, array of boxed 54 // declaration context, array of boxed 60 // declaration context, array of boxed 67 // declaration context, array of array of boxed 74 // declaration context, array of strings [all …]
|
| D | arr2_inf_decl.params.yaml | 16 # declaration context 18 // declaration context, array of primitives 26 // declaration context, array of primitives 32 // declaration context, array of array of primitives 39 // declaration context, array of primitives 46 // declaration context, array of boxed 54 // declaration context, array of boxed 60 // declaration context, array of boxed 67 // declaration context, array of array of boxed 74 // declaration context, array of strings [all …]
|
| D | tup_inf_decl.params.yaml | 16 # declaration context 18 // declaration context, tuple of primitives 24 // declaration context, tuple of primitives 32 // declaration context, tuple of boxed 40 // declaration context, tuple of boxed 48 // declaration context, tuple of strings 58 // declaration context, tuple of class objects 66 // declaration context, tuple of tuple 74 // declaration context, tuple of tuple of primitives 83 // declaration context, tuple of tuple of boxed [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/annotations/ |
| D | annotations.rst | 24 // 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 …]
|