Home
last modified time | relevance | path

Searched full:wrap (Results 1 – 25 of 106) sorted by relevance

12345

/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_optional_params/ts_to_ets/
Doptional_params.ets18 module.getProperty("foo1").invoke(ESValue.wrap(1), ESValue.wrap("str"));
19 module.getProperty("foo2").invoke(ESValue.wrap(1), ESValue.wrap("str"), ESValue.wrap(true));
20 …module.getProperty("foo3").invoke(ESValue.wrap(1), ESValue.wrap("str"), ESValue.wrap(true), ESValu…
22 module.getProperty("fun1").invoke(ESValue.wrap(1), ESValue.wrap("str"));
23 module.getProperty("fun2").invoke(ESValue.wrap(1), ESValue.wrap("str"), ESValue.wrap(false));
24 …module.getProperty("fun3").invoke(ESValue.wrap(1), ESValue.wrap("str"), ESValue.wrap(false), ESVal…
/arkcompiler/ets_frontend/ets2panda/linter/test/interop/
Dinterop_not_have_property_arkts2.ets.migrate.ets28 foo.setProperty("name", ESValue.wrap("456"))
29 person.setProperty("age", ESValue.wrap(23.0))
30 person.setProperty("male", ESValue.wrap([2.0, 3.0]))
31 foo.setProperty("age", ESValue.wrap(12.0))
32 if (foo.setProperty("name", ESValue.wrap("456"))) { print("true") }
35 a.setProperty("age", ESValue.wrap(12.0))
37 let test_helper = TestHelper.instantiate(ESValue.wrap("TEST_INSTANTIATE_JS_OBJECT"));
38 test_helper.invokeMethod("test", ESValue.wrap(() => {
41 }), ESValue.wrap("machine.name === 'machine'"));
43 test_helper.invokeMethod("test", ESValue.wrap(() => {
[all …]
Dinstantiated_js_obj.ets.migrate.ets25 Foo.instantiate(ESValue.wrap(123.0))
26 Foo.instantiate(ESValue.wrap('hello'))
27 Foo.instantiate(ESValue.wrap(new A()))
29 Foo.instantiate(ESValue.wrap(a.num))
30 Foo.instantiate(ESValue.wrap(a))
34 Foo.instantiate(ESValue.wrap(test()))
35 Foo1.instantiate(ESValue.wrap(123.0), ESValue.wrap('hello'))
Dinterop_not_have_property_arkts2.ets.autofix.json88 "replacementText": "foo.setProperty(\"name\", ESValue.wrap(\"456\"))",
109 "replacementText": "person.setProperty(\"age\", ESValue.wrap(23))",
151 "replacementText": "person.setProperty(\"male\", ESValue.wrap([2, 3]))",
214 "replacementText": "foo.setProperty(\"age\", ESValue.wrap(12))",
256 "replacementText": "foo.setProperty(\"name\", ESValue.wrap(\"456\"))",
329 "replacementText": "a.setProperty(\"age\", ESValue.wrap(12))",
371 … "replacementText": "TestHelper.instantiate(ESValue.wrap(\"TEST_INSTANTIATE_JS_OBJECT\"))",
392 …alue.wrap(() => {\n let machine = new Machine();\n return machine.name === \"machine\"; // a…
476 … ESValue.wrap(() => {\n let user = new User(\"Bob\");\n return user.id === \"Bob\"; // arkts…
497 "replacementText": "User.instantiate(ESValue.wrap(\"Bob\"))",
[all …]
Dinstantiated_js_obj.ets.autofix.json78 "replacementText": "Foo.instantiate(ESValue.wrap(123))",
120 "replacementText": "Foo.instantiate(ESValue.wrap('hello'))",
141 "replacementText": "Foo.instantiate(ESValue.wrap(new A()))",
162 "replacementText": "Foo.instantiate(ESValue.wrap(a.num))",
183 "replacementText": "Foo.instantiate(ESValue.wrap(a))",
225 "replacementText": "Foo.instantiate(ESValue.wrap(test()))",
246 "replacementText": "Foo1.instantiate(ESValue.wrap(123), ESValue.wrap('hello'))",
Dinterop_import_typeof_js.ets.migrate.ets34 Dog.invoke(ESValue.wrap('doge')).typeOf(); //error
35 Doge.invoke(ESValue.wrap('doge')).typeOf(); //error
82 Person.instantiate().invokeMethod("setAge", ESValue.wrap(22.0)).typeOf() //error
Dinterop_import_js_index.ets.migrate.ets23 arr.setProperty(3.0, ESValue.wrap(4.0))
30 arr1.setProperty(i, ESValue.wrap(0.0 //error
Dno_js_instanceof.ets.migrate.ets45 let person: CreatePerson = CreatePerson.invoke(ESValue.wrap('xc'), ESValue.wrap(18.0))
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/checked/convert/
Dconvert.rb15 TypeInfo = Struct.new(:name, :value, :type, :unwrap, :wrap, keyword_init: true) do
18 self.wrap ||= 'RefType'
25 TypeInfo.new(name: 'boolean', value: 'true', unwrap: 'U1', wrap: 'U1'),
26 TypeInfo.new(name: 'byte', value: '127', unwrap: 'F64', wrap: 'I8'),
27 TypeInfo.new(name: 'short', value: '32767', unwrap: 'F64', wrap: 'I16'),
28 TypeInfo.new(name: 'int', value: '2147483647', unwrap: 'F64', wrap: 'I32'),
29 TypeInfo.new(name: 'long', value: '9223372036854775', unwrap: 'F64', wrap: 'I64'),
30 TypeInfo.new(name: 'char', value: '65535', unwrap: 'F64', wrap: 'U16'),
31 TypeInfo.new(name: 'double', value: '12.34', unwrap: 'F64', wrap: 'F64'),
32 TypeInfo.new(name: 'float', value: '12.34', unwrap: 'F64', wrap: 'F32'),
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_transfer/ets_to_ts/
Dtest_transfer.ets40 testDynamicArrayBuffer.invoke(ESValue.wrap(dynamicArrayBuffer));
49 testDynamicInt8Array.invoke(ESValue.wrap(dynamicTypedArray));
58 testDynamicUint8Array.invoke(ESValue.wrap(dynamicTypedArray));
67 testDynamicUint8ClampedArray.invoke(ESValue.wrap(dynamicTypedArray));
76 testDynamicInt16Array.invoke(ESValue.wrap(dynamicTypedArray));
85 testDynamicUint16Array.invoke(ESValue.wrap(dynamicTypedArray));
94 testDynamicInt32Array.invoke(ESValue.wrap(dynamicTypedArray));
103 testDynamicUint32Array.invoke(ESValue.wrap(dynamicTypedArray));
112 testDynamicFloat32Array.invoke(ESValue.wrap(dynamicTypedArray));
121 testDynamicFloat64Array.invoke(ESValue.wrap(dynamicTypedArray));
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/function_return_array_test/ts_to_ets/
Dtest_sts_return_array.ets34 let ret2 = functionReturnArray1.invoke(ESValue.wrap(arr));
37 let ret3 = functionReturnArray2.invoke(ESValue.wrap(arr));
43 let ret5 = functionReturnArray3.invoke(ESValue.wrap(arr));
49 let ret7 = functionReturnString1.invoke(ESValue.wrap(arrString));
52 let ret8 = functionReturnString2.invoke(ESValue.wrap(arrString));
58 let ret10 = functionReturnString3.invoke(ESValue.wrap(arrString));
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/taskpool/ts_to_ets/
Dtaskpool_interop_tests.ets83 dynamicObj.setProperty('unionProp', ESValue.wrap(new NewTestClass()));
186 … assertTrue(module.getProperty('foo1').invoke(ESValue.wrap(1), ESValue.wrap('str')).toBoolean());
187 …assertTrue(module.getProperty('foo2').invoke(ESValue.wrap(1), ESValue.wrap('str'), ESValue.wrap(tr…
188 …ue(module.getProperty('foo3').invoke(ESValue.wrap(1), ESValue.wrap('str'), ESValue.wrap(true), ESV…
190 … assertTrue(module.getProperty('fun1').invoke(ESValue.wrap(1), ESValue.wrap('str')).toBoolean());
191 …assertTrue(module.getProperty('fun2').invoke(ESValue.wrap(1), ESValue.wrap('str'), ESValue.wrap(fa…
192 …ue(module.getProperty('fun3').invoke(ESValue.wrap(1), ESValue.wrap('str'), ESValue.wrap(false), ES…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/eworker/ts_to_ets/
Deworker_interop_tests.ets84 dynamicObj.setProperty('unionProp', ESValue.wrap(new NewTestClass()));
187 … assertTrue(module.getProperty("foo1").invoke(ESValue.wrap(1), ESValue.wrap("str")).toBoolean());
188 …assertTrue(module.getProperty("foo2").invoke(ESValue.wrap(1), ESValue.wrap("str"), ESValue.wrap(tr…
189 …ue(module.getProperty("foo3").invoke(ESValue.wrap(1), ESValue.wrap("str"), ESValue.wrap(true), ESV…
191 … assertTrue(module.getProperty("fun1").invoke(ESValue.wrap(1), ESValue.wrap("str")).toBoolean());
192 …assertTrue(module.getProperty("fun2").invoke(ESValue.wrap(1), ESValue.wrap("str"), ESValue.wrap(fa…
193 …ue(module.getProperty("fun3").invoke(ESValue.wrap(1), ESValue.wrap("str"), ESValue.wrap(false), ES…
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/test_wrap_jsvalue/ts_to_ets/
Dtest_ets_wrap_jsvalue.ets21 let a = ESValue.wrap(val);
22 let b = ESValue.wrap(val);
24 let d = ESValue.wrap(new B());
/arkcompiler/runtime_core/common_interfaces/objects/
Dbase_object_dispatcher.h75 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in GetTaggedProperty()
83 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in GetTaggedProperty()
94 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in GetBoxedProperty()
102 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in GetBoxedProperty()
119 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in GetTaggedElementByIdx()
127 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in GetTaggedElementByIdx()
138 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in GetBoxedElementByIdx()
146 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in GetBoxedElementByIdx()
170 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in SetTaggedProperty()
181 … fix(hewei): exceptions may occur, check here and return. Also, check exceptions in Wrap functions. in SetBoxedProperty()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/interop/js/
DInteropTransferHelper.ets29 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
49 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
83 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
117 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
151 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
185 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
219 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
253 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
287 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
321 let dynamicESValue = ESValue.wrap(__narrowAny<object>(dynamicObject));
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/components/header/
Dstyles.module.scss85 flex-wrap: wrap;
111 white-space: pre-wrap;
112 word-wrap: break-word;
/arkcompiler/ets_frontend/es2panda/ir/
DastDump.cpp32 Wrap([this, node]() -> void { in SerializeNode()
175 Wrap([this, &props]() -> void { in SerializePropList()
187 Wrap( in SerializeArray()
208 Wrap([this, object]() -> void { in SerializeObject()
214 void AstDumper::Wrap(const WrapperCb &cb, char delimStart, char delimEnd) in Wrap() function in panda::es2panda::ir::AstDumper
236 Wrap([this, &loc]() -> void { in SerializeLoc()
249 Wrap([this, &loc]() -> void { in SerializeSourcePosition()
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/docs/
Dinterop_intrinsic_opt_doc.md4 … (primitive or object, including JSValue) to local values (we call this **wrap**), and returned lo…
6 We try to reduce number of local scopes by merging them and then optimize wrap/unwrap intrinsics.
12 * Elimination of `unwrap+wrap` pairs (transform `local value->JSValue->local value` is redundant)
13 * Redundancy elimination for `wrap` intrinsics (hoisting them to more optimal positions and removin…
41 …ng several scopes which do not intersect or dominate each other, but use `wrap`s of the same value…
56 * remove `unwrap+wrap` pairs:
/arkcompiler/runtime_core/static_core/plugins/ets/compiler/optimizer/
Dinterop_intrinsic_kinds.h.erb21 WRAP,
23 CREATES_LOCAL, // wrap also creates local object
/arkcompiler/ets_frontend/ets2panda/ir/
DastDump.cpp190 Wrap([this, &props]() -> void { in SerializePropList()
203 Wrap( in SerializeArray()
221 Wrap([this, object]() -> void { in SerializeObject()
229 void AstDumper::Wrap(const WrapperCb &cb, char delimStart, char delimEnd) in Wrap() function in ark::es2panda::ir::AstDumper
246 Wrap([this, &loc]() -> void { in SerializeLoc()
259 Wrap([this, &loc]() -> void { in SerializeSourcePosition()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/arkdb/
Ddebug_types.py72 class Wrap(Generic[T]): class
103 class PropertyDescriptor(Wrap[runtime.PropertyDescriptor]):
128 class RemoteObject(Wrap[runtime.RemoteObject]):
170 class Scope(Wrap[debugger.Scope]):
178 class Frame(Wrap[debugger.CallFrame]):
210 class Paused(Wrap[debugger.Paused]):
/arkcompiler/ets_frontend/ets2panda/linter/src/lib/utils/consts/
DInteropAPI.ts19 export const WRAP = 'wrap'; constant
/arkcompiler/runtime_core/static_core/plugins/ets/playground/frontend/src/pages/logs/
Dstyles.module.scss33 white-space: pre-wrap;
34 word-wrap: break-word;
/arkcompiler/runtime_core/static_core/docs/images/
Darkts-debugger-expression-evaluation.svg4wrap;html=1;fillColor=none;dashed=1;strokeColor=#FF0000;&quot; parent=&quot;1&quot; vertex=&quot;1…

12345