| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | sendable_explicit_field_type.ets.migrate.json | 184 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 194 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 204 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 214 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 234 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 244 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 264 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 274 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 284 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 294 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… [all …]
|
| D | sendable_explicit_field_type.ets.json | 184 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 194 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 204 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 214 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 234 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 244 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 264 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 274 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 284 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 294 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… [all …]
|
| D | sendable_explicit_field_type.ets.autofix.json | 184 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 194 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 204 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 214 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 234 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 244 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 264 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 274 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 284 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 294 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… [all …]
|
| D | sendable_explicit_field_type_2.ets.json | 24 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 34 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 44 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 54 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 64 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 74 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 94 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 104 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
|
| D | sendable_explicit_field_type_2.ets.autofix.json | 31 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 48 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 65 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 82 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 99 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 116 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 136 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)", 146 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)",
|
| D | sendable_class_interface_property.ets.json | 34 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 44 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 54 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 64 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 74 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 84 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 94 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 104 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 114 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… 124 …"rule": "Properties in \"Sendable\" classes and interfaces must have a Sendable data type (arkts-s… [all …]
|
| D | class_no_constructor.ets.arkts2.json | 24 "rule": "Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)", 34 "rule": "Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)", 44 "rule": "Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)", 54 "rule": "Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)",
|
| D | class_no_constructor.ets.migrate.json | 24 "rule": "Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)", 34 "rule": "Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)", 44 "rule": "Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)", 54 "rule": "Objects have no constructor property in ArkTS1.2 (arkts-obj-no-constructor)",
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | InvalidClasses.ets | 83 /* @@? 17:20 Error TypeError: Only abstract or native methods can't have body. */ 85 /* @@? 18:30 Error TypeError: Native, Abstract and Declare methods cannot have body. */ 88 /* @@? 22:20 Error TypeError: Invalid method modifier(s): an abstract method can't have private, ov… 89 /* @@? 22:46 Error TypeError: Native, Abstract and Declare methods cannot have body. */ 95 /* @@? 41:5 Error SyntaxError: The special predefined method '$_get' should have exactly one requir… 98 /* @@? 45:5 Error SyntaxError: The special predefined method '$_set' should have exactly two requir… 100 /* @@? 45:16 Error TypeError: Only abstract or native methods can't have body. */ 102 /* @@? 47:5 Error SyntaxError: The special predefined method '$_iterator' should not have parameter… 109 /* @@? 58:22 Error TypeError: Native and Declare methods should have explicit return type. */ 112 /* @@? 58:25 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/util/ |
| D | GetHashTest.ets | 48 assertEQ(result1, result2, "The same object should have the same hash code"); 55 assertEQ(result1, result2, "The same object should have the same hash code"); 72 assertEQ(result1, result2, "The same object should have the same hash code"); 79 assertEQ(result1, result2, "The same object should have the same hash code"); 86 assertEQ(result1, result2, "The same object should have the same hash code"); 93 assertEQ(result1, result2, "The same object should have the same hash code"); 101 assertTrue(result1 !== result2, "The different object should have the different hash code"); 115 assertTrue(result1 !== result2, "The different object should have the different hash code"); 123 assertTrue(result1 !== result2, "The different object should have the different hash code"); 132 assertNE(result1, result2, "The object should have the different hash code"); [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. 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.
|
| D | syntax.yaml | 21 message: "Files '{}' and '{}' are in the same folder, but have different package names." 29 message: "Ambient class declarations must have a body." 41 …message: "Annotation conflict! Multiple namespace declarations for '{}' cannot each have annotatio… 93 message: "An index signature must have a type annotation." 101 message: "Extension Getter can only have 1 parameter." 105 message: "Extension Setter can only have 2 parameters." 109 message: "Annotation property can not have access modifiers." 113 message: "Annotation can not have method as property." 133 message: "Local class or interface declaration members can not have access modifies." 141 message: "Private interface methods must have body." [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/ |
| D | MultiPropertyWithSameName.ets | 37 /* @@? 22:5 Error TypeError: An object literal cannot have multiple properties with the same name. … 38 /* @@? 27:5 Error TypeError: An object literal cannot have multiple properties with the same name. … 39 /* @@? 28:5 Error TypeError: An object literal cannot have multiple properties with the same name. … 40 /* @@? 33:5 Error TypeError: An object literal cannot have multiple properties with the same name. …
|
| D | fuzzing_invalid_override.ets | 29 /* @@? 21:12 Error TypeError: Only abstract or native methods can't have body. */ 30 /* @@? 21:12 Error TypeError: Only abstract or native methods can't have body. */ 49 /* @@? 22:30 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ 55 /* @@? 23:23 Error TypeError: Only abstract or native methods can't have body. */ 56 /* @@? 23:23 Error TypeError: Only abstract or native methods can't have body. */ 57 /* @@? 23:29 Error SyntaxError: Parameter declaration should have an explicit type annotation. */ 58 /* @@? 23:34 Error SyntaxError: Parameter declaration should have an explicit type annotation. */
|
| D | set_init_without_param.ets | 18 /* @@? 16:1 Error SyntaxError: Extension Setter can only have 2 parameters. */ 19 /* @@? 16:5 Error TypeError: Only abstract or native methods can't have body. */ 22 /* @@? 23:1 Error SyntaxError: Extension Accessor must have a receiver. */
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/json/ |
| D | JsonElementTest.ets | 43 …nedElem.jsonType, jsonx.JsonType.JsonUndefined, "Undefined element should have JsonUndefined type"… 44 …hStatic.jsonType, jsonx.JsonType.JsonUndefined, "Undefined element should have JsonUndefined type"… 72 …arktest.assertEQ(nullElem.jsonType, jsonx.JsonType.JsonNull, "Null element should have JsonNull ty… 97 …stringElem.jsonType, jsonx.JsonType.JsonString, "Element with string should have JsonString type"); 101 …doubleElem.jsonType, jsonx.JsonType.JsonNumber, "Element with double should have JsonNumber type"); 105 …tegerElem.jsonType, jsonx.JsonType.JsonNumber, "Element with integer should have JsonNumber type"); 109 …arktest.assertEQ(trueElem.jsonType, jsonx.JsonType.JsonTrue, "Element with true should have JsonTr… 113 …arktest.assertEQ(falseElem.jsonType, jsonx.JsonType.JsonFalse, "Element with false should have Jso… 116 …lem.jsonType, jsonx.JsonType.JsonUndefined, "Element with no value should have JsonUndefined type"… 120 …arktest.assertEQ(arrayElem.jsonType, jsonx.JsonType.JsonArray, "Element with array should have Jso… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/interop/ |
| D | interop_not_have_property_num_arkts2.ets.arkts2.json | 34 "rule": "Interop object does not have property num (arkts-interop-js2s-unary-op)", 54 "rule": "Interop object does not have property num (arkts-interop-js2s-unary-op)", 74 "rule": "Interop object does not have property num (arkts-interop-js2s-unary-op)", 94 "rule": "Interop object does not have property num (arkts-interop-js2s-unary-op)", 114 "rule": "Interop object does not have property num (arkts-interop-js2s-unary-op)", 134 "rule": "Interop object does not have property num (arkts-interop-js2s-unary-op)", 154 "rule": "Interop object does not have property num (arkts-interop-js2s-unary-op)", 174 "rule": "Interop object does not have property num (arkts-interop-js2s-unary-op)",
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/CompilerErrorsTemporary/ |
| D | syntax.yml | 29 …message: "Ambient class declarations must have a body." // AVK: '{' ambientClassBodyDeclaration* '… 41 …message: "Namespace multiple declarations for '{}' have different annotations. There must be only … 93 message: "An index signature must have a type annotation." 101 message: "Extension getter must have only 1 parameter." // AVK: English fixed 105 message: "Extension setter must have only 2 parameters." // AVK: English fixed 109 …message: "Annotation property can not have access modifiers." // AVK: Exmaple needed to see an err… 113 …message: "Annotation can not have a method as a property." // AVK: English fixed. Code exampe is n… 133 …message: "Local class or interface declaration members can not have access modifies." // AVK: Why … 141 message: "Private interface methods must have body." 245 message: "Getter must not have formal parameters." [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | ReflectGetBadCases.ets | 59 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1 65 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1 71 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1 77 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1 83 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1 89 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1 95 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1 101 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1 107 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/concurrency/ |
| D | 01_concurrency_overview.rst | 22 In modern world most of the hardware have multiple number of cores. To achieve maximum performance … 24 Besides that it is various number of asynchronous API in different level, so it is crucial to have … 34 In |LANG| we have API for the asynchronous programming(i.e. some tasks can be suspended and resumed… 37 …s and to provide machinery to make trustworthy concurrent programs easily, |LANG| have these items: 51 - EA - for each EAcoroutine we have such domain on which the EA coroutine is running exclusively 77 In general we can have these root coroutines: 98 …have M:N scheduling, i.e. for M coroutines execution N OS-threads are used. The only special threa… 100 We have different types of coroutines in |LANG|: 106 …robably this code was just migrated as it is from JS/TS code and we don't have guarantee that it i… 126 The reason to have different types of coroutines is to isolate code which is not suitable to use in… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
| D | README.md | 13 2. Builder constructor have `Allocator` argument, that must be sended. 14 …uments for construct node we have methods that starts with `Set` or `Add`. For all necessary field… 15 4. All builders have method `SetParent`, it can be used for set parent node.
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/sdkwhite/ |
| D | decl_with_duplicate_name_sdk.ets.arkts2.json | 24 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 34 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 54 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 64 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 114 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 134 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 144 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 154 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 164 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… 174 …"rule": "API path have changed - please update your imports accordingly (sdk-no-decl-with-duplicat… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/06.callable_types/02.callable_types_with_instantiate_method/ |
| D | ct_inst_access.ets | 19 The method instantiate can have an arbitrary signature by itself. 21 must be a factory. The method can have or not have other parameters,
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/extension_accessor_tests/ |
| D | extensionAccessorMissingReceiver.ets | 26 /* @@@ label1 Error SyntaxError: Extension Accessor must have a receiver. */ 27 /* @@@ label2 Error SyntaxError: Extension Setter can only have 2 parameters. */ 28 /* @@@ label3 Error SyntaxError: Extension Accessor must have a receiver. */
|
| /arkcompiler/runtime_core/libabckit/tests/clean_scenarios/c_api/dynamic/router_table/ |
| D | README.md | 3 Suppose that we have many annotated classes and one map, we need to collect all these classes and c… 11 We have such classes: 44 // we have many such imports
|