Searched full:can (Results 1 – 25 of 1971) sorted by relevance
12345678910>>...79
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | class_as_object_1.sts | 19 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 20 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 21 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 22 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 23 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 24 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 25 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 26 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 27 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ 28 /* @@? 16:13 Error TypeError: Class name can't be the argument of function or method. */ [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/main/ |
| D | sendable_function.ts.json | 24 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-functio… 44 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-functio… 54 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" typeAlias (arkts-sendable-typeal… 64 …"rule": "Only \"FunctionType\" can declare \"Sendable\" typeAlias (arkts-sendable-typeAlias-declar… 74 …"rule": "Only \"FunctionType\" can declare \"Sendable\" typeAlias (arkts-sendable-typeAlias-declar… 84 …"rule": "Only \"FunctionType\" can declare \"Sendable\" typeAlias (arkts-sendable-typeAlias-declar… 94 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 104 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 114 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco… 124 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-functio… [all …]
|
| D | shared_module.ts.json | 24 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 34 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 44 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 54 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 64 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 74 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 84 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 94 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 114 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 124 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… [all …]
|
| D | sendable_captured_variables.ts.json | 24 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 34 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 44 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 54 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 64 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 74 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 84 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 94 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 104 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 114 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… [all …]
|
| D | sendable_class_decorator.sts | 35 @NonSendable // ERROR, only `@Sendable` can be used on a sendable class declaration 38 @SomeDecorator // ERROR, no decorators can be used in a sendable class 43 @SomeDecorator // ERROR, no decorators can be used in a sendable class 46 … myMethod2(@SomeDecorator param: string) {} // ERROR, no decorators can be used in a sendable class 48 @SomeDecorator // ERROR, no decorators can be used in a sendable class 52 @SomeDecorator // ERROR, no decorators can be used in a sendable class
|
| D | sendable_decorator_limited.ts.json | 24 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 34 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 44 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 54 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 64 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 74 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"…
|
| D | sendable_class_initialization.ts.json | 34 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 44 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 64 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 84 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 104 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 114 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 124 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 134 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal…
|
| D | es_object.sts | 176 foo2({ k: 'k', h: {t: 1}}) // we can assign anything to the esobject, even untyped literal 177 let q1: ESObject = 1; // CTE - ``ESObject`` typed variable can only be local 178 let q2: ESObject = fooOh(); // CTE - ``ESObject`` typed variable can only be local 179 let q3: ESObject = q2; // CTE - ``ESObject`` typed variable can only be local 182 let e2: ESObject = 1; // CTE - can't initialize ESObject with not dynamic values 183 let e3: ESObject = {}; // CTE - can't initialize ESObject with not dynamic values 184 let e4: ESObject = []; // CTE - can't initialize ESObject with not dynamic values 185 let e5: ESObject = ""; // CTE - can't initialize ESObject with not dynamic values 188 e6['prop'] // CTE - can't access dynamic properties of ESObject 189 e6[1] // CTE - can't access dynamic properties of ESObject [all …]
|
| D | object_literals_properties.ts.arkts2.json | 34 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)", 44 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)", 54 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)", 74 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)", 84 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)", 94 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)", 104 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)", 114 … "rule": "Object literal properties can only contain name-value pairs (arkts-obj-literal-props)",
|
| D | sendable_class_decorator.ts.json | 24 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco… 34 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco… 44 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco… 54 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco… 64 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco… 74 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco…
|
| D | sendable_decorator_limited.ts.autofix.json | 31 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 48 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 65 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 82 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 99 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"… 116 …"rule": "The \"@Sendable\" decorator can only be used on \"class\", \"function\" and \"typeAlias\"…
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| D | recipe151.md | 11 with ``ESObject`` type is also limited. Such variables can only be initialized 15 of type ``ESObject`` can only be passed to interop calls and assigned to other 28 let e0: ESObject = foo(); // CTE - ``ESObject`` typed variable can only be local 32 let e2: ESObject = 1; // CTE - can't initialize ESObject with not dynamic values 33 let e3: ESObject = {}; // CTE - can't initialize ESObject with not dynamic values 34 let e4: ESObject = []; // CTE - can't initialize ESObject with not dynamic values 35 let e5: ESObject = ""; // CTE - can't initialize ESObject with not dynamic values 36 e5['prop'] // CTE - can't access dynamic properties of ESObject 37 e5[1] // CTE - can't access dynamic properties of ESObject 38 e5.prop // CTE - can't access dynamic properties of ESObject
|
| /arkcompiler/ets_frontend/test/scripts/sdk_test/ |
| D | readme.md | 3 This test suite can perform end-to-end SDK test verification. There are two ways to perform verific… 5 2) Verify if the application of the compiled package can run normally (this feature is under develo… 15 …rs of Deveco and the test application. Detailed configuration instructions can be found in the fil… 16 …ew test application, you can modify the config.yaml configuration file and add the configuration u… 20 The test functionality requires a connection to the RK board for testing. You can control whether t… 28 By default, it will run all the test items. Optional parameters can be viewed through `--help`.
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/rules/ |
| D | rule163.ts.json | 24 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 34 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 44 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 54 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 64 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 74 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 84 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 104 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)… 114 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)…
|
| D | rule151.sts | 176 foo2({ k: 'k', h: {t: 1}}) // we can assign anything to the esobject, even untyped literal 177 let q1: ESObject = 1; // CTE - ``ESObject`` typed variable can only be local 178 let q2: ESObject = fooOh(); // CTE - ``ESObject`` typed variable can only be local 179 let q3: ESObject = q2; // CTE - ``ESObject`` typed variable can only be local 182 let e2: ESObject = 1; // CTE - can't initialize ESObject with not dynamic values 183 let e3: ESObject = {}; // CTE - can't initialize ESObject with not dynamic values 184 let e4: ESObject = []; // CTE - can't initialize ESObject with not dynamic values 185 let e5: ESObject = ""; // CTE - can't initialize ESObject with not dynamic values 188 e6['prop'] // CTE - can't access dynamic properties of ESObject 189 e6[1] // CTE - can't access dynamic properties of ESObject [all …]
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | checkcast.yaml | 48 Resolve object type by specified id and if an object in accumulator can be cast to the 58 description: Check that null object reference can be cast to any type 61 'null' object reference can be cast to every type. 100 description: Check that null object reference can be cast to any type 103 'null' object reference can be cast to every type. 150 description: Check that null object reference can be cast to any array type 153 'null' object reference can be cast to every type. 193 description: Check that null object reference can be cast to any array type 196 'null' object reference can be cast to every type. 243 description: Check that any object can be cast to the base type [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/ |
| D | classes.rst | 38 After the class is defined, its instances can be created by using 46 Similarly, an instance can be created by using object literals: 62 Classes can have instance fields, static fields, or both. 144 // that name can be undefined. The most correct would be 193 // name can be "undefined", so we cannot say to those who use this API 219 Setters and getters can be used to provide controlled access to object 243 A class can define a getter, a setter, or both. 252 A class can define instance methods, static methods, or both. 253 A ``static`` method belongs to the class itself. It can access 255 An instance method can access both ``static`` (class) fields [all …]
|
| D | generics.rst | 26 A class and an interface can be defined as generics that add parameters to 61 Type parameters of generic types can have constraints. For example, the ``Key`` 78 of a ``Hashable`` interface can be called for keys. 85 A generic function can be used to create a more universal code. Consideration 86 can be given to a function that returns the last element of the array: 95 If the same function needs to be defined for any array, then it can be 104 The function so defined can be used with any array. 106 In a function call, type argument can be set explicitly or implicitly: 123 Type parameters of generic types can have defaults.
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ts/ |
| D | test6.ts.json | 44 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 54 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 64 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 74 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 84 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 94 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 104 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 114 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal… 124 …"rule": "Objects of \"Sendable\" type can not be initialized using object literal or array literal…
|
| D | test2.ts.json | 24 … "rule": "In ts files, entities from ets files can not be re-exported (arkts-no-ts-re-export-ets)", 34 … "rule": "In ts files, entities from ets files can not be re-exported (arkts-no-ts-re-export-ets)", 44 … "rule": "In ts files, entities from ets files can not be re-exported (arkts-no-ts-re-export-ets)", 54 … "rule": "In ts files, entities from ets files can not be re-exported (arkts-no-ts-re-export-ets)", 64 … "rule": "In ts files, entities from ets files can not be re-exported (arkts-no-ts-re-export-ets)", 74 … "rule": "In ts files, entities from ets files can not be re-exported (arkts-no-ts-re-export-ets)",
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | checkcast.yaml | 27 Resolve object type by specified id and if an object in accumulator can be cast to the 36 description: Check that null object reference can be cast to any type 39 'null' object reference can be cast to every type. 76 description: Check that null object reference can be cast to any array type 79 'null' object reference can be cast to every type. 117 description: Check that any object can be cast to the base type 119 … description: Object of type O can be cast to type T if O is the same as T or is subtype of T. 159 description: Check that any object can be cast to its type 161 … description: Object of type O can be cast to type T if O is the same as T or is subtype of T. 201 description: Check that any array can be cast to base type [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sendable/ |
| D | sendable.ts | 16 // 1. sendable can only inherit from sendable 66 // 2. non-sendable can not inherit from sendable 96 // 3. non-sendable can not implement sendable 98 // 4. sendable can only contain sendable 161 // 6. sendable can not use ! assertion 163 // 7. sendable can not use computeed property names 165 // 8. sendable can not use variables in current context 190 // 9. sendable can not use decorator except @sendable 211 // 10. sendable can not be initial with object or array 213 // 11. non-sendable can not be `as` sendable [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | memory-management-SW-requirements.md | 12 Garbage collector(GC) automatically recycles memory that it can prove will never be used again. 21 - Arena Allocator (objects can be deallocated at once(list of arenas, almost at once - O(number of … 37 - Concurrent generational GC (optional - we can disable generational mode) 51 We can use profile to choose MM configuration for application (for example: we can choose non-compa…
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | memory-management-SW-requirements.md | 12 Garbage collector(GC) automatically recycles memory that it can prove will never be used again. 21 - Arena Allocator (objects can be deallocated at once(list of arenas, almost at once - O(number of … 37 - Concurrent generational GC (optional - we can disable generational mode) 51 We can use profile to choose MM configuration for application (for example: we can choose non-compa…
|
| /arkcompiler/runtime_core/docs/changelogs/ |
| D | 2022-08-18-isa-changelog.md | 14 2. We remove the prefix of ecmascript specific opcodes, such that most of the bytecode opcode can b… 18 …of some opcodes (about immediate number and accumulator), so that the bytecode can be more compact. 24 such that runtime can distinguish the "define-function" operations of different kinds. 25 We also add header index in function such that runtime can access IndexHeader more efficiently. 34 such that the instructions can get consective indexes for methodId, stringId and literalarrayId. 46 4. The layout of literalarrays can be random.
|
12345678910>>...79