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

references #43

Closed
mhanberg opened this issue Jun 26, 2023 · 0 comments · Fixed by #139 or #140
Closed

references #43

mhanberg opened this issue Jun 26, 2023 · 0 comments · Fixed by #139 or #140
Labels
enhancement New feature or request

Comments

@mhanberg
Copy link
Collaborator

No description provided.

@mhanberg mhanberg added the enhancement New feature or request label Jun 26, 2023
mhanberg pushed a commit that referenced this issue Aug 7, 2023
The strategy is as follows:

1. Identify what kind of symbol we looking for
    1. Check the `symbols` table to see if we are in a definition: `defmodule`, `def`, `defp`, `defmacro` or `defstruct`
    2. If we are not in a definition, check the `references` table to see if we are in a function call or in a module alias.
2. Once we know what kind of symbol we are looking for (either a module or a function), check the `references` table to list all known references.

Closes #43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment