| /arkcompiler/runtime_core/static_core/plugins/ets/tests/test-lists/ets-func-tests/ |
| D | ets-func-tests-excluded.txt | 1 spec/nullables/nullable-lambda-default-param_0.sts 2 spec/nullables/nullable-lambda-default-param_1.sts 3 spec/nullables/nullable-lambda-default-param_3.sts 4 spec/nullables/nullable-lambda-default-param_4.sts 5 spec/nullables/nullable-lambda-default-param_5.sts 6 spec/nullables/nullable-lambda-default-param_6.sts
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/12.trailing_lambda/ |
| D | trlambda_static_met.params.yaml | 16 # regular lambda cases as baseline for trailing lambda 26 // regular lambda 41 // regular lambda 50 # trailing lambda cases 60 A.foo(10.0) // trailing lambda 76 A.foo(10.0) // trailing lambda 85 # regular lambda cases with extra block afterwards 95 // regular lambda 112 // regular lambda 119 A.foo(10.0) // trailing lambda [all …]
|
| D | trlambda_met.params.yaml | 16 # regular lambda cases as baseline for trailing lambda 26 // regular lambda 41 // regular lambda 50 # trailing lambda cases 60 new A().foo(10.0) // trailing lambda 76 new A().foo(10.0) // trailing lambda 85 # regular lambda cases with extra block afterwards 95 // regular lambda 112 // regular lambda 119 new A().foo(10.0) // trailing lambda [all …]
|
| D | trlambda_func.params.yaml | 16 # regular lambda cases as baseline for trailing lambda 24 // regular lambda 38 // regular lambda 47 # trailing lambda cases 56 foo(10.0) // trailing lambda 69 foo(10.0) // trailing lambda 78 # regular lambda cases with extra block afterwards 86 // regular lambda 100 // regular lambda 107 foo(10.0) // trailing lambda [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/17.3.Indexable_Types/ |
| D | idx-s01-0080.sts | 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_warnings_tests/remove_lambda_tests/ |
| D | remove_lambda_2-expected.txt | 1 ETS Warning: Replace the lambda function with a regular function. [remove_lambda_2.sts:18:11] 2 ETS Warning: Replace the lambda function with a regular function. [remove_lambda_2.sts:20:11] 3 ETS Warning: Replace the lambda function with a regular function. [remove_lambda_2.sts:22:11]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/11.function_call_expression/ |
| D | fcall.params.yaml | 74 let lambda: VoidFunc = ():void => {} 83 lambda = (): void => { 85 foo(4.0, lambda); 88 assert foo(2.0, lambda) == 13.5 94 let lambda: VoidFunc = ():void => {} 103 lambda = (): void => { 106 lambda() 111 lambda()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/ |
| D | RegExpReplaceFunctionTest.sts | 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 | ReflectHas.sts | 67 let lambda: (a: number) => number = (a: number): number => { 98 result += (Reflect.has(lambda, "length") == true) ? 0 : 1 99 result += (Reflect.has(lambda, "name") == true) ? 0 : 1 100 result += (Reflect.has(lambda, 0) == false) ? 0 : 1 101 result += (Reflect.has(lambda, "toString") == true) ? 0 : 1 102 result += (Reflect.has(lambda, "toLocaleString") == true) ? 0 : 1 103 result += (Reflect.has(lambda, "hasOwnProperty") == true) ? 0 : 1
|
| D | ReflectGet.sts | 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
|
| /arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/ |
| D | lambdaWithWrongOptionalParameter.sts | 26 /* @@? 1:1 Error TypeError: No matching call signature for lambda$invoke$0(undefined) */ 28 /* @@? 1:1 Error TypeError: No matching call signature for lambda$invoke$0(Int|undefined) */ 30 /* @@? 1:1 Error TypeError: No matching call signature for lambda$invoke$0(undefined) */ 32 /* @@? 1:1 Error TypeError: No matching call signature for lambda$invoke$0(Int|undefined) */
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/koala-related-benchmarks/ |
| D | benchmark-lambda-no-lambda-modified.sts | 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))
|
| D | benchmark-lambda-no-lambda-original.sts | 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())
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/08.this_expression/ |
| D | this_in_lambda.sts | 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_negative.sts | 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/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/32.lambda_expression/02.lambda_body/ |
| D | lambda_captured_not_assigned_var.sts | 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…
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/trailing_lambda_tests/ |
| D | trailing_lambda_transform_trailing_block.sts | 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/ets_frontend/ets2panda/test/test-lists/ets-runtime/ |
| D | ets-runtime-ignored.txt | 29 # Failed due to lambda captures 30 trailing-lambda-with-capture.sts 49 # Wrong type inferred for lambda
|
| D | ets-runtime-excluded-DI.txt | 27 object-lambda-parameter.sts 28 optional-lambda-parameter.sts
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ets/ |
| D | loopWithinLambda.sts | 17 type T1 = (lambda: (arg: int) => int, arg: int) => int 21 let funcWithLambda: T1 = (lambda: (arg: int) => int, arg: int) => { return lambda(arg) }
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | trailing-lambda.sts | 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/interop_js/tests/dynamic_object/ |
| D | dynamic_call.sts | 16 import { RegularFunc, Foo, MultipleCall, Lambda, ArrayOfFoo, DoubleArrayOfFoo, ArrayOfLambda } from… 61 function lambda(): int { 62 let callee = Lambda; 63 let x = Lambda() as Int;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/ |
| D | ets_typeapi.h | 79 THROWING = 1U << 8U, // Method, Lambda 80 NATIVE = 1U << 9U, // Method, Lambda 81 ASYNC = 1U << 10U, // Method, Lambda 82 NEVERRESULT = 1U << 11U, // Method, Lambda
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/debugger/src/tests/ |
| D | test_this.py | 45 undefined // #BP{lambda} 46 console.log("lambda", x, n, this) 70 console.log("lambda", z, a, x) 88 case "ctor" | "foo1" | "foo" | "lambda": 115 unk_bp = next(filter(lambda b: b.label == "unknown", walker.meta.breakpoints))
|
| /arkcompiler/runtime_core/static_core/runtime/coroutines/ |
| D | stackful_coroutine.h | 91 /// Executes a foreign lambda function within this context (does not corrupt the saved context) 93 bool ExecuteOnThisContext(L *lambda, StackfulCoroutineContext *requester) in ExecuteOnThisContext() argument 96 return rpcCallContext_.Execute(lambda, &requester->context_, &context_); in ExecuteOnThisContext() 129 /// @brief The remote lambda call functionality implementation. 137 …bool Execute(L *lambda, fibers::FiberContext *requesterContextPtr, fibers::FiberContext *hostConte… in Execute() argument 144 lambda_ = lambda; in Execute()
|