I'm trying to track down where in the Elixir and Erlang code in elixir-lang/elixir that Macro.Env context is set to :match. I have a feeling I am slow approaching an equivalent implementation with my `ResolveState#put(DECLARING_SCOPE, true)` in Intellij Elixir (https://github.com/KronicDeth/intellij-elixir/blob/8347836a86ced50dedccd044014a9029538c1208/src/org/elixir_lang/psi/scope/Variable.java#L236, https://github.com/KronicDeth/intellij-elixir/blob/8347836a86ced50dedccd044014a9029538c1208/src/org/elixir_lang/psi/scope/Variable.java#L400, https://github.com/KronicDeth/intellij-elixir/blob/8347836a86ced50dedccd044014a9029538c1208/src/org/elixir_lang/psi/scope/Variable.java#L410, https://github.com/KronicDeth/intellij-elixir/blob/8347836a86ced50dedccd044014a9029538c1208/src/org/elixir_lang/psi/impl/ElixirPsiImplUtil.java#L1372), but if I had the real rules in Elixir's own code I could double check I'm not missing a use case for Macro.Env context :match. Currently, I've just been by checking variable resolution for every variable in elixir-lang/elixir/lib/elixir by hand and adding DECLARING_SCOPE rules when it helps not have to check up the AST (PSI for IntellIJ) to determine if something really can be a variable declaration or can only be a usage.
--
You received this message because you are subscribed to the Google Groups "elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/5e67cdda-df8c-4161-8549-842b2979e500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.