Home
last modified time | relevance | path

Searched refs:arg (Results 1 – 25 of 453) sorted by relevance

12345678910>>...19

/arkcompiler/ets_frontend/ets2panda/linter-4.2/test/
Doptional_library_types.ts36 let cb1: Cb1Oh = (arg) => arg;
37 let cb2: Cb2Oh = (arg) => arg;
39 let cb3: Cb1Good = (arg) => arg;
40 let cb4: Cb2Good = (arg) => arg;
42 let cb5: Cb1Node = (arg) => arg;
43 let cb6: Cb2Node = (arg) => arg;
45 let cb7: Cb1Loc = (arg) => arg;
46 let cb8: Cb2Loc = (arg) => arg;
49 F1Oh((arg) => arg);
51 F2Oh((arg) => arg);
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Doptional_library_types.ts36 let cb1: Cb1Oh = (arg) => arg;
37 let cb2: Cb2Oh = (arg) => arg;
39 let cb3: Cb1Good = (arg) => arg;
40 let cb4: Cb2Good = (arg) => arg;
42 let cb5: Cb1Node = (arg) => arg;
43 let cb6: Cb2Node = (arg) => arg;
45 let cb7: Cb1Loc = (arg) => arg;
46 let cb8: Cb2Loc = (arg) => arg;
49 F1Oh((arg) => arg);
51 F2Oh((arg) => arg);
[all …]
/arkcompiler/ets_runtime/ecmascript/ohos/
Dcode_decrypt.cpp25 struct code_decrypto_arg arg; in DecryptSetKey() local
26 arg.arg1_len = sizeof(srcAppId); in DecryptSetKey()
27 arg.arg1 = reinterpret_cast<void*>(&srcAppId); in DecryptSetKey()
28 arg.arg2_len = 0; in DecryptSetKey()
29 arg.arg2 = nullptr; in DecryptSetKey()
30 return ioctl(fd, CODE_DECRYPT_CMD_SET_KEY, &arg); in DecryptSetKey()
35 struct code_decrypto_arg arg; in DecrypRemoveKey() local
36 arg.arg1_len = sizeof(srcAppId); in DecrypRemoveKey()
37 arg.arg1 = reinterpret_cast<void*>(&srcAppId); in DecrypRemoveKey()
38 arg.arg2_len = 0; in DecrypRemoveKey()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test_rules/
Drule96.ts26 function isFoo(arg: any): arg is Foo {
27 return arg.foo !== undefined
30 function doStuff(arg: Foo | Bar) {
31 if (isFoo(arg)) {
32 console.log(arg.foo) // OK
33 console.log(arg.bar) // Compile-time error
35 console.log(arg.foo) // Compile-time error
36 console.log(arg.bar) // OK
44 function isFoo2(arg: Object): boolean {
45 return arg instanceof Foo
[all …]
/arkcompiler/ets_frontend/ets2panda/linter-4.2/test_rules/
Drule96.ts26 function isFoo(arg: any): arg is Foo {
27 return arg.foo !== undefined
30 function doStuff(arg: Foo | Bar) {
31 if (isFoo(arg)) {
32 console.log(arg.foo) // OK
33 console.log(arg.bar) // Compile-time error
35 console.log(arg.foo) // Compile-time error
36 console.log(arg.bar) // OK
44 function isFoo2(arg: Object): boolean {
45 return arg instanceof Foo
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dmutex_test.cpp43 ThreadRWLockArgs *arg = reinterpret_cast<ThreadRWLockArgs *>(input); in TestThread1() local
44 arg->rwlock->WriteLock(); in TestThread1()
45 (*(arg->index))++; in TestThread1()
47 arg->rwlock->Unlock(); in TestThread1()
54 ThreadRWLockArgs *arg = reinterpret_cast<ThreadRWLockArgs *>(input); in TestThread2() local
55 arg->rwlock->ReadLock(); in TestThread2()
57 arg->rwlock->Unlock(); in TestThread2()
64 ThreadRWLockArgs *arg = reinterpret_cast<ThreadRWLockArgs *>(input); in TestThread3() local
65 bool res = arg->rwlock->TryReadLock(); in TestThread3()
67 (*(arg->index))++; in TestThread3()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Dcgbb.h291 void SetLevel(uint32 arg) in SetLevel() argument
293 level = arg; in SetLevel()
299 void SetFrequency(uint32 arg) in SetFrequency() argument
301 frequency = arg; in SetFrequency()
319 void SetNext(BB *arg) in SetNext() argument
321 next = arg; in SetNext()
323 void SetPrev(BB *arg) in SetPrev() argument
325 prev = arg; in SetPrev()
331 void SetLabIdx(LabelIdx arg) in SetLabIdx() argument
333 labIdx = arg; in SetLabIdx()
[all …]
/arkcompiler/runtime_core/static_core/irtoc/scripts/
Dcommon.irt241 macro(:i32tou32) do |arg|
242 Cast(arg).SrcType("DataType::INT32").u32
245 macro(:u32toi32) do |arg|
246 Cast(arg).SrcType("DataType::UINT32").i32
249 macro(:i32tof64) do |arg|
250 Cast(arg).SrcType("DataType::INT32").f64
253 macro(:u32tof64) do |arg|
254 Cast(arg).SrcType("DataType::UINT32").f64
257 macro(:f64tou32) do |arg|
258 Cast(arg).SrcType("DataType::FLOAT64").u32
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe96.md27 function isFoo(arg: any): arg is Foo {
28 return arg.foo !== undefined
31 function doStuff(arg: Foo | Bar) {
32 if (isFoo(arg)) {
33 console.log(arg.foo) // OK
34 console.log(arg.bar) // Compile-time error
36 console.log(arg.foo) // Compile-time error
37 console.log(arg.bar) // OK
61 function isFoo(arg: Object): boolean {
62 return arg instanceof Foo
[all …]
/arkcompiler/ets_frontend/ets2panda/linter-4.2/docs/rules/
Drecipe96.md27 function isFoo(arg: any): arg is Foo {
28 return arg.foo !== undefined
31 function doStuff(arg: Foo | Bar) {
32 if (isFoo(arg)) {
33 console.log(arg.foo) // OK
34 console.log(arg.bar) // Compile-time error
36 console.log(arg.foo) // Compile-time error
37 console.log(arg.bar) // OK
61 function isFoo(arg: Object): boolean {
62 return arg instanceof Foo
[all …]
/arkcompiler/runtime_core/libpandabase/utils/
Dpandargs.h200 [name](const auto &arg) { return arg->GetName() == name; }); in FindSubArg()
207 … std::for_each(sub_args_.begin(), sub_args_.end(), [](auto &arg) { arg->ResetDefaultValue(); }); in ResetDefaultValue()
221 bool Add(PandArgBase *arg) in Add() argument
223 if (arg == nullptr) { in Add()
227 bool success = args_.insert(arg).second; in Add()
229 errstr_ += "pandargs: Argument " + arg->GetName() + " has duplicate\n"; in Add()
234 bool PushBackTail(PandArgBase *arg) in PushBackTail() argument
236 if (arg == nullptr) { in PushBackTail()
240 if (std::find(tail_args_.begin(), tail_args_.end(), arg) != tail_args_.end()) { in PushBackTail()
241 … errstr_ += "pandargs: Tail argument " + arg->GetName() + " is already in tail arguments list\n"; in PushBackTail()
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/utils/
Dpandargs.h202 …std::find_if(subArgs_.begin(), subArgs_.end(), [name](const auto &arg) { return arg->GetName() == … in FindSubArg()
209 … std::for_each(subArgs_.begin(), subArgs_.end(), [](auto &arg) { arg->ResetDefaultValue(); }); in ResetDefaultValue()
223 bool Add(PandArgBase *arg) in Add() argument
225 if (arg == nullptr) { in Add()
229 bool success = args_.insert(arg).second; in Add()
231 errstr_ += "pandargs: Argument " + arg->GetName() + " has duplicate\n"; in Add()
236 bool PushBackTail(PandArgBase *arg) in PushBackTail() argument
238 if (arg == nullptr) { in PushBackTail()
242 if (std::find(tailArgs_.begin(), tailArgs_.end(), arg) != tailArgs_.end()) { in PushBackTail()
243 … errstr_ += "pandargs: Tail argument " + arg->GetName() + " is already in tail arguments list\n"; in PushBackTail()
[all …]
/arkcompiler/ets_runtime/test/aottest/extends_builtins/
Dextends_builtins.ts19 constructor(arg:boolean) {
20 super(arg); // stub path
29 constructor(arg:number) {
30 super(arg); // stub path
40 constructor(arg:any) {
41 super(arg);
51 constructor(arg:number) {
52 super(arg);
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/js_to_ets/
Dscenarios.js70 function genericFunction(arg) { argument
71 return arg;
82 function functionArgTypeAny(arg) { argument
83 return arg; // transpiled from Typescript code: functionArgTypeAny(arg: any)
86 function functionArgTypeUnknown(arg) { argument
87 return arg; // transpiled from Typescript code: functionArgTypeUnknown(arg: unknown)
90 function functionArgTypeUndefined(arg) { argument
91 return arg; // transpiled from Typescript code: functionArgTypeUndefined(arg: undefined)
94 function functionArgTypeTuple(arg) { argument
95 …return arg[0]; // transpiled from Typescript code: functionArgTypeTuple(arg: [number, string]): nu…
/arkcompiler/ets_runtime/ecmascript/base/
Datomic_helper.h28 T operator()(T *ptr, const T *arg) const in operator()
31 return atomicValue->fetch_sub(arg[0], std::memory_order_seq_cst); in operator()
37 T operator()(T *ptr, const T *arg) const in operator()
40 return atomicValue->fetch_add(arg[0], std::memory_order_seq_cst); in operator()
46 T operator()(T *ptr, const T *arg) const in operator()
49 return atomicValue->fetch_and(arg[0], std::memory_order_seq_cst); in operator()
55 T operator()(T *ptr, const T *arg) const in operator()
58 return atomicValue->fetch_or(arg[0], std::memory_order_seq_cst); in operator()
64 T operator()(T *ptr, const T *arg) const in operator()
67 return atomicValue->fetch_xor(arg[0], std::memory_order_seq_cst); in operator()
[all …]
/arkcompiler/ets_runtime/test/aottest/aot_type_test/typediv/
Dtypediv.ts16 declare function print(arg:any):string;
35 function foo2(arg:number) {
36 if (arg > 1) {
37 arg = arg / 2;
39 return arg;
/arkcompiler/ets_runtime/test/aottest/aot_type_test/typemul/
Dtypemul.ts30 function foo2(arg:number) {
31 if (arg > 1) {
32 arg = arg * 2;
34 return arg;
/arkcompiler/ets_frontend/arkguard/test/grammar/generics_validation/
Dgenerics_lenth.ts20 function loggingIdentity1<T>(arg: T[]): T[] {
21 return arg;
28 function loggingIdentity2<T>(arg: Array<T>): Array<T> {
29 console.log(arg.length); // Array has a .length, so no more error
30 return arg;
/arkcompiler/runtime_core/static_core/tests/tests-u-runner/runner/options/
Dcli_options.py30 def is_directory(arg: str) -> str:
31 if not path.isdir(path.expanduser(arg)):
34 return str(path.abspath(path.expanduser(arg)))
37 def make_dir_if_not_exist(arg: str) -> str:
38 if not path.isdir(path.abspath(arg)):
39 makedirs(arg)
41 return str(path.abspath(arg))
44 def is_file(arg: str) -> str:
45 if not path.isfile(path.expanduser(arg)):
48 return str(path.abspath(path.expanduser(arg)))
[all …]
/arkcompiler/ets_frontend/ets2panda/linter-4.2/test/oh_modules/
Dohos_factory.ts23 public create1<T extends Something>(arg: { new(): T }): T;
24 public create2<T extends Something>(arg: { o: { new(): T } }): T;
25 public create3<T extends Something>(arg: () => { new(): T }): T;
26 public create4<T extends Something>(arg: Function): T;
32 constructor(arg: { new(): T });
/arkcompiler/ets_frontend/ets2panda/linter/test/oh_modules/
Dohos_factory.ts23 public create1<T extends Something>(arg: { new(): T }): T;
24 public create2<T extends Something>(arg: { o: { new(): T } }): T;
25 public create3<T extends Something>(arg: () => { new(): T }): T;
26 public create4<T extends Something>(arg: Function): T;
32 constructor(arg: { new(): T });
/arkcompiler/runtime_core/compiler/docs/
Dvn_doc.md80 0.u64 Parameter arg 0 -> (v10, v6, v7, v13)
81 1.u64 Parameter arg 1 -> (v10, v6, v7, v13)
82 2.f64 Parameter arg 2 -> (v11, v9)
83 3.f64 Parameter arg 3 -> (v11, v9)
84 4.f32 Parameter arg 4 -> (v8, v12)
85 5.f32 Parameter arg 5 -> (v8, v12)
110 0.u64 Parameter arg 0 -> (v10, v6, v7, v13)
111 1.u64 Parameter arg 1 -> (v10, v6, v7, v13)
112 2.f64 Parameter arg 2 -> (v11, v9)
113 3.f64 Parameter arg 3 -> (v11, v9)
[all …]
/arkcompiler/runtime_core/static_core/compiler/docs/
Dvn_doc.md80 0.u64 Parameter arg 0 -> (v10, v6, v7, v13)
81 1.u64 Parameter arg 1 -> (v10, v6, v7, v13)
82 2.f64 Parameter arg 2 -> (v11, v9)
83 3.f64 Parameter arg 3 -> (v11, v9)
84 4.f32 Parameter arg 4 -> (v8, v12)
85 5.f32 Parameter arg 5 -> (v8, v12)
110 0.u64 Parameter arg 0 -> (v10, v6, v7, v13)
111 1.u64 Parameter arg 1 -> (v10, v6, v7, v13)
112 2.f64 Parameter arg 2 -> (v11, v9)
113 3.f64 Parameter arg 3 -> (v11, v9)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tools/declgen_ts2ets/templates/
Dtest.template.ts35 export function func(arg: TYPE): TYPE {
36 return arg;
40 func2(arg: TYPE, arg2: unknown): TYPE {
41 return arg;
89 export function optional1(a: number, arg?: string): void {}
91 export function optional2(a?: number, arg?: string): void {}
93 export function optional3(a: number | null, arg?: string): void {}
95 export function optional4(a?: number | string, arg?: string): void {}
97 export function optional5(a?: boolean, arg?: string): void {}
99 export function optional6(a?: N.UserClass1, arg?: string): void {}
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/scenarios/ets_to_js/
Dscenarios.ets64 function generic_function_ets<T>(arg: T): T {
65 return arg;
74 function function_arg_type_any_ets(arg: JSValue): JSValue {
75 return arg;
78 function function_arg_type_unknown_ets(arg: JSValue): JSValue {
79 return arg;
82 function function_arg_type_undefined_ets(arg: JSValue): JSValue {
83 return arg;
86 function function_arg_type_tuple(arg: [number, string]): number {
87 return arg[0];

12345678910>>...19