lexical-lsp / lexical

Lexical is a next-generation elixir language server
782 stars 77 forks source link

Extractors should recognize child modules built with `__MODULE__` #602

Closed scohen closed 4 months ago

scohen commented 4 months ago

Given the following:

defmodule Parent do 
  @something __MODULE__.Child
end

The module attribute @something should contain a module reference to Parent.Child, but the extractor misses it. This is a somewhat common way of accessing descendent modules in some libraries.