| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/ |
| D | string_api.sts | 35 assert chars.length == 5: "Chars length must be 5"; 36 assert chars[0] == c'h': "First letter must be `h`"; 37 assert chars[1] == c'e': "Second letter must be `e`"; 38 assert chars[2] == c'l': "Third letter must be `l`"; 39 assert chars[3] == c'l': "Fourth letter must be `l`"; 40 assert chars[4] == c'o': "Fifth letter must be `o`"; 44 assert byteChars[0] == 98: "First byte must be 98"; 45 assert byteChars[1] == 121: "Second byte must be 121"; 46 assert byteChars[2] == 116: "Third byte must be 116"; 47 assert byteChars[3] == 101: "Fourth byte must be 101"; [all …]
|
| /arkcompiler/ets_runtime/test/sharedtest/sharedcollectionsexception/ |
| D | expect_output.txt | 15 call boundAt fail. err: BusinessError: The at method cannot be bound., errCode: 10200011 16 Call boundConcat fail. err: BusinessError: The concat method cannot be bound., errCode: 10200011 17 Call boundEntries failed. err: BusinessError: The entries method cannot be bound., errCode: 10200011 18 Call boundFill failed. err: BusinessError: The fill method cannot be bound., errCode: 10200011 19 Call boundFilter failed. err: BusinessError: The filter method cannot be bound., errCode: 10200011 20 Call boundFind failed. err: BusinessError: The find method cannot be bound., errCode: 10200011 21 Call boundFindIndex failed. err: BusinessError: The findIndex method cannot be bound., errCode: 102… 22 Call boundForEach failed. err: BusinessError: The forEach method cannot be bound., errCode: 10200011 23 Call boundIndexOf failed. err: BusinessError: The indexOf method cannot be bound., errCode: 10200011 24 Call boundJoin failed. err: BusinessError: The join method cannot be bound., errCode: 10200011 [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | sendable_class_interface_property.sts | 65 prop1: string[]; // ERROR, sendable class property cannot be array 66 prop2: NonSendableClass2; // ERROR, sendable class property cannot be non-sendable-class 67 …prop3: NonSendableClass2 | null; // ERROR, sendable class property cannot be non-sendable-class un… 68 …prop4: NonSendableInterface | number; // ERROR, sendable class property cannot be non-sendable-cla… 69 …prop5: NonSendableClass2 | null | undefined; // ERROR, sendable class property cannot be non-senda… 70 prop6: alias2; // ERROR, sendable class property cannot be non-sendable-type 71 prop7: alias3; // ERROR, sendable class property cannot be non-sendable-type 72 prop8: RegularEnum; // ERROR, sendable class property cannot be non-sendable-type 73 prop9: RegularEnum1; // ERROR, sendable class property cannot be non-sendable-type 74 prop10: RegularEnum2; // ERROR, sendable class property cannot be non-sendable-type [all …]
|
| D | sendable_function.ts.json | 21 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-functio… 33 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-functio… 39 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" typeAlias (arkts-sendable-typeAl… 64 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 71 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 78 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" class (arkts-sendable-class-deco… 84 …"rule": "Only \"@Sendable\" decorator can be used on \"Sendable\" function (arkts-sendable-functio… 90 …"rule": "Only imported variables can be captured by \"Sendable\" function (arkts-sendable-function… 96 …"rule": "Only imported variables can be captured by \"Sendable\" function (arkts-sendable-function… 110 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda… [all …]
|
| D | sendable_captured_variables.ts.json | 22 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 29 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 36 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 43 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 50 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 57 …"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… 71 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 78 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… 85 …"rule": "Only imported variables can be captured by \"Sendable\" class (arkts-sendable-imported-va… [all …]
|
| D | shared_module.ts.json | 22 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 29 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 36 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 43 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 50 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 57 …"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)" 71 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 85 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" 92 …"rule": "Only \"Sendable\" entities can be exported in shared module (arkts-shared-module-exports)" [all …]
|
| D | sendable_generic_types.ts.json | 21 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda… 28 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda… 35 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda… 42 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda… 49 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 56 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 63 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 70 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda… 77 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda… 84 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda… [all …]
|
| D | type_literals.ts.json | 22 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 29 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 36 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 43 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 50 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 57 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 64 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 71 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 78 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" 85 … "rule": "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)" [all …]
|
| D | class_as_object.ts.json | 20 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 27 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 34 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 41 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 55 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 62 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 76 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 83 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 97 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" 104 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)" [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | string_split_test.sts | 29 let str = "It can't be - there must be a gap in between!"; 31 assert arr.length == 11: "Length must be 11"; 32 assert arr[0].equals("It"): "First substring must be `It`"; 33 assert arr[1].equals("can't"): "Second substring must be `can't`"; 34 assert arr[2].equals("be"): "Third substring must be `be`"; 35 assert arr[3].equals("-"): "Third substring must be `-`"; 36 assert arr[4].equals("there"): "Third substring must be `there`"; 37 assert arr[5].equals("must"): "Third substring must be `must`"; 38 assert arr[6].equals("be"): "Third substring must be `be`"; 39 assert arr[7].equals("a"): "Third substring must be `a`"; [all …]
|
| /arkcompiler/ets_frontend/arkguard/ |
| D | README.md | 3 ## This document is no longer maintained. Obfuscation documents will be moved to [official guide](h… 16 In DevEco Studio, Arkguard can be enabled only in Stage Model (FA Model is not supported). 17 For now only name obfuscations can be used in DevEco Studio (because other obfuscation 30 When you create a new project, the following config will be generated in `build-profile.json5`. 43 When you create a new library, additional property `consumerFiles` will be added. 57 To enable obfuscation, the following conditions should be satisfied: 62 The files in the property `ruleOptions.files` will be applied when you build HAP or HAR. 64 The files in the property `consumerFiles` will be applied when you build the project or library whi… 65 depends on this library. They will also be merged into a file `obfuscation.txt` in the resulting HA… 71 HAP, `obfuscation.txt` will not be generated. For more details, please jump to [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | notNull.sts | 41 assert typeOf(b) == 1: "b must be type Int"; 42 assert b == 5 : "b must be 5"; 46 assert c == 40: "c should be 40"; 59 assert typeOf(b) == 1: "b must be type Int"; 76 assert d instanceof Double : "d must be type Double" 77 assert d == 3.1415 : "d must be 3.1415" 81 assert "3.1415".equals(sd) : "s must be '3.1415'" 85 assert f instanceof Float : "f must be type Float" 86 assert f == Float.DELTA : "f must be Float.DELTA" 103 assert false : "this must not be executed"; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_array.cpp | 40 // 1. Let numberOfArgs be the number of arguments passed to this function call. in ArrayConstructor() 43 …// 3. If NewTarget is undefined, let newTarget be the active function object, else let newTarget b… in ArrayConstructor() 50 // 4. Let proto be GetPrototypeFromConstructor(newTarget, "%ArrayPrototype%"). in ArrayConstructor() 62 // 6. Let array be ArrayCreate(0, proto). in ArrayConstructor() 67 // a. Let defineStatus be CreateDataProperty(array, "0", len). in ArrayConstructor() 69 // c. Let intLen be 1. in ArrayConstructor() 71 // a. Let intLen be ToUint32(len). in ArrayConstructor() 73 // 9. Let setStatus be Set(array, "length", intLen, true). in ArrayConstructor() 130 // 8. Let k be 0. in ArrayConstructor() 131 // 9. Let items be a zero-origined List containing the argument items in order. in ArrayConstructor() [all …]
|
| D | builtins_shared_typedarray.cpp | 39 THROW_TYPE_ERROR_AND_RETURN(argv->GetThread(), "SharedTypedArray Constructor cannot be called.", in TypedArrayBaseConstructor() 150 // 1. Let C be the this value. in From() 158 // 3. If mapfn is undefined, let mapping be false. in From() 161 // b. Let mapping be true. in From() 171 // 5. Let usingIterator be ? GetMethod(source, @@iterator). in From() 176 // a. Let values be ? IterableToList(source, usingIterator). in From() 177 // b. Let len be the number of elements in values. in From() 178 // c. Let targetObj be ? TypedArrayCreate(C, « len »). in From() 198 // d. Let k be 0. in From() 200 // i. Let Pk be ! ToString(k). in From() [all …]
|
| D | builtins_typedarray.cpp | 35 THROW_TYPE_ERROR_AND_RETURN(argv->GetThread(), "TypedArray Constructor cannot be called.", in TypedArrayBaseConstructor() 144 // 3. If mapfn is undefined, let mapping be false. in FromUsingIteratorUndefinedValues() 147 // b. Let mapping be true. in FromUsingIteratorUndefinedValues() 156 // 8. Let arrayLike be ! ToObject(source). in FromUsingIteratorUndefinedValues() 160 // 9. Let len be ? LengthOfArrayLike(arrayLike). in FromUsingIteratorUndefinedValues() 168 // 10. Let targetObj be ? TypedArrayCreate(C, « len »). in FromUsingIteratorUndefinedValues() 172 // 11. Let k be 0. in FromUsingIteratorUndefinedValues() 174 // a. Let Pk be ! ToString(k). in FromUsingIteratorUndefinedValues() 175 // b. Let kValue be ? Get(arrayLike, Pk). in FromUsingIteratorUndefinedValues() 177 // i. Let mappedValue be ? Call(mapfn, thisArg, « kValue, k »). in FromUsingIteratorUndefinedValues() [all …]
|
| D | builtins_shared_array.cpp | 44 // 1. Let numberOfArgs be the number of arguments passed to this function call. in ArrayConstructor() 51 …thread, containers::ErrorFlag::IS_NULL_ERROR, "The ArkTS Array's constructor cannot be directly in… in ArrayConstructor() 55 // 4. Let proto be GetPrototypeFromConstructor(newTarget, "%ArrayPrototype%"). in ArrayConstructor() 72 // 8. Let k be 0. in ArrayConstructor() 73 // 9. Let items be a zero-origined List containing the argument items in order. in ArrayConstructor() 75 // a. Let Pk be ToString(k). in ArrayConstructor() 76 // b. Let itemK be items[k]. in ArrayConstructor() 77 // c. Let defineStatus be CreateDataProperty(array, Pk, itemK). in ArrayConstructor() 106 // 1. Let C be the this value. in From() 108 // 2. If mapfn is undefined, let mapping be false. in From() [all …]
|
| /arkcompiler/runtime_core/static_core/docs/ |
| D | import-export.md | 8 …interface, or other declarations exported from a different compilation unit must be imported first. 19 - The current code structure needs to be refactored in order to follow the changes of the standard … 41 …he case of import with allBinding: ```import * as M from "..."``` it would be necessary to specify… 50 Which paths included in this list are stored in a vector that can be retrieved via the *Helpers::St… 74 …is not specified, the module name will not be stored in the record table. The naming ot this optio… 154 Name declared on the package level should be accessible throughout the entire package. The name can… 156 …throughout the entire module only, and only if it exported can be accessed in other modules/compil… 162 …be used when generating the etssdlib source, which currently creates a large etsstdlib.abc at runt… 186 …the external source is checked for the variables. Only those variables can be imported, that are n… 208 Foreign marker can be imprvoed. Since **Variable** objects are stored by pointers, it is not a solu… [all …]
|
| D | doxygen.config | 3 # This file describes the settings to be used by the documentation system 9 # All text after a single hash (#) is considered a comment and will be ignored. 12 # For lists, items can also be appended using: 14 # Values that contain spaces should be placed between quotes (\" \"). 37 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This 38 # could be handy for archiving the generated documentation or if some version 57 # into which the generated documentation will be written. If a relative path is 58 # entered, it will be relative to the location where doxygen was started. If 59 # left blank the current directory will be used. 66 # option can be useful when feeding doxygen a huge amount of source files, where [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | BuiltinArrayAlgorithms.sts | 31 * The array has to be sorted before calling this function. 34 …ay to find a lower bound of a key. Has to be sorted, otherwise the answer is implementation-define… 36 * @param key a value to find lower bound of. It may be not in arr, lower bound will present anyway 69 * The array has to be sorted before calling this function. 72 …ay to find a lower bound of a key. Has to be sorted, otherwise the answer is implementation-define… 74 * @param key a value to find lower bound of. It may be not in arr, lower bound will present anyway 84 * The array has to be sorted before calling this function. 87 …ay to find a upper bound of a key. Has to be sorted, otherwise the answer is implementation-define… 89 * @param key a value to find upper bound of. It may be not in arr, upper bound will present anyway 122 * The array has to be sorted before calling this function. [all …]
|
| D | StringBuilder.sts | 39 * @param fromChars array that will be used to initialize the builder 53 * @param s string that will be used to initialize the builder 77 * @param o object that will be converted to a string 89 * @param s string to be appended 98 * @param i value to be appended 107 * @param i value to be appended 116 * @param i value to be appended 125 * @param i value to be appended 134 * @param i value to be appended 143 * @param i value to be appended [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/ut/utils/ |
| D | NodeUtils.spec.ts | 28 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.false; 34 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; 40 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; 46 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; 52 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; 58 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; 64 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; 70 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; 76 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; 82 expect(NodeUtils.isPropertyDeclarationNode(node)).to.be.true; [all …]
|
| D | OhsUtil.spec.ts | 35 expect(isViewPUBasedClass(classNode)).to.be.false; 40 expect(isViewPUBasedClass(classNode)).to.be.false; 44 expect(isViewPUBasedClass(undefined)).to.be.false; 50 expect(isViewPUBasedClass(classNode)).to.be.false; 56 expect(isViewPUBasedClass(classNode)).to.be.false; 66 expect(isViewPUBasedClass(classNode)).to.be.true; 76 expect(stringPropsSet.size == 0).to.be.true; 94 …propertySet.has('Identifier') && propertySet.has('String') && propertySet.has('3 + 2')).to.be.true; 95 expect(stringPropsSet.has('String') && propertySet.has('3 + 2')).to.be.true; 103 expect(stringPropsSet.has('value')).to.be.false; [all …]
|
| /arkcompiler/runtime_core/docs/ |
| D | doxygen.config | 3 # This file describes the settings to be used by the documentation system 9 # All text after a single hash (#) is considered a comment and will be ignored. 12 # For lists, items can also be appended using: 14 # Values that contain spaces should be placed between quotes (\" \"). 37 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This 38 # could be handy for archiving the generated documentation or if some version 57 # into which the generated documentation will be written. If a relative path is 58 # entered, it will be relative to the location where doxygen was started. If 59 # left blank the current directory will be used. 66 # option can be useful when feeding doxygen a huge amount of source files, where [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | union_types_3.sts | 18 assert (x0 as int) * 2 == 4: "Error! Must be 4"; 20 assert (x0 as int) * 3 == -6: "Error! Must be -6"; 22 assert (x0 as boolean) == true: "Error! Must be true"; 24 assert ((x0 as String) + "STR2").equals("STR1STR2"): "Error! Must be `STR1STR2`"; 27 assert (x1 as String).equals("AAA"): "Error! Must be `AAA`"; 30 assert (x2 as boolean) == true: "Error! Must be `true`"; 32 // assert (x3 as double) == 3.14: "Error! Must be `3.14`"; // #15576 33 assert (x3 as Double) == 3.14: "Error! Must be `3.14`";
|
| /arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/ |
| D | Array_builtin_algorithms.sts.j2 | 35 * The array has to be sorted before calling this function. 38 …ay to find a lower bound of a key. Has to be sorted, otherwise the answer is implementation-define… 73 * The array has to be sorted before calling this function. 76 …ay to find a lower bound of a key. Has to be sorted, otherwise the answer is implementation-define… 88 * The array has to be sorted before calling this function. 91 …ay to find a upper bound of a key. Has to be sorted, otherwise the answer is implementation-define… 93 * @param key a value to find upper bound of. It may be not in arr, upper bound will present anyway 126 * The array has to be sorted before calling this function. 129 …ay to find a upper bound of a key. Has to be sorted, otherwise the answer is implementation-define… 131 * @param key a value to find upper bound of. It may be not in arr, upper bound will present anyway [all …]
|