Skip to content

support classfile use definition #265

@luoliwoshang

Description

@luoliwoshang

The location passed in is when calling Definition in the Rect of hello.gop, but cannot jump to Rect.gox.

//  hello.gop
rect := &Rect{}
println rect
// Rect.gox
var (
	Width, Height int
)
func Area() int {
	return Width * Height
}

Jump position considered.

  1. If there is a var, jump to the location of classfile's var.
  2. If there is no var, but there is a corresponding function, jump to the location of the first function.
  3. Var and function do not exist, jump to the beginning of the file

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions