Home
last modified time | relevance | path

Searched refs:b (Results 1 – 25 of 3194) sorted by relevance

12345678910>>...128

/arkcompiler/ets_frontend/ets2panda/test/parser/js/
Dtest-binary-expression.js17 a | b
18 a ^ b
19 a & b
20 a == b
21 a != b
22 a === b
23 a !== b
24 a < b
25 a <= b
26 a > b
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-binary-expression.js17 a | b
18 a ^ b
19 a & b
20 a == b
21 a != b
22 a === b
23 a !== b
24 a < b
25 a <= b
26 a > b
[all …]
/arkcompiler/ets_frontend/ets2panda/test/compiler/ts/
DvarRedeclaration.ts20 var b: number; variable
21 var b: number; variable
26 var d: { a: number, b: string }; variable
27 var d: { b: string, a: number };
29 var e: (a: number, b: (string | number)[]) => void;
30 var e: (a: number, b: (string | number)[]) => void;
32 var f: { a: number, b: string } | { a: number[], b?: string }; variable
33 var f: { a: number, b: string } | { a: number[], b?: string }; variable
37 b: string, property
42 b: string, property
[all …]
DobjectLiteralAssignability.ts18 var obj2: { a: number, b: string } | { a: number, b: string, c: number } = { a: 5, b: "foo", ...obj… variable
19 obj2 = { a: 2, b: "bar", c: 3 };
22 var obj4: { a: typeof obj3, b?: { a: number, b?: string } } = { a: {}, b: { a: 5 } }; variable
23 obj4 = { a: {}, b: { a: 5, b: "foo" } };
26 var obj5: { a: { a: number, b: string }, b: { a: boolean } } = { a: { a: 5, b: "foo" }, b: { a: tru… variable
27 var obj6: { a(a: number, b: string): number, b(): boolean }; variable
28 obj6 = { a: function (a: number, b: string): number { return 12; }, b: function () { return true } …
30 var obj7: {} | { a: number } | { a: string, b: number } | { a: boolean, b: string, c: number }; variable
33 obj7 = { a: "foo", b: 5 };
34 obj7 = { a: true, b: "foo", c: 5 };
[all …]
DinterfaceAssignment.ts19 b: string, property
23 var a: A = { a: 1, b: "foo", c: true };
26 d(a: number, b: string): number[];
29 var b: B = { variable
30 a: 2, b: "bar", c: false, d: function (a: number, b: string) {
37 (a: number, b: number): string,
41 (a: number, b: number): string,
42 (a: number, b: number): string,
43 (a: number, b: number): string,
47 (a: number, b: number): string,
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/type_checker/
DvarRedeclaration.ts20 var b: number; variable
21 var b: number; variable
26 var d: { a: number, b: string }; variable
27 var d: { b: string, a: number };
29 var e: (a: number, b: (string | number)[]) => void;
30 var e: (a: number, b: (string | number)[]) => void;
32 var f: { a: number, b: string } | { a: number[], b?: string }; variable
33 var f: { a: number, b: string } | { a: number[], b?: string }; variable
37 b: string, property
42 b: string, property
[all …]
DobjectLiteralAssignability.ts18 var obj2: { a: number, b: string } | { a: number, b: string, c: number } = { a: 5, b: "foo", ...obj… variable
19 obj2 = { a: 2, b: "bar", c: 3 };
22 var obj4: { a: typeof obj3, b?: { a: number, b?: string } } = { a: {}, b: { a: 5 } }; variable
23 obj4 = { a: {}, b: { a: 5, b: "foo" } };
26 var obj5: { a: { a: number, b: string }, b: { a: boolean } } = { a: { a: 5, b: "foo" }, b: { a: tru… variable
27 var obj6: { a(a: number, b: string): number, b(): boolean }; variable
28 obj6 = { a: function (a: number, b: string): number { return 12; }, b: function () { return true } …
30 var obj7: {} | { a: number } | { a: string, b: number } | { a: boolean, b: string, c: number }; variable
33 obj7 = { a: "foo", b: 5 };
34 obj7 = { a: true, b: "foo", c: 5 };
[all …]
DinterfaceAssignment.ts19 b: string, property
23 var a: A = { a: 1, b: "foo", c: true };
26 d(a: number, b: string): number[];
29 var b: B = { variable
30 a: 2, b: "bar", c: false, d: function (a: number, b: string) {
37 (a: number, b: number): string,
41 (a: number, b: number): string,
42 (a: number, b: number): string,
43 (a: number, b: number): string,
47 (a: number, b: number): string,
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dobject_literals.ts18 b: string; property
23 b: string; property in C
35 let a1 = { a: 1, b: 'a' }; // NOT OK
36 let a2: any = { a: 2, b: 'b' }; // OK - ASSIGNMENT TO ANY
37 let a3: { a: number; b: string } = { a: 30, b: 'c' }; // NOT OK
38 let a4: I = { a: 4, b: 'd' }; // OK
39 let a5: C = { a: 5, b: 'e' }; // OK
43 w: { a: 7, b: 'g' }, // OK - ASSIGNMENT TO ANY
44 e: { a: 8, b: 'h' }, // OK
45 r: { a: 9, b: 'i' }, // OK
[all …]
Ddestructuring.ts22 function print([a, b]): void {
23 console.log(a, b);
42 b = 10,
44 ({ b, c } = { b: 200, c: 'bar' });
45 [a, b] = [b, a];
48 [a, b, ...rest] = [10, 20, 30, 40, 50];
58 b: {
62 } = { a: 10, b: { c: 'foo', d: [30, 40] } });
63 [a, b, [x, { f }]] = [1, 2, [{ e: 20 }, { f: 5 }]];
77 const [a, b] = getArray(); constant
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/tests/
Dinstruction_combine_test.cpp360 CircuitBuilder b(&circuit); in HWTEST_F_L0() local
361 Environment env(0, &b); in HWTEST_F_L0()
362 b.SetEnvironment(&env); in HWTEST_F_L0()
368 auto x = b.Arguments(1); in HWTEST_F_L0()
369 auto const_0 = b.Int64(0); in HWTEST_F_L0()
370 auto result = b.Int64Mul(x, const_0); in HWTEST_F_L0()
375 auto x = b.Arguments(1); in HWTEST_F_L0()
376 auto const_1 = b.Int64(1); in HWTEST_F_L0()
377 auto result = b.Int64Mul(x, const_1); in HWTEST_F_L0()
383 auto const_1 = b.Int64(1); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_frontend/ets2panda/linter-4.2/test/
Dobject_literals.ts18 b: string; property
23 b: string; property in C
35 let a1 = { a: 1, b: 'a' }; // NOT OK
36 let a2: any = { a: 2, b: 'b' }; // NOT OK
37 let a3: { a: number; b: string } = { a: 30, b: 'c' }; // NOT OK
38 let a4: I = { a: 4, b: 'd' }; // OK
39 let a5: C = { a: 5, b: 'e' }; // OK
43 w: { a: 7, b: 'g' }, // NOT OK
44 e: { a: 8, b: 'h' }, // OK
45 r: { a: 9, b: 'i' }, // OK
[all …]
Ddestructuring.ts22 function print([a, b]): void {
23 console.log(a, b);
42 b = 10,
44 ({ b, c } = { b: 200, c: 'bar' });
45 [a, b] = [b, a];
48 [a, b, ...rest] = [10, 20, 30, 40, 50];
58 b: {
62 } = { a: 10, b: { c: 'foo', d: [30, 40] } });
63 [a, b, [x, { f }]] = [1, 2, [{ e: 20 }, { f: 5 }]];
77 const [a, b] = getArray(); constant
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/napi/
Dets_napi_macros.h47 #define ETS_NAPI_ABORT_IF_NE(a, b) \ argument
49 if ((a) != (b)) { \
54 #define ETS_NAPI_ABORT_IF_LT(a, b) \ argument
56 if ((a) < (b)) { \
61 #define ETS_NAPI_ABORT_IF_LE(a, b) \ argument
63 if ((a) <= (b)) { \
68 #define ETS_NAPI_ABORT_IF_GT(a, b) \ argument
70 if ((a) > (b)) { \
75 #define ETS_NAPI_ABORT_IF_GE(a, b) \ argument
77 if ((a) >= (b)) { \
[all …]
/arkcompiler/ets_runtime/test/moduletest/arraysort/
Darraysort.js30 constructor(a, b) { argument
32 this.b = new ClassB(b);
41 objHandler1.sort((a, b) => {
42 return a.b.n - b.b.n;
54 objHandler2.sort((a, b) => {
55 return a.b.n - b.b.n;
65 arr1.sort((a, b) => {
66 print(`comparing a = ${a}, b = ${b}`);
67 return a - b;
73 arr2.sort((a, b) => {
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ts/
Dtest-func-param.ts17 function func1(a: number, b: string) { }
18 function func2(a: boolean = true, ...b: number[]) { }
19 function func3(a = 6, [c, d], b?) { }
20 function func4({ }: number, [a, b]: string[]) { }
21 function func5([a, b]: [number, string] = [1, "foo"]) { }
22 function func6({ a, b }: { a: number, b: number } = { a: 0, b: 0 }) { }
23 declare function func7([a, b]: [number, string])
24 declare function func8({ a, b }: { a: number, b: number })
25 declare function func9([a, b]?: [number, string])
26 declare function func10({ a, b }?: { a: number, b: number })
[all …]
Dtest-type-annotation.ts19 var b: string; variable
45 var func1: (a: number, b: string) => number;
46 var func2: (a: number[] | string, b?: 5) => number | string;
47 var func3: (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b: boolean) => …
50 var ctor1: new (a: number, b: string) => number;
51 var ctor2: new (a: number[] | string, b?: 5) => number | string;
52 var ctor3: new (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b: boolean)…
53 var ctor4: abstract new (a: number, b: string) => number;
54 var ctor5: abstract new (a: number[] | string, b?: 5) => number | string;
55 var ctor6: abstract new (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b:…
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest-func-param.ts17 function func1(a: number, b: string) { }
18 function func2(a: boolean = true, ...b: number[]) { }
19 function func3(a = 6, [c, d], b?) { }
20 function func4({ }: number, [a, b]: string[]) { }
21 function func5([a, b]: [number, string] = [1, "foo"]) { }
22 function func6({ a, b }: { a: number, b: number } = { a: 0, b: 0 }) { }
23 declare function func7([a, b]: [number, string])
24 declare function func8({ a, b }: { a: number, b: number })
25 declare function func9([a, b]?: [number, string])
26 declare function func10({ a, b }?: { a: number, b: number })
[all …]
Dtest-type-annotation.ts19 var b: string; variable
45 var func1: (a: number, b: string) => number;
46 var func2: (a: number[] | string, b?: 5) => number | string;
47 var func3: (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b: boolean) => …
50 var ctor1: new (a: number, b: string) => number;
51 var ctor2: new (a: number[] | string, b?: 5) => number | string;
52 var ctor3: new (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b: boolean)…
53 var ctor4: abstract new (a: number, b: string) => number;
54 var ctor5: abstract new (a: number[] | string, b?: 5) => number | string;
55 var ctor6: abstract new (f: (a: number, b: string) => number[], [a, b]: number[]) => (a: number, b:…
Dtest_infer-type-with-extends3.ts17 type X7_T1 = T7<{ a: "a", b: "b" }>; // ["string", "a" | "b"]
18 type X7_T2 = T7<{ a: 1, b: 2 }>; // ["number", 1 | 2]
19 type X7_T3 = T7<{ a: object, b: object }>; // never
20 type X7_T4 = T7<{ a: "a", b: 1 }>; // never
24 T extends { a: infer U extends string, b: infer U } ? ["string", U] :
25 T extends { a: infer U extends number, b: infer U } ? ["number", U] :
28 type X8_T1 = T8<{ a: "a", b: "b" }>; // ["string", "a" | "b"]
29 type X8_T2 = T8<{ a: 1, b: 2 }>; // ["number", 1 | 2]
30 type X8_T3 = T8<{ a: object, b: object }>; // never
31 type X8_T4 = T8<{ a: "a", b: 1 }>; // never
[all …]
/arkcompiler/toolchain/tooling/test/testcases/js/
Ddropframe.js21 b = 3;
36 b = 4;
41 b = 5;
56 b = b + a;
57 c = c * b;
58 d = d * c + b * a;
68 b = b + a;
69 c = c + b * a;
70 d = d * (b - a);
86 b = b + a * j;
[all …]
/arkcompiler/ets_runtime/test/aottest/global_value_numbering_ts/
Dglobal_value_numbering_ts.ts28 function div(a: number, b: number): number {
31 let k = a / b;
34 if (b > 0) {
35 let k = a / b;
42 function mul(a: number, b: number): number {
45 let k = a * b;
48 if (b > 0) {
49 let k = a * b;
56 function sub(a: number, b: number): number {
59 let k = a - b;
[all …]
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/controlFlow/
Dtest-ts-ternary-operator-1.ts17 var a = 3, b = 2, c = 1; variable
18 const res1 = a < b ? (a < c ? a : c) : (b < c ? b : c);
21 const res2 = (a > b) ? ((a << 16)) : ((b << 16));
24 const res3 = (a < b) ? (1) : (b << 2);
27 const res4 = (a > b) ? (1 << 2) : (b << 2);
30 const res5 = (a > b) ? ((a << 16) | b) : ((b << 16) | a);
/arkcompiler/ets_runtime/test/workload/objaccess/
Dobjaccess.js17 var extendStatics = function (d, b) { argument
19 ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || argument
20 … function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
21 return extendStatics(d, b);
23 return function (d, b) { argument
24 if (typeof b !== "function" && b !== null)
25 … throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
26 extendStatics(d, b);
28 d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/src/
Dmuid.cpp34 #define TRANS(f, a, b, c, d, x, t, s) \ argument
35 (a) += f((b), (c), (d)) + (x) + (t); \
37 (a) += (b);
65 unsigned int a, b, c, d; in MuidTransform() local
74 b = status.b; in MuidTransform()
79 TRANS(F, a, b, c, d, status.block[0], 0xd76aa478, 7) in MuidTransform()
80 TRANS(F, d, a, b, c, status.block[1], 0xe8c7b756, 12) in MuidTransform()
81 TRANS(F, c, d, a, b, status.block[2], 0x242070db, 17) in MuidTransform()
82 TRANS(F, b, c, d, a, status.block[3], 0xc1bdceee, 22) in MuidTransform()
83 TRANS(F, a, b, c, d, status.block[4], 0xf57c0faf, 7) in MuidTransform()
[all …]

12345678910>>...128