1/* 2 * Copyright (c) 2022 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 17a: b; 18 19b: if (0) {} 20 21c: if (0) {} else {} 22 23d: while (0) {}; 24 25e: do {} while (0); 26 27f: switch(0) {} 28 29g: try {} catch(e) {} finally {} 30 31function a() 32{ 33 b: 34 { 35 a: 36 while(true) 37 { 38 break a; 39 } 40 } 41} 42 43 44function b() 45{ 46 b: 47 { 48 a: 49 c: 50 while(true) 51 { 52 break b; 53 } 54 } 55} 56 57a: 58b: 59c: 60d: 1; 61 62a: 1; 63a: 2; 64a: 3; 65