draw-graph icon indicating copy to clipboard operation
draw-graph copied to clipboard

[feature_add] goland中使用插件只能展示函数调用图, 方法调用图展示有问题

Open xuchi021105 opened this issue 2 months ago • 0 comments

  • 版本信息 goland version : 2024.1 plugin version : 1.30.2025.10.17_07.39

  • 问题描述 && 具体代码 其中在goland使用时

func TestA() {
     TestB()
     return
}
func TestB() {
     return
}

类似的代码, 在TestA函数中可以展示出调用图, 但是

type Recv struct{}

func (*Recv) TestC() {
     r := new(Recv)
     r.TestD()
     return
}
func (*Recv)TestD() {
     return
}

接收者方法中无法生成函数调用图表, 表现有问题

  • 猜测原因 可能是ast解析的时候, 只解析了function, 没有识别method

  • 期望 希望能够补全这个功能

xuchi021105 avatar Nov 06 '25 13:11 xuchi021105