Skip to content

Commit a7383e7

Browse files
welkeyeverAsterDY
authored andcommitted
fix: filter methods when fill functionCalls
1 parent ef724c7 commit a7383e7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/compress/golang/plugin/go_ast.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,10 @@ Out:
254254
func (p *goParser) fillFunctionContent(f []Function, fl *[]SingleFunction) {
255255
for _, ff := range f {
256256
for _, pf := range p.processedPkg[ff.PkgDir] {
257+
if pf.IsMethod {
258+
// Skip method here
259+
continue
260+
}
257261
if ff.Name == pf.Name {
258262
s := SingleFunction{
259263
CallName: ff.CallName,

0 commit comments

Comments
 (0)