| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
| D | lambda_utils.cpp | 21 void LambdaUtils::InvokeVoid(EtsCoroutine *coro, EtsObject *lambda) in InvokeVoid() argument 23 EtsMethod *invoke = lambda->GetClass()->GetMethod("invoke"); in InvokeVoid() 28 Value arg(lambda->GetCoreType()); in InvokeVoid()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/indexable/ |
| D | idx-s01-0080.ets | 25 public lambda: fooLambda = (s: String) => { 35 let lambda = x[0]; 36 assert (lambda("hello") == "hellohello"); 43 lambda = x[0]; 44 assert(lambda("hello") == "hellohellohello")
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | RegExpReplaceFunctionTest.ets | 20 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => { 28 failure += checkTestResult(shor.replace("x", lambda), "0axbxcx") 37 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => { 45 failure += checkTestResult(shor.replace(new RegExp("x"), lambda), "0axbxcx") 55 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => { 63 failure += checkTestResult(shor.replace(new RegExp("x", "g"), lambda), "0a1b2c3") 73 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => { 83 failure += checkTestResult(shor.replace(new RegExp("(x)(?=(.))", "g"), lambda), "0a1b2cx") 91 … let lambda : (str: String, args: Object[]) => String = (str: String, args: Object[]) : String => { 96 failure += checkTestResult(shor.replace(new RegExp("(.)", "g"), lambda), "ABCD")
|
| D | ReflectGet.ets | 89 let lambda: (a: number) => number = (a: number): number => { 93 result += (Reflect.get(lambda, 0) == null) ? 0 : 1 94 result += (Reflect.get(lambda, "length") as Number == 1) ? 0 : 1 95 result += (Reflect.get(lambda, "name") == "") ? 0 : 1 97 result += (Reflect.get(lambda, "qwerty") == undefined) ? 0 : 1
|
| D | ReflectHas.ets | 64 let lambda: (a: number) => number = (a: number): number => { 85 result += (Reflect.hasOwn(lambda, "length") == true) ? 0 : 1 86 result += (Reflect.hasOwn(lambda, "name") == true) ? 0 : 1 87 result += (Reflect.hasOwn(lambda, 0) == false) ? 0 : 1
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/koala-related-benchmarks/ |
| D | benchmark-lambda-no-lambda-original.ets | 50 console.log("Starting lambda benchmark") 55 console.log("lambda time: " + (Date.now() - start).toString()) 59 console.log("Starting no-lambda benchmark") 64 console.log("no lambda time: " + (Date.now() - start).toString())
|
| D | benchmark-lambda-no-lambda-modified.ets | 50 console.log("Starting lambda benchmark") 55 console.log("lambda time: " + (Date.now() - start)) 59 console.log("Starting no-lambda benchmark") 64 console.log("no lambda time: " + (Date.now() - start))
|
| /arkcompiler/runtime_core/static_core/runtime/coroutines/ |
| D | stackful_coroutine.h | 92 bool ExecuteOnThisContext(L *lambda, StackfulCoroutineContext *requester) in ExecuteOnThisContext() argument 95 return rpcCallContext_.Execute(lambda, &requester->context_, &context_); in ExecuteOnThisContext() 125 …bool Execute(L *lambda, fibers::FiberContext *requesterContextPtr, fibers::FiberContext *hostConte… in Execute() argument 132 lambda_ = lambda; in Execute()
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | trailing-lambda.ets | 16 // test transformation of trailing lambda 35 …Test '{' at the same line as call expression, block statement can be transformed to trailing lambda 41 …est '{' not the same line as call expression, block statement can be transformed to trailing lambda 67 // test signature matches of trailing lambda 79 // This block will be transform to a trailing lambda 84 // test class methods using trailing lambda
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/09.this_expression/ |
| D | this_in_lambda_negative.ets | 17 desc: Keyword this in lambda. 18 assert: It may be used in a lambda expression only if it is allowed in the context in which the lam…
|
| D | this_in_lambda.ets | 17 desc: Keyword this in lambda. 18 assert: It may be used in a lambda expression only if it is allowed in the context in which the lam…
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/trailing_lambda_tests/ |
| D | trailing_lambda_transform_trailing_block.ets | 22 // Case 1: transform trailing lambda for expression statement 32 // Case 2: transform trailing lambda for variable declaration 38 // Case 3: transform trailing lambda for assert statement
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/31.lambda_expression/02.lambda_body/ |
| D | lambda_captured_not_assigned_var.ets | 17 desc: lambda captured local not assigned variable. 18 …ssert: Any local variable used but not declared in a lambda body must be assigned before the lambd…
|
| D | lambda_captured_ref_type_3.ets | 17 desc: lambda captured local variable reference type. change object in lambda body.
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | loopWithinLambda.ets | 17 type T1 = (lambda: (arg: int) => int, arg: int) => int 21 let funcWithLambda: T1 = (lambda: (arg: int) => int, arg: int) => { return lambda(arg) }
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | Object.ets | 115 let lambda: (a: number) => number = (a: number): number => { 135 result += strArraysAreEqual(Object.keys(lambda), emptyArr) ? 0 : 1 157 let lambda: (a: number) => number = (a: number): number => { 181 result += objArraysAreEqual(Object.values__(lambda), emptyArr) ? 0 : 1 203 let lambda: (a: number) => number = (a: number): number => { 245 result += tupleArraysAreEqual(Object.entries(lambda), emptyTuple) ? 0 : 1 267 let lambda: (a: number) => number = (a: number): number => { 287 result += strArraysAreEqual(Reflect.ownKeys(lambda), ["length", "name"]) ? 0 : 1 300 let lambda: (a: number) => number = (a: number): number => { 321 result += ((lambda as Object).hasOwnProperty("length") == true) ? 0 : 1 [all …]
|
| /arkcompiler/runtime_core/static_core/tests/tests-u-runner/test-lists/ets-func-tests/ |
| D | ets-func-tests-ignored.txt | 186 koala-related-benchmarks/benchmark-lambda-no-lambda-original.ets 189 koala-related-benchmarks/benchmark-lambda-no-lambda-modified.ets 224 ### Trailing lambda issues 243 ### End of Trailing lambda 316 ### lambda issues begin 318 spec/lambda/callAsyncMethodFromAsyncLambda1.ets 319 spec/lambda/callMethodFromAsyncLambda1.ets 321 spec/lambda/callAsyncMethodFromAsyncLambda2.ets 322 spec/lambda/callMethodFromAsyncLambda2.ets 324 spec/lambda/callRegularLambdaWithAsyncOverload.ets [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/trailing_lambdas/ |
| D | trailing_lm_param_n.ets | 18 17.10 Trailing lambda 19 Trailing lambda with parameters not supported
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/conditional-expression/string/expr/ |
| D | string-expression-lambda-no-param.ets | 25 let lambda: LambdaNoParam = () => { 32 return lambda;
|
| D | string-expression-lambda-param-non-empty.ets | 24 let lambda: LambdaOneParam = (s: String) => { 31 return lambda;
|
| D | string-expression-lambda-param-empty.ets | 24 let lambda: LambdaOneParam = (s: String) => { 31 return lambda;
|
| /arkcompiler/ets_frontend/ets2panda/test/test-lists/ets-runtime/ |
| D | ets-runtime-ignored.txt | 32 # Failed due to lambda captures 33 trailing-lambda-with-capture.ets
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/10.trailing_lambda/ |
| D | trlambda_func.ets | 19 The trailing lambda mechanism allows using a special form of function 21 of function type, and the argument is passed as a lambda using the {} notation.
|
| D | trlambda_static_met.ets | 19 The trailing lambda mechanism allows using a special form of function 21 of function type, and the argument is passed as a lambda using the {} notation.
|
| D | trlambda_met.ets | 19 The trailing lambda mechanism allows using a special form of function 21 of function type, and the argument is passed as a lambda using the {} notation.
|