Skip to content

[Feature request] Show fake methods from other packages #1181

@BigBoyBarney

Description

@BigBoyBarney

Hi!

When using packages that have subpackages or depend on each other, it's often the case that a proc from one of them take a struct from the other. Like http -> http/client etc.

Currently, ols only shows fake methods from the package owning the struct.

Example:

  1. Create 2 folders / packages, I'll name them one and two
  2. Create one as:
package one

Pokemon :: struct {}
level_up :: proc(pokemon: Pokemon) {}
  1. Create two as:
package two

import one "../one"

level_up :: proc(pokemon: one.Pokemon) {}
  1. Import both from an external odin file:
package Test

import "one"
import "two"

main :: proc() {
    snorlax := one.Pokemon{}
    snorlax. // only shows `one.level_up`
}

would it be possible to show all procs that take the given type?


Cheers!

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