Skip to content

Comments

fix: *ASTReadTools.GetASTNode didn't return its mod_path and pkg_path#65

Merged
welkeyever merged 1 commit intocloudwego:mainfrom
angrychow:fix/get_ast_node
Aug 13, 2025
Merged

fix: *ASTReadTools.GetASTNode didn't return its mod_path and pkg_path#65
welkeyever merged 1 commit intocloudwego:mainfrom
angrychow:fix/get_ast_node

Conversation

@angrychow
Copy link
Collaborator

What type of PR is this?

Check the PR title.

  • This PR title match the format: <type>(optional scope): <description>
  • The description of this PR title is user-oriented and clear enough for others to understand.
  • Attach the PR updating the user documentation if the current PR requires user awareness at the usage level. User docs repo

(Optional) Translate the PR title into Chinese.

修复(ast_read): 确保 NodeStruct 字段正确填充

(Optional) More detailed description for this PR(en: English/zh: Chinese).

en: Fixed a regression where NodeStruct.ModPath and NodeStruct.PkgPath were left empty when serializing AST nodes. The fields now correctly receive the values from node.Identity.ModPath and node.Identity.PkgPath.

zh(optional): 修复了在序列化 AST 节点时 NodeStruct.ModPath 与 NodeStruct.PkgPath 字段可能为空的问题,现已正确从 node.Identity.ModPath 和 node.Identity.PkgPath 取值。

(Optional) Which issue(s) this PR fixes:

No issue mentioned this.

(optional) The PR that updates user documentation:

@welkeyever welkeyever merged commit 731ba8d into cloudwego:main Aug 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants