idlize

Форк
0
112 строк · 2.3 Кб
1
/*
2
 * Copyright (c) 2022-2023 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
import { log } from "./util.test"
17

18
/** @memo */
19
export function zex(
20
    /** @memo */
21
    content: () => void,
22
) {
23
    log("I'm zex")
24
    content()
25
}
26

27
/** @memo */
28
export function til(
29
    arg: string,
30
    /** @memo */
31
    content: () => void,
32
) {
33
    log(`I'm til, I have an ${arg}`)
34
    content()
35
}
36

37
/** @memo */
38
export function qox(
39
    arg: string,
40
    /** @memo */
41
    content: () => void
42
) {
43
    log(`I'm qox, I have an ${arg}`)
44
    content()
45
}
46

47
/** @memo */
48
export function juv(
49
    arg: string,
50
    content: () => void
51
) {
52
    log(`I'm juv, I have a ${arg}`)
53
}
54

55

56
/** @memo */
57
export function accessId(
58
    arg: string,
59
    /** @memo */
60
    content: () => void,
61
) {
62
    log(`I'm accessId, I have an ${arg}`)
63
    content()
64
}
65

66
export class Zan {
67
    /** @memo */
68
    rek(msg: string) {
69
        log(`I'm rek the member. I have an ${msg}`)
70
    }
71

72
    /** @memo */
73
    cep(
74
        arg: string,
75
        /** @memo */
76
        content: () => void
77
    ) {
78
        log(`I'm cep the member. I have an ${arg}, ${this === undefined}`)
79
        content()
80
    }
81
}
82

83
/** @memo */
84
export function kla(
85
    arg: string,
86
    /** @memo */
87
    por: (n: string) => string,
88
    los: (n: string) => string,
89
) {
90
    log(por("funny") + " " + arg)
91
    log(los("happy") + " " + arg)
92
}
93

94
/** @memo */
95
export function ryq(arg: string, adv: string) {
96
    kla(
97
        arg,
98
        /** @memo */
99
        (s):string => s + " ui cow " + adv,
100
        (s):string => s + " non-ui goat " + adv
101
    )
102
}
103

104
/** @memo */
105
export function bae(arg: string, adv: string) {
106
    kla(
107
        arg,
108
        /** @memo */
109
        function(s): string { return s + " ui pig " + adv },
110
        function(s): string { return s + " non-ui horse " + adv }
111
    )
112
}
113

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.