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 17class Foo { 18 private static get a() { return } 19 public async *g() { } 20 static declare readonly [5] 21 static declare readonly ["b"] 22 static readonly declare 67 23 declare static readonly j 24 private; 25 protected *[1]() { } 26 public static k = "bar" 27 #o = 4; 28 set l(b: number) { }; 29 public get l() { return 2 }; 30 public get m() { return 2 }; 31 protected set m(b: number) { }; 32} 33 34class Bar { c; d() { } e; let; var; const; function; f!: number } 35 36class Baz { 37 #name: string; 38 constructor(name: string) { 39 this.#name = name; 40 } 41 bar() { return this.#name }; 42} 43 44abstract class Inga { 45 abstract a(); 46 aa() { }; 47} 48