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 16exports.etsAnnotationsEnable = true; 17exports.emitIntermediateTS = true; 18 19exports.source = ` 20@interface Anno { 21 d = !false 22 r: boolean = true && false 23 s: boolean = false || true 24 t = true < false 25 u = false <= true 26 v = false > true 27 w = false >= true 28 x = true === true 29 y = true !== true 30 z = false == false 31} 32` 33 34exports.expectResult = `let __generate__Id: number = 0; 35function generateId(): string { 36 return "annotationDeclarationFieldInitializer4_" + ++__generate__Id; 37} 38@interface Anno { 39 d: boolean = true; 40 r: boolean = false; 41 s: boolean = true; 42 t: boolean = false; 43 u: boolean = true; 44 v: boolean = false; 45 w: boolean = false; 46 x: boolean = true; 47 y: boolean = false; 48 z: boolean = true; 49} 50`