Skip to content

Commit 2782a01

Browse files
committed
fix(ts): fix empty classBody issue
1 parent 0eea7d2 commit 2782a01

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

chapi-ast-typescript/src/main/kotlin/chapi/ast/typescriptast/TypeScriptFullIdentListener.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class TypeScriptFullIdentListener(node: TSIdentify) : TypeScriptAstListener() {
189189
currentAnnotations = arrayOf()
190190
hasAnnotation = false
191191

192-
if (ctx.classBody() != null) {
192+
if (ctx.classBody()?.classMemberList() != null) {
193193
this.handleClassBodyElements(ctx.classBody())
194194
}
195195

0 commit comments

Comments
 (0)