• 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 */
15
16// @KeepSymbol
17let globalVar01 = 1;
18
19// @KeepSymbol
20const globalFunc01 = function(): void{};
21
22// @KeepSymbol
23const globalMyClass01 = class{};
24
25// @KeepSymbol
26export let globalVar02 = 1;
27
28// @KeepSymbol
29export const globalFunc02 = function(): void{};
30
31// @KeepSymbol
32export const globalMyClass02 = class{};
33
34// @KeepAsConsumer
35let globalVar03 = 1;
36
37// @KeepAsConsumer
38const globalFunc03 = function(): void{};
39
40// @KeepAsConsumer
41const globalMyClass03 = class{};
42
43// @KeepAsConsumer
44export let globalVar04 = 1;
45
46// @KeepAsConsumer
47export const globalFunc04 = function(): void{};
48
49// @KeepAsConsumer
50export const globalMyClass04 = class{};
51
52let globalVar05 = 1;
53
54export let globalVar06 = 1;