Skip to content

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

@xuchi021105

Description

@xuchi021105
  • 版本信息
    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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions