Skip to content

fix(parser): stability issues#45

Merged
welkeyever merged 3 commits into
mainfrom
fix/stability
Jul 10, 2025
Merged

fix(parser): stability issues#45
welkeyever merged 3 commits into
mainfrom
fix/stability

Conversation

@Hoblovski

Copy link
Copy Markdown
Collaborator

What type of PR is this?

解决 issue #33 : parser 不稳定的问题(对于同样输入输出不同)

因为 issue #44 的存在,现有的两个 commit 只能解决没有 trait object 的情况。

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.

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

en:
zh(optional):

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

#33

(optional) The PR that updates user documentation:

Hoblovski added 2 commits July 8, 2025 16:39
When trying to `getSymbolByLocation(loc)`, multiple entity symbols could
contain `loc`.  For example: `trait MyTrait { fn my_trait<<loc> }`, both
`MyTrait` and `my_trait` could be selected by `filterEntitySymbols`, but
the expected result is `my_trait` since it is more specific.
Comment thread lang/collect/collect.go
Comment thread lang/collect/collect.go

@welkeyever welkeyever left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm~

@welkeyever welkeyever merged commit a565a5c into main Jul 10, 2025
2 checks passed
@AsterDY AsterDY deleted the fix/stability branch July 20, 2025 18:12
simuleite pushed a commit to simuleite/abcoder that referenced this pull request Feb 28, 2026
* fix(collect): do not corrupt functionInfo

* fix(collect): fix duplicates in filterEntitySymbols

When trying to `getSymbolByLocation(loc)`, multiple entity symbols could
contain `loc`.  For example: `trait MyTrait { fn my_trait<<loc> }`, both
`MyTrait` and `my_trait` could be selected by `filterEntitySymbols`, but
the expected result is `my_trait` since it is more specific.

* doc(collect): add docs
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