diff --git a/build.gradle.kts b/build.gradle.kts index bef83300..5690ab1c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -27,7 +27,7 @@ allprojects { apply(plugin = "java") group = "com.phodal.chapi" - version = "2.4.7" + version = "2.4.8" description = "Chapi is A common hierarchical abstract parser && information convertor, streamlines code analysis by converting diverse language source code into a unified abstract model, simplifying cross-language development." diff --git a/chapi-ast-go/src/test/kotlin/chapi/ast/goast/GoFullIdentListenerTest.kt b/chapi-ast-go/src/test/kotlin/chapi/ast/goast/GoFullIdentListenerTest.kt index f0180bae..f13a3bdc 100644 --- a/chapi-ast-go/src/test/kotlin/chapi/ast/goast/GoFullIdentListenerTest.kt +++ b/chapi-ast-go/src/test/kotlin/chapi/ast/goast/GoFullIdentListenerTest.kt @@ -543,7 +543,9 @@ func (d *Dao) GetLiveAchieve(ctx context.Context, uid int64) (achieve int64, err """ val codeFile = GoAnalyser().analysis(code, "") - val functionCalls = codeFile.DataStructures.first().Functions.last().FunctionCalls + val first = codeFile.DataStructures.first() + + val functionCalls = first.Functions.last().FunctionCalls val getExecFunc = functionCalls[0]