• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2025 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15let GeneratedImportVar_1 = ESValue.load('./binary_operation_js_obj_js');
16let foo = GeneratedImportVar_1.getProperty('foo');
17let m = GeneratedImportVar_1.getProperty('m');
18let n = GeneratedImportVar_1.getProperty('n');
19
20let a = foo.getProperty("a")
21let b = foo.getProperty("b")
22a + b
23a - b
24a * b
25a / b
26a % b
27Math.pow(a, b)
28
29m.toNumber() + n.toNumber()
30m.toNumber() % n.toNumber()
31Math.pow(m.toNumber(), n.toNumber())
32
33let x: number = 1.0, y: number = 2.0;
34x + y;
35x - y;
36x % y;
37Math.pow(x, y);
38
39interface GeneratedObjectLiteralInterface_1 {
40    a: number;
41    b: number;
42}
43let bar: GeneratedObjectLiteralInterface_1 = { a: 1.0, b: 2.0 };
44
45let x2: number = bar.a, y2: number = bar.b;
46x2 + y2;
47x2 - y2;
48x2 % y2;
49Math.pow(x2, y2);
50
51foo.getProperty("a").toNumber() + foo.getProperty("b").toNumber();