From 51afcdd8f7986a3ba3bdc8753b2ea0592652baf3 Mon Sep 17 00:00:00 2001 From: Andong Liao Date: Fri, 25 Feb 2022 17:03:44 +0800 Subject: [PATCH] feat: add package name fore functions --- .../main/kotlin/chapi/ast/kotlinast/KotlinBasicIdentListener.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/chapi-ast-kotlin/src/main/kotlin/chapi/ast/kotlinast/KotlinBasicIdentListener.kt b/chapi-ast-kotlin/src/main/kotlin/chapi/ast/kotlinast/KotlinBasicIdentListener.kt index 9e988877..1b8d8d33 100644 --- a/chapi-ast-kotlin/src/main/kotlin/chapi/ast/kotlinast/KotlinBasicIdentListener.kt +++ b/chapi-ast-kotlin/src/main/kotlin/chapi/ast/kotlinast/KotlinBasicIdentListener.kt @@ -66,6 +66,7 @@ class KotlinBasicIdentListener(fileName: String) : KotlinAstListener() { Override = false, Position = ctx.getPosition(), IsConstructor = true, + Package = codeContainer.PackageName ) } @@ -87,6 +88,7 @@ class KotlinBasicIdentListener(fileName: String) : KotlinAstListener() { Override = false, Position = ctx.getPosition(), IsConstructor = false, + Package = codeContainer.PackageName ) }