From b782bf26b0f91642cfe8fa866cbf1553a653cc74 Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Fri, 4 Mar 2022 13:10:25 +0800 Subject: [PATCH] fix: fix cases issues --- .../main/kotlin/chapi/ast/csharpast/CSharpFullIdentListener.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapi-ast-csharp/src/main/kotlin/chapi/ast/csharpast/CSharpFullIdentListener.kt b/chapi-ast-csharp/src/main/kotlin/chapi/ast/csharpast/CSharpFullIdentListener.kt index 9c692ce2..23e147af 100644 --- a/chapi-ast-csharp/src/main/kotlin/chapi/ast/csharpast/CSharpFullIdentListener.kt +++ b/chapi-ast-csharp/src/main/kotlin/chapi/ast/csharpast/CSharpFullIdentListener.kt @@ -183,8 +183,8 @@ class CSharpFullIdentListener(val fileName: String) : CSharpAstListener() { codeDataStruct: CodeDataStruct ) { val memberDeclaration = memberCtx!!.common_member_declaration() ?: return + val firstChild = memberDeclaration.getChild(0) ?: return - val firstChild = memberDeclaration.getChild(0) var returnType = ""; when (firstChild::class.java.simpleName) { "TerminalNodeImpl" -> {