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

support classfile use definition #265

Open
luoliwoshang opened this issue Apr 28, 2024 · 0 comments
Open

support classfile use definition #265

luoliwoshang opened this issue Apr 28, 2024 · 0 comments

Comments

@luoliwoshang
Copy link

luoliwoshang commented Apr 28, 2024

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
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

No branches or pull requests

1 participant