From 1f9ea6bb004578e41dd47f6cfd76f766492382cb Mon Sep 17 00:00:00 2001 From: Phodal Huang Date: Thu, 4 Jan 2024 20:51:00 +0800 Subject: [PATCH] fix(Rust): fix annotation position error issue --- .../src/main/kotlin/chapi/ast/rustast/RustAstBaseListener.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chapi-ast-rust/src/main/kotlin/chapi/ast/rustast/RustAstBaseListener.kt b/chapi-ast-rust/src/main/kotlin/chapi/ast/rustast/RustAstBaseListener.kt index 379217e7..0f981142 100644 --- a/chapi-ast-rust/src/main/kotlin/chapi/ast/rustast/RustAstBaseListener.kt +++ b/chapi-ast-rust/src/main/kotlin/chapi/ast/rustast/RustAstBaseListener.kt @@ -254,7 +254,8 @@ open class RustAstBaseListener(private val fileName: String) : RustParserBaseLis CodeAnnotation( Name = annotationName, - KeyValues = keyValues + KeyValues = keyValues, + Position = buildPosition(attributeContext) ) }.toMutableList() }