Home
last modified time | relevance | path

Searched full:bar (Results 1 – 25 of 1350) sorted by relevance

12345678910>>...54

/arkcompiler/ets_frontend/ets2panda/test/compiler/ts/
DmemberExpTests.ts23 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/es2panda/test/parser/ts/type_checker/
DmemberExpTests.ts23 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 …]
DmemberExpTest_3.ts18 a: ({bar: string} | {bar: number})
24 bar : b; property
27 a5.bar.foo[0].a.bar = false;
DarrayDestructuring.ts19 var2 = "bar";
33 var [var9, [var10, , var11], ...var12] = [{ a: 6, b: "bar" }, [42, , "foo" + 2]];
39 … = [{}, true], ...var16] = [3, [true, {}], function (a: any, b: any): number { return 12 }, "bar"];
78 [var39, [var40, , var41 = "bar"], ...var42] = [{}, [42, , "foo" + 2]];
79 [var39, [var40, , var41 = "bar"], ...var42] = [{}, [42, , "foo" + 2], 3, "baz", false];
81 [var39, [var40, , var41 = "bar"] = [45, , "baz"], ...var42] = [{}, [42, , "foo" + 2]];
87 [var39, [var40, , var41 = "bar"] = var43, ...var42] = [{}, [42, , var44 + 2]];
94 …, var47, var47, var47, ...var48] = [["foo", "bar"], [1, 2], ["foo", "bar"], [1, 2], [1, "foo"], "b…
98 [[...var49], ...var50] = [["foo", "bar"], 1, 2]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/17.Experimental_Features/Iterable_Types/
Dfor_of_06.sts21 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);
Dfor-of-s01-array-04.sts21 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/
Dclass_method_signature.ts23 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 …]
Dexpect_output.txt14 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/ets_runtime/test/aottest/ts_multi_inline_max_call/
Dexpect_output.txt16 [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 …]
Dts_multi_inline_max_call.ts29 bar();
33 bar();
37 bar();
41 bar();
45 bar()
49 bar();
53 bar();
56 function bar() { function
57 print("bar")
Dpgo_expect_output.txt14 bar
15 bar
16 bar
17 bar
18 bar
19 bar
20 bar
/arkcompiler/ets_frontend/ets2panda/linter/docs/rules/
Drecipe96.md22 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 …]
Drecipe52.md26 function bar() {
27 console.log("bar")
32 c2.foo = bar
35 c2.foo() // bar
57 function bar() {
58 console.log("bar")
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DSmartCast_05.sts39 function bar(x: C|null|undefined, y: boolean, z: boolean): string {
50 assert(bar(null, true, true) == "nulltruetrue");
51 assert(bar(null, true, false) == "nulltruefalse");
52 assert(bar(null, false, true) == "nullfalsetrue");
53 assert(bar(null, false, false) == "nullfalsefalse");
57 assert(bar(undefined, true, true) == "nulltruetrue");
58 assert(bar(undefined, true, false) == "nulltruefalse");
59 assert(bar(undefined, false, true) == "nullfalsetrue");
60 assert(bar(undefined, false, false) == "nullfalsefalse");
65 assert(bar(c, true, true) == "false1truetrue");
[all …]
DmostSpecificMethod.sts24 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 assert(c.Bar() == "KlassB::Bar()");
117 assert(Bar(1) == "GLOBAL::Bar(int)");
[all …]
/arkcompiler/runtime_core/static_core/static_linker/tests/data/multi/bad_ffield/
D1.pa18 .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/
Drule96.sts21 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/15.semantic_rules/06.type_inference/01.smart_types/
Dif_stmt2.params.yaml17 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/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/04.type_compatibility/
Dfunctions_compatibility_opt.params.yaml20 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;
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/04.names_declarations_and_scopes/05.accesible/
Dtype_name_interface_prop.params.yaml25 assert(a.bar(a.foo) == 0x80 as byte);
36 assert(a.bar(a.foo) == 0x7FFF as short);
47 assert(a.bar(a.foo) == 127 as int);
58 assert(a.bar(a.foo) == 127 as long);
69 assert(a.bar(a.foo) == +0.0 as float);
80 assert(a.bar(a.foo) == +0.0 as double);
91 assert(a.bar(a.foo) == +0.0 as number);
102 assert(a.bar(a.foo) == c'a');
113 assert(a.bar(a.foo) == false);
125 assert(a.bar(a.foo).unboxed() == 0x7F as byte);
[all …]
/arkcompiler/ets_runtime/test/aottest/pgo_function_operation/
Dpgo_function_operation.ts29 // store: A.prototype.bar --> type: MONO_STORE_PROPERTY
30 A.prototype.bar = function() {
31 print("bar");
43 // load: a.bar --> type: MONO_LOAD_PROPERTY_ON_PROTO
44 a.bar();
60 print(b.bar); // --> slow path
66 // store: B.prototype.bar --> type: MONO_STORE_PROPERTY
67 B.prototype.bar = "bar";
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/09.classes/9.6.Method_Declarations/10.Overriding_by_Instance_Methods/interfaces_overriding/
Dinterface_overriding_02.sts25 bar(): I
35 bar(): AA
47 bar(): AA {
48 this.value = "bar(): AA"
59 b.bar()
60 assert b.getValue() == "bar(): AA"
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/16.coroutines/02.awaiting_coroutine/
Da.params.yaml21 function bar(p: int): int {
25 assert(foo(launch bar(1)) == 2)
32 function bar(p: int): int {
40 foo(launch bar(1))
56 function bar(p: int): int {
61 foo(launch bar(1), 1)
74 function bar(p: int): int throws {
82 foo(launch bar(1))
98 function bar(p: int): int throws {
103 foo(1, launch bar(1))
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/regression/
Dverify_generics.sts17 bar(x: K): K {
23 bar<K>(x: K): K {
42 bar<L>(): MyFoo<L> {
57 function bar<T extends Comparable<string>>(x: T): T {
63 console.println(bar<string>("456").charAt(1));
70 console.println(myX.bar("456").charAt(1));
71 console.println(myY.bar<string>("456").charAt(1));
74 console.println(myA.bar<string>().foo(1));
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ts/
DmemberExpTest_3.ts18 a: ({bar: string} | {bar: number})
24 bar : b; property
27 /* @@ label */a5.bar.foo[0].a.bar = false;

12345678910>>...54