Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(1007): return Sel.Name as FuncName when selector is an CallExpr #1012

Merged
merged 1 commit into from
Jul 19, 2024

Conversation

lsytj0413
Copy link
Contributor

Fix: #1007

When the func selector is an callexpr, for example:

getLogger().Info(context.Background(), "test1007")

it will return empty string as function name, so ingoreFuncs will not take affect, this fixed change it to return Sel.Name

Signed-off-by: lsytj0413 <511121939@qq.com>
@denisvmedia
Copy link
Collaborator

Thank you for your efforts!

@denisvmedia denisvmedia merged commit 7ef710a into mgechev:master Jul 19, 2024
4 checks passed
@lsytj0413 lsytj0413 deleted the fix-1007 branch July 19, 2024 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

negative add-constant report when expr is not **ast.Ident**
2 participants