1/** 2 * Copyright (c) 2024 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 */ 15function m0F0(): void { 16 ((): void => { 17 console.log(1); 18 })(); 19 ((): void => { 20 console.log(2); 21 })(); 22 class M0F0C0 { 23 M0F0C0F0(): void {} 24 } 25} 26 27function* m0F1(): Iterable<void> {} 28async function m0F2(): Promise<void> {} 29class M0C0 { 30 M0C0F0(): void {} 31 static M0C0F1(): void {} 32 async M0C0F2(): Promise<void> {} 33 M0C0F3 = (): void => {}; 34 // async *M0C0F3(){} 35} 36enum M0E0 {} 37 38namespace M0N0 { 39 function m0N0F0(): void {} 40 41 function* m0N0F1(): Iterable<void> {} 42 async function m0N0F2(): Promise<void> {} 43 class M0N0C0 { 44 M0N0C0F0(): void {} 45 static M0N0C0F1(): void {} 46 async M0N0C0F2(): Promise<void> {} 47 // async *M0N0C0F3(){} 48 } 49 enum M0N0E0 {} 50 51 namespace M0N0N0 { 52 function m0N0N0F0(): void {} 53 } 54 55 namespace A { 56 namespace B { 57 class C { 58 D(): void { 59 let E = (): void => { 60 let F = (): void => {}; 61 }; 62 E = (): void => { 63 let G = (): void => {}; 64 }; 65 ((): void => {(): void => { 66 let H = (): void => {}; 67 }}); 68 } 69 } 70 71 function I(): void {} 72 } 73 } 74} 75