Skip to content

Commit 731ba8d

Browse files
authored
fix: *ASTReadTools.GetASTNode didn't return its mod_path and pkg_path (#65)
1 parent bb4eee7 commit 731ba8d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llm/tool/ast_read.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -491,6 +491,8 @@ func (t *ASTReadTools) GetASTNode(_ context.Context, params GetASTNodeReq) (*Get
491491
grps = append(grps, NewNodeID(grp.Identity))
492492
}
493493
resp.Nodes = append(resp.Nodes, NodeStruct{
494+
ModPath: node.Identity.ModPath,
495+
PkgPath: node.Identity.PkgPath,
494496
Name: node.Identity.Name,
495497
Type: node.Type.String(),
496498
Codes: node.Content(),

0 commit comments

Comments
 (0)