| /arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/ |
| D | memberExpTests.ts | 23 bar: string, property 27 bar: string, property 33 a1.bar = "bar"; 35 b1.bar = a1.bar; 38 a1.foobar.bar = "foo"; 51 foo : {bar: number} 54 a3.foo.bar = 3; 61 bar: Interface5[] property 64 a4.bar[0].foo.foobar = 3; 68 a: ({bar: string} | {bar: number}) [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/compiler/ts/ |
| D | memberExpTests.ts | 23 bar: string, property 27 bar: string, property 33 a1.bar = "bar"; 35 b1.bar = a1.bar; 38 a1.foobar.bar = "foo"; 51 foo : {bar: number} 54 a3.foo.bar = 3; 61 bar: Interface5[] property 64 a4.bar[0].foo.foobar = 3; 68 a: ({bar: string} | {bar: number}) [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/Iterable_Types/ |
| D | for_of_06.ets | 21 class Bar { 28 function doit(bar : Bar) { 29 bar.index = bar.index * 2; 34 let barArray : Bar[] = [new Bar(2), new Bar(3), new Bar(4), new Bar(5), new Bar(6), new Bar(7)]; 35 for (let bar : Bar of barArray) { 36 doit(bar);
|
| D | for-of-s01-array-04.ets | 21 class Bar { 32 // let bar : Bar = new Bar(100000); 33 let barArray : Bar[] = [new Bar(2), new Bar(3), new Bar(4), new Bar(5), new Bar(6), new Bar(7)]; 35 for (let bar : Bar of barArray) { 36 if (bar.index != expectedArray[idx]) {
|
| /arkcompiler/ets_runtime/test/aottest/class_method_signature/ |
| D | class_method_signature.ts | 23 bar(): string { 24 return "bar"; 33 print(a.bar()); 35 print(Reflect.ownKeys(A.prototype)); //constructor,bar,bar2 45 bar(): string { 46 return "bar"; 56 print(a2.bar()); 58 print(Reflect.ownKeys(A2.prototype)); //constructor,foo,bar,bar2 64 bar(): string { method in B 65 return "bar"; [all …]
|
| D | expect_output.txt | 14 bar 16 constructor,bar,bar2 18 bar 20 constructor,foo,bar,bar2 21 bar 23 constructor,bar,bar2 25 bar 27 constructor,bar,foo,bar2
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/modules/verification_wrong_this/incompatible/ |
| D | bar.pa | 17 .record @verification_mode.bar.ETSGLOBAL <ets.abstract, ets.extends=std.core.Object, access.record=… 20 .record @verification_mode.bar.A <ets.extends=std.core.Object, access.record=public> { 22 .function void @verification_mode.bar.A.constructor(@verification_mode.bar.A a0) <ctor, access.func… 25 .function void @verification_mode.bar.A.func(@verification_mode.bar.A a0) <access.function=public> { 29 .record @verification_mode.bar.B <ets.extends=std.core.Object, access.record=public> { 31 .function void @verification_mode.bar.B.constructor(@verification_mode.bar.B a0) <ctor, access.func… 35 .function void @verification_mode.bar.ETSGLOBAL.bar() <static, access.function=public> { 36 initobj.short @verification_mode.bar.B.constructor 38 call.virt.short @verification_mode.bar.A.func, v0
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | SmartCast_05.ets | 39 function bar(x: C|null|undefined, y: boolean, z: boolean): string { 50 assertEQ(bar(null, true, true), "nulltruetrue") 51 assertEQ(bar(null, true, false), "nulltruefalse") 52 assertEQ(bar(null, false, true), "nullfalsetrue") 53 assertEQ(bar(null, false, false), "nullfalsefalse") 57 assertEQ(bar(undefined, true, true), "nulltruetrue") 58 assertEQ(bar(undefined, true, false), "nulltruefalse") 59 assertEQ(bar(undefined, false, true), "nullfalsetrue") 60 assertEQ(bar(undefined, false, false), "nullfalsefalse") 65 assertEQ(bar(c, true, true), "false1truetrue") [all …]
|
| D | mostSpecificMethod.ets | 24 public Bar() : String { 25 return "KlassA::Bar()"; 43 public override Bar() : String { 44 return "KlassB::Bar()"; 70 function Bar(x: int) : String { return "GLOBAL::Bar(int)"; } 71 function Bar(x: short) : String { return "GLOBAL::Bar(short)"; } 72 function Bar(x: char) : String { return "GLOBAL::Bar(char)"; } 73 function Bar(x: double) : String { return "GLOBAL::Bar(double)"; } 98 assertEQ(c.Bar(), "KlassB::Bar()"); 117 assertEQ(Bar(1), "GLOBAL::Bar(int)"); [all …]
|
| /arkcompiler/ets_runtime/test/aottest/ts_multi_inline_max_call/ |
| D | expect_output.txt | 16 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo1@ts_… 17 bar 19 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo2@ts_… 20 bar 22 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo3@ts_… 23 bar 25 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo4@ts_… 26 bar 28 [trace] aot inline function name: #*#bar@ts_multi_inline_max_call caller function name: #*#foo5@ts_… 29 bar [all …]
|
| D | ts_multi_inline_max_call.ts | 29 bar(); 33 bar(); 37 bar(); 41 bar(); 45 bar() 49 bar(); 53 bar(); 56 function bar() { function 57 print("bar")
|
| D | pgo_expect_output.txt | 14 bar 15 bar 16 bar 17 bar 18 bar 19 bar 20 bar
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| D | recipe96.md | 22 class Bar { 23 bar: number = 0 31 function doStuff(arg: Foo | Bar) { 34 console.log(arg.bar) // Compile-time error 37 console.log(arg.bar) // OK 42 doStuff({ bar: 123, common: '123' }) 56 class Bar { 57 bar: number = 0 69 console.log(arg.bar) // Compile-time error 71 let barArg = arg as Bar [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/03.types/19.union_types/03.keyof_types/ |
| D | keyof_generic.params.yaml | 25 bar: V 26 constructor(bar: V) { 27 this.bar = bar 33 let a: t = "bar" 41 bar: V 42 constructor(bar: V) { 43 this.bar = bar 49 let a: t = "bar" 57 bar: V 63 let a: t = "bar" [all …]
|
| D | keyof_class.params.yaml | 62 bar() { return true } 67 - '"bar"' 82 static bar = 1 84 - '"bar"' 91 bar = 1 93 - '"bar"' 136 private bar(i: int) {} 137 public bar() {} 144 - '"bar"' 150 private bar(i: int) {} [all …]
|
| D | keyof_inheritance.params.yaml | 88 bar: string 100 let d: "bar" | "foo" | "jay" = c 117 bar() 120 bar() {} 121 bar(i: int) {} 131 let b: "foo" | "bar" = a 135 let d: "bar" | "foo" | "jay" | "raf" = c 141 bar() 152 let b: "foo" | "bar" = a 156 let d: "bar" | "foo" | "foo1" | "bar1" = c [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/modules/app/ |
| D | module1.ets | 22 import * as bar from "@bar/bar" 38 …assertEQ(appLinker.findLoadedClass("@bar.bar.ETSGLOBAL"), undefined, "module must be loaded lazily… 41 …assertFalse(bar.ClassLoadingChecker_init, "`@bar.bar.ClassLoadingChecker` must be not initialized"… 42 assertNE(appLinker.findLoadedClass("@bar.bar.ETSGLOBAL"), undefined, 43 "module must be loaded after accessing `bar.ClassLoadingChecker_init`"); 46 assertEQ(appLinker.findLoadedClass("@bar.bar.ClassLoadingChecker"), undefined, 47 "`@bar.bar.ClassLoadingChecker` must not be loaded yet"); 50 const instance = new bar.ClassLoadingChecker(); 51 assertEQ(appLinker.findLoadedClass("@bar.bar.ClassLoadingChecker"), Class.of(instance)); 52 assertTrue(bar.ClassLoadingChecker_init, "`@bar.bar.ClassLoadingChecker` must be initialized"); [all …]
|
| /arkcompiler/runtime_core/static_core/static_linker/tests/data/multi/bad_ffield/ |
| D | 1.pa | 18 .record Foo.Bar <external> { 21 Foo.Bar[] noArr <external> 25 .function void Foo.Bar.do(Foo.Bar a0) <external> 28 initobj.short Foo.Bar.do 30 ldobj.obj v0, Foo.Bar.name 33 ldobj v0, Foo.Bar.noId 34 ldobj.obj v0, Foo.Bar.noArr 35 ldobj.obj v0, Foo.Bar.noArr2
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/rules/ |
| D | rule96.ets | 21 class Bar { 22 bar: number = 0 30 function doStuff(arg: Foo | Bar) { 33 console.log(arg.bar) // Compile-time error 36 console.log(arg.bar) // OK 41 doStuff({ bar: 123, common: '123' }) 52 console.log(arg.bar) // Compile-time error 54 let barArg = arg as Bar 56 console.log(barArg.bar) // OK 62 doStuff2(new Bar())
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/11.function_call_expression/ |
| D | fcall_n.params.yaml | 38 function bar(p: string): string { 41 let ft = "bar" 46 function bar(p: string): string { 49 let ft: ((p: string) => string)|null = bar 59 function bar(callee: () => void): void {} 61 bar("A") // CTE: not a function type called 64 function bar(callee: () => void): void { 68 bar((): int => { return 1 }) // CTE: No matching call signature 71 function bar(callee: () => void): void { 75 bar((a: int): void => {}) // CTE: No matching call signature [all …]
|
| /arkcompiler/runtime_core/taihe/test/ani_struct_extend/idl/ |
| D | struct_extend.taihe | 54 interface Bar { 59 @ctor("Bar") 60 function getBar(e: E): Bar; 63 barF: Bar; 68 barG: Bar; 74 barh: Bar; 77 function check_Bar(bar: Bar): bool; 80 function create_Bar(e: E): Bar;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_sdk/api/@ohos/url/ |
| D | UrlTestParamAppendDelete.ets | 18 let that = url.URL.parseURL('http://username:password@host:8080/directory/file?foo=1&bar=2'); 22 assertEQ(result, 'foo=1&bar=2&ma=jk'); 27 let that = url.URL.parseURL('http://username:password@host:8080/directory/file?foo=1&bar=2'); 31 assertEQ(result, "foo=1&bar=2&ma+%E5%A4%A7=jk%EF%BF%A5") 36 let that = url.URL.parseURL('http://username:password@host:8080/directory/file?foo=1&bar=2'); 40 assertEQ(result, "foo=1&bar=2&foo%7E%21%40%23%24%25%5E%26*%28%29_%2B-%3D=jk") 45 let that = url.URL.parseURL('https://example.com?foo=1&bar=2'); 49 assertEQ(result, "foo=1&bar=2&app=par") 53 let that = url.URL.parseURL('https://example.com?foo=1&bar=2'); 57 assertEQ(result, "foo=1&bar=2&123=456") [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/06.type_inference/01.smart_types/ |
| D | if_stmt2.params.yaml | 17 function bar(p: number|string|boolean|null): int { 24 return bar(null) 27 function bar(p: number|string|boolean|null): int { 36 return bar(1.0) 39 function bar(p: number|string|boolean|null): int { 48 return bar('X') 51 function bar(p: number|string|boolean|null): int { 60 return bar(false) 65 bar(p: number|string|boolean|null): int { 73 return new X().bar(null) [all …]
|
| /arkcompiler/runtime_core/taihe/test/ani_struct_extend/author/src/ |
| D | struct_extend.impl.cpp | 22 #include "struct_extend.Bar.proj.2.hpp" 32 class Bar { class 34 explicit Bar(::struct_extend::E const &e) in Bar() function in __anonbc868f7f0111::Bar 109 ::struct_extend::Bar getBar(::struct_extend::E const &e) in getBar() 111 return make_holder<Bar, ::struct_extend::Bar>(e); in getBar() 114 bool check_Bar(::struct_extend::weak::Bar bar) in check_Bar() argument 129 ::struct_extend::Bar create_Bar(::struct_extend::E const &e) in create_Bar() 131 return make_holder<Bar, ::struct_extend::Bar>(e); in create_Bar() 137 .barF = make_holder<Bar, ::struct_extend::Bar>(e), in create_F() 146 .barG = make_holder<Bar, ::struct_extend::Bar>(e), in create_G()
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/03.assignability/ |
| D | functions_compatibility_opt.params.yaml | 20 function bar(i: int, j?: string) { 24 let x: (i: int) => int = bar; 31 function bar(i?: int, j?: string) { 35 let x: (i: int) => int = bar; 42 function bar(i: int, j?: string) { 46 let x: (i: int, j: string) => int = bar; 53 function bar(i?: int, j?: string) { 57 let x: (i: int, j: string) => int = bar;
|