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 16switch:[11](q): [12]{: [13]case: [14]1:: [15]{: [16]q: [17] +=: [18]2;: 17[38]try: [39]{: [40]s: [41] +=: [42]"cba";: [43]q: [44] +=: [45]5;: [46]throw: [98] 18 19/* @@? 16:7 Error SyntaxError: Unexpected token ':'. */ 20/* @@? 16:7 Error SyntaxError: Expected '(', got ':'. */ 21/* @@? 16:7 Error TypeError: Indexed access is not supported for such expression type. */ 22/* @@? 16:7 Error TypeError: Incompatible types. Found: *ERROR_TYPE*, required: char , byte , short , int, long , Char , Byte , Short , Int, Long , String or an enum type */ 23/* @@? 16:15 Error SyntaxError: Expected '{', got ':'. */ 24/* @@? 16:15 Error SyntaxError: Expected ')', got ':'. */ 25/* @@? 16:15 Error SyntaxError: Unexpected token ':', expected 'case' or 'default'. */ 26/* @@? 16:21 Error SyntaxError: Unexpected token '{'. */ 27/* @@? 16:22 Error SyntaxError: Unexpected token ':'. */ 28/* @@? 16:22 Error TypeError: Indexed access is not supported for such expression type. */ 29/* @@? 16:28 Error SyntaxError: Unexpected token 'case'. */ 30/* @@? 16:32 Error SyntaxError: Unexpected token ':'. */ 31/* @@? 16:32 Error TypeError: Indexed access is not supported for such expression type. */ 32/* @@? 16:38 Error SyntaxError: Unexpected token '1'. */ 33/* @@? 16:39 Error SyntaxError: Unexpected token ':'. */ 34/* @@? 16:40 Error SyntaxError: Unexpected token ':'. */ 35/* @@? 16:40 Error TypeError: Indexed access is not supported for such expression type. */ 36/* @@? 16:46 Error SyntaxError: Unexpected token '{'. */ 37/* @@? 16:47 Error SyntaxError: Unexpected token ':'. */ 38/* @@? 16:47 Error TypeError: Indexed access is not supported for such expression type. */ 39/* @@? 16:53 Error SyntaxError: Unexpected token 'q'. */ 40/* @@? 16:56 Error SyntaxError: Label must be followed by a loop statement. */ 41/* @@? 16:56 Error TypeError: Invalid left-hand side of assignment expression */ 42/* @@? 16:61 Error SyntaxError: Invalid left-hand side in assignment expression. */ 43/* @@? 16:63 Error SyntaxError: Unexpected token ':'. */ 44/* @@? 16:69 Error SyntaxError: Unexpected token '2'. */ 45/* @@? 16:71 Error SyntaxError: Unexpected token ':'. */ 46/* @@? 16:71 Error TypeError: Indexed access is not supported for such expression type. */ 47/* @@? 17:5 Error SyntaxError: Unexpected token 'try'. */ 48/* @@? 17:5 Error SyntaxError: A try statement should contain either finally clause or at least one catch clause. */ 49/* @@? 17:8 Error SyntaxError: Expected '{', got ':'. */ 50/* @@? 17:8 Error SyntaxError: Unexpected token ':'. */ 51/* @@? 17:14 Error SyntaxError: Unexpected token '{'. */ 52/* @@? 17:15 Error SyntaxError: Unexpected token ':'. */ 53/* @@? 17:21 Error SyntaxError: Unexpected token 's'. */ 54/* @@? 17:24 Error SyntaxError: Label must be followed by a loop statement. */ 55/* @@? 17:29 Error SyntaxError: Invalid left-hand side in assignment expression. */ 56/* @@? 17:31 Error SyntaxError: Unexpected token ':'. */ 57/* @@? 17:37 Error SyntaxError: Unexpected token 'cba'. */ 58/* @@? 17:43 Error SyntaxError: Unexpected token ':'. */ 59/* @@? 17:49 Error SyntaxError: Unexpected token 'q'. */ 60/* @@? 17:52 Error SyntaxError: Label must be followed by a loop statement. */ 61/* @@? 17:57 Error SyntaxError: Invalid left-hand side in assignment expression. */ 62/* @@? 17:59 Error SyntaxError: Unexpected token ':'. */ 63/* @@? 17:65 Error SyntaxError: Unexpected token '5'. */ 64/* @@? 17:67 Error SyntaxError: Unexpected token ':'. */ 65/* @@? 17:73 Error SyntaxError: Unexpected token 'throw'. */ 66/* @@? 17:78 Error SyntaxError: Unexpected token ':'. */ 67/* @@? 68:1 Error SyntaxError: Expected '}', got 'end of stream'. */ 68