Home
last modified time | relevance | path

Searched full:be (Results 1 – 25 of 3400) sorted by relevance

12345678910>>...136

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/
Dstring_api.sts35 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/
Dexpect_output.txt15 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/arkguard/test/ut/utils/
DApiExtractor.spec.ts650 expect(fileWhiteList!.fileReservedInfo.propertyParams.has('para1')).to.be.true;
651 expect(fileWhiteList!.fileReservedInfo.propertyParams.has('para2')).to.be.true;
652 expect(fileWhiteList!.fileReservedInfo.propertyParams.has('para3')).to.be.true;
653 expect(fileWhiteList!.fileReservedInfo.propertyParams.has('para4')).to.be.true;
654 expect(ApiExtractor.mConstructorPropertySet.has('para1')).to.be.true;
655 expect(ApiExtractor.mConstructorPropertySet.has('para2')).to.be.true;
656 expect(ApiExtractor.mConstructorPropertySet.has('para3')).to.be.true;
657 expect(ApiExtractor.mConstructorPropertySet.has('para4')).to.be.true;
671 expect(fileWhiteList!.fileReservedInfo.enumProperties.has('A1')).to.be.false;
672 expect(fileWhiteList!.fileReservedInfo.enumProperties.has('A2')).to.be.false;
[all …]
DApiReader.spec.ts70 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM1')).to.be.true;
71 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM2')).to.be.true;
73 expect(fileWhiteList2.fileKeepInfo.enumProperties.has('ENUM_PARAM1')).to.be.true;
74 expect(fileWhiteList2.fileKeepInfo.enumProperties.has('ENUM_PARAM2')).to.be.true;
76 expect(fileWhiteList3.fileKeepInfo.enumProperties.has('EXPORT_PARAM1')).to.be.true;
77 expect(fileWhiteList3.fileKeepInfo.enumProperties.has('EXPORT_PARAM2')).to.be.true;
79 expect(fileWhiteList4.fileKeepInfo.enumProperties.has('NS_PARAM1')).to.be.true;
80 expect(fileWhiteList4.fileKeepInfo.enumProperties.has('NS_PARAM2')).to.be.true;
121 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM1')).to.be.true;
122 expect(fileWhiteList1.fileKeepInfo.enumProperties.has('BLOCK_PARAM2')).to.be.true;
[all …]
DProjectCollections.spec.ts47 expect(targetSet.size).to.be.equal(4);
48 expect(targetSet.has(1)).to.be.true;
49 expect(targetSet.has(2)).to.be.true;
50 expect(targetSet.has(3)).to.be.true;
51 expect(targetSet.has(4)).to.be.true;
58 expect(set.size).to.be.equal(3);
59 expect(set.has(1)).to.be.true;
60 expect(set.has(2)).to.be.true;
61 expect(set.has(3)).to.be.true;
75 expect(areSetsEqual(set1, set2)).to.be.true;
[all …]
DOhsUtil.spec.ts45 expect(isViewPUBasedClass(classNode)).to.be.false;
50 expect(isViewPUBasedClass(classNode)).to.be.false;
54 expect(isViewPUBasedClass(undefined)).to.be.false;
60 expect(isViewPUBasedClass(classNode)).to.be.false;
66 expect(isViewPUBasedClass(classNode)).to.be.false;
76 expect(isViewPUBasedClass(classNode)).to.be.true;
86 expect(stringPropsSet.size == 0).to.be.true;
104 …propertySet.has('Identifier') && propertySet.has('String') && propertySet.has('3 + 2')).to.be.true;
105 expect(stringPropsSet.has('String') && propertySet.has('3 + 2')).to.be.true;
113 expect(stringPropsSet.has('value')).to.be.false;
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dsendable_class_interface_property.sts65 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 …]
Dclass_as_object.ts.arkts2.json24 "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)",
44 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
54 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
74 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
94 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
114 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
134 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
154 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
174 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
[all …]
Dimported_use_as_object.ts.json24 "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)",
44 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
54 "rule": "Namespaces cannot be used as objects (arkts-no-ns-as-obj)",
64 "rule": "Namespaces cannot be used as objects (arkts-no-ns-as-obj)",
74 "rule": "Namespaces cannot be used as objects (arkts-no-ns-as-obj)",
84 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
94 "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)",
114 "rule": "Classes cannot be used as objects (arkts-no-classes-as-obj)",
[all …]
Dshared_module.ts.json24 …"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 …]
Dsendable_captured_variables.ts.json24 …"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 …]
Dsendable_function.ts.json24 …"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…
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…
134 …"rule": "Only imported variables can be captured by \"Sendable\" function (arkts-sendable-function…
144 …"rule": "Only imported variables can be captured by \"Sendable\" function (arkts-sendable-function…
164 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dstring_split_test.sts29 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/ets2panda/test/ast/parser/ets/
Dclass_as_object_1.sts18 /* @@? 16:13 Error TypeError: Class or interface 'Object' cannot be used as object */
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. */
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ts/
Dtest5.ts.json24 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
34 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
44 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
54 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
64 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
74 …"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…
94 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
104 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
114 …"rule": "Type arguments of generic \"Sendable\" type must be a \"Sendable\" data type (arkts-senda…
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DnotNull.sts41 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_frontend/arkguard/
DREADME.md3 ## 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/runtime_core/libabckit/include/c/
Dmetadata_core.h159 …* @param [ in, out ] data - Pointer to the user-defined data that will be passed to the callback `…
161 …* @param [ in ] cb - Callback that will be invoked. Should return `false` on early exit and `true`…
173 …* @param [ in, out ] data - Pointer to the user-defined data that will be passed to the callback `…
175 …* @param [ in ] cb - Callback that will be invoked. Should return `false` on early exit and `true`…
188 …erts value of type `AbckitString` to C-style null-terminated string. Returned pointer should not be
191 * @param [ in ] value - Value of type `AbckitString` that needs to be converted.
203 * @param [ in ] t - Type to be inspected.
211 * @param [ in ] t - Type to be inspected.
223 * @param [ in ] value - Value item to be inspected.
231 * @param [ in ] value - Value item to be inspected.
[all …]
Dir_core.h82 * @param [ in ] graph - Graph to be inspected.
94 * @param [ in ] graph - Graph to be inspected.
102 * @param [ in ] graph - Graph to be inspected.
110 * @param [ in ] graph - Graph to be inspected.
118 * @param [ in ] graph - Graph to be inspected.
119 …* @param [ in, out ] data - Pointer to the user-defined data that will be passed to the callback `…
121 …* @param [ in ] cb - Callback that will be invoked. Should return `false` on early exit and `true`…
131 * @param [ in ] graph - Graph to be inspected.
141 * @param [ in ] graph - Graph to be inspected.
151 * @param [ in ] graph - Graph to be inspected.
[all …]
/arkcompiler/ets_frontend/ets2panda/docs/
Dimport_export.md8 …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 …
45 Name declared on the package level should be accessible throughout the entire package. The name can…
47 …throughout the entire module only, and only if it exported can be accessed in other modules/compil…
72 …the external source is checked for the variables. Only those variables can be imported, that are n…
94 Foreign marker can be improved. Since **Variable** objects are stored by pointers, it is not a solu…
96 …ally defined or imported ones - are stored in `foreignBindings_`. It could be enough if just impor…
105 * Import binding that defines what entities, and in what form—qualified or unqualified—can be used …
112be points to a module (separate module | package module) or a folder (package folder, or a folder …
113 …anager*. In the process of parsing an import path, the string literal will be passed to the import…
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_array.cpp40 // 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()
65 // 6. Let array be ArrayCreate(0, proto). in ArrayConstructor()
70 // a. Let defineStatus be CreateDataProperty(array, "0", len). in ArrayConstructor()
72 // c. Let intLen be 1. in ArrayConstructor()
74 // a. Let intLen be ToUint32(len). in ArrayConstructor()
76 // 9. Let setStatus be Set(array, "length", intLen, true). in ArrayConstructor()
133 // 8. Let k be 0. in ArrayConstructor()
134 // 9. Let items be a zero-origined List containing the argument items in order. in ArrayConstructor()
[all …]
Dbuiltins_shared_typedarray.cpp38 THROW_TYPE_ERROR_AND_RETURN(argv->GetThread(), "SharedTypedArray Constructor cannot be called.", in TypedArrayBaseConstructor()
149 // 1. Let C be the this value. in From()
157 // 3. If mapfn is undefined, let mapping be false. in From()
160 // b. Let mapping be true. in From()
170 // 5. Let usingIterator be ? GetMethod(source, @@iterator). in From()
175 // a. Let values be ? IterableToList(source, usingIterator). in From()
176 // b. Let len be the number of elements in values. in From()
177 // c. Let targetObj be ? TypedArrayCreate(C, « len »). in From()
197 // d. Let k be 0. in From()
199 // i. Let Pk be ! ToString(k). in From()
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/initialization/
DConfigResolver.spec.ts108 expect(ob1.disableObfuscation).to.be.true;
109 expect(ob1.enablePropertyObfuscation).to.be.true;
110 expect(ob1.enableToplevelObfuscation).to.be.true;
152 expect(config1.options.disableObfuscation).to.be.false;
153 expect(config1.options.enablePropertyObfuscation).to.be.false;
154 expect(config1.options.enableToplevelObfuscation).to.be.false;
155 expect(config1.options.enableStringPropertyObfuscation).to.be.false;
156 expect(config1.options.removeLog).to.be.false;
157 expect(config1.options.compact).to.be.false;
158 expect(config1.options.removeComments).to.be.false;
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dgraph_checker_macros.h20 // CC-OFFNXT(G.PRE.02) should be with define
23 // CC-OFFNXT(G.PRE.02) should be with define
27 // CC-OFFNXT(G.PRE.02) should be with define
30 // CC-OFFNXT(G.PRE.02) should be with define
33 // CC-OFFNXT(G.PRE.02) should be with define
45 // CC-OFFNXT(G.PRE.02) should be with define
49 // CC-OFFNXT(G.PRE.02) should be with define
55 // CC-OFFNXT(G.PRE.02) should be with define
62 // CC-OFFNXT(G.PRE.02) should be with define
68 // CC-OFFNXT(G.PRE.02) should be with define
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/annotation_tests/
DannotationUsage_missing_arguements02.sts29 …ypeError: The required field 'testProperty2' must be specified. Fields without default values cann…
30 …ypeError: The required field 'testProperty2' must be specified. Fields without default values cann…
31 …ypeError: The required field 'testProperty1' must be specified. Fields without default values cann…
32 …ypeError: The required field 'testProperty1' must be specified. Fields without default values cann…

12345678910>>...136