José Valim
73d7762563
Avoid double tracing on captures
2024-05-25 11:13:29 +02:00
José Valim
f0e97d0bef
Solve bootstrap issues on dynamic options to quote
2024-05-23 18:02:01 +02:00
José Valim
03d412f20e
Handle bind_quoted with context correctly, closes #13590
2024-05-23 17:36:36 +02:00
José Valim
37d36f8bd6
Do not expand bind_quoted expressions twice
2024-05-20 18:01:02 +02:00
José Valim
92e0e34a1e
Respect line property when file is given, closes #13542
2024-05-20 17:10:11 +02:00
José Valim
21921dc951
Simplify escaping logic by reducing the number of vars
2024-05-20 14:31:25 +02:00
José Valim
203baf36af
Raise on left-over __cursor__
2024-05-10 15:17:35 +02:00
José Valim
7489ce8572
Perform type checking across comparison operators ( #13527 )
2024-05-02 14:09:41 +02:00
Łukasz Samson
2a7948a472
Fix warn case return value in pid expansion ( #13526 )
2024-05-02 13:36:42 +02:00
José Valim
55704b92a3
Add more error handling to define_alias
2024-03-24 22:29:30 +01:00
José Valim
ac844f4dba
Add Macro.Env.define_import/4
2024-03-24 22:29:30 +01:00
José Valim
be2e26f465
Add define_alias, define_require, and expand_alias
2024-03-22 19:11:59 +01:00
Tiago Moraes
f9a139b7f8
Check exports on compile time context modules ( #13400 )
2024-03-08 18:47:23 +01:00
José Valim
129c5beef8
Decouple require expansion from alias
2024-02-24 21:19:46 +01:00
José Valim
00d2be5af7
Fix error message 'a guards', closes #13296
2024-01-30 20:07:38 +01:00
Artem Solomatin
53f45a93b6
Specify guide links for incorrect guards message ( #13247 )
2024-01-12 22:38:47 +01:00
José Valim
19bdfd0444
Improve misplaced operator | message
2024-01-12 20:14:27 +01:00
José Valim
fa088a4358
Do not hardcode newlines
2024-01-04 13:01:52 +01:00
José Valim
e258ccc279
Remove warning on non-ambiguous nullary remote call
2023-11-22 08:54:39 +08:00
George Guimarães
eb20bdd716
Fix some typos ( #13043 )
2023-10-30 17:48:47 +01:00
José Valim
69255ecbc8
Do not leak alias from Elixir root and simplify defmodule implementation
2023-10-17 11:09:21 +02:00
José Valim
ddb2434357
Emit warning if True/False/Nil are used also outside of alias
2023-10-17 10:03:28 +02:00
José Valim
a4c700b23b
Unify caret position in diagnostics
...
Closes #12995 .
2023-10-07 17:23:20 +02:00
Jean Klingler
55fbc528f9
Always rewrite signed numbers during expansion ( #12955 )
2023-09-23 18:08:52 +09:00
Jean Klingler
9c0fa3cfef
Warn when matching on 0.0 and generate erl AST for +/-0.0 ( #12949 )
2023-09-23 00:27:44 +09:00
Vinícius Müller
10077bdb5e
Add span to unused/undefined variable diagnostics ( #12940 )
2023-09-16 20:11:26 +02:00
José Valim
c6250bc57b
Trace functions before they are inlined, closes #12925
2023-09-13 09:38:28 +02:00
José Valim
e0d04e1ffe
Warn on nullary remote calls, related to #9510
2023-08-15 10:30:57 +02:00
José Valim
7454333fd0
Require pin variable when accessing variable inside binary size in match, closes #12588
2023-05-26 16:35:36 +02:00
José Valim
5480491dc5
Include column information in unused variable warning, closes #12591
2023-05-23 20:31:49 +02:00
José Valim
bc9c1d2e1f
Break elixir_expand clauses into warnable bits
2023-05-23 18:00:49 +02:00
José Valim
ad3f7d20b7
Sort maps and environment when escaping
2023-05-22 14:46:45 +02:00
José Valim
790714cee9
Add missing newline to error message
2023-02-22 16:31:20 +01:00
José Valim
e67a611080
Store complete path on quote keep, closes #12393
2023-02-13 09:25:15 +01:00
José Valim
b8a4292475
Improve warning for pin
2022-11-29 10:54:47 +01:00
José Valim
d716c72f6f
More error handling adjustments
2022-11-28 16:36:37 +01:00
José Valim
da637b7523
Collect function errors where possible in elixir_bitstring and elixir_expand
2022-11-28 16:15:34 +01:00
José Valim
b24869687b
Introduce mechanism to collect several errors in a module ( #12275 )
2022-11-28 15:40:30 +01:00
José Valim
d9f2af697c
Include [if_undefined: :warn] on var metadata
2022-11-08 13:37:42 +01:00
José Valim
749349205d
Do not include module variables in prune_binding
2022-11-08 11:34:55 +01:00
sabiwara
bc354c3a6b
Handle options consistently in with/1 and for/1 ( #12223 )
2022-11-02 14:51:43 +01:00
José Valim
b8c7bfa1bf
Add prune_binding to Code.eval_quoted_with_env/4
2022-10-29 20:42:51 +02:00
Marc-André Lafortune
f63e600c6c
Add precision to error message ( #12213 )
2022-10-25 10:29:28 +02:00
sabiwara
26d050e65b
Handle unused :uniq comprehensions ( #12116 )
2022-10-05 10:42:56 +02:00
José Valim
755b25249b
Improve error message for unbound _
2022-09-09 22:26:35 +02:00
Łukasz Samson
7ebea3b246
Emit consistent position meta on fn capture traces ( #12033 )
2022-08-02 09:44:12 +02:00
José Valim
b0abba191c
Revert "Add compile-time dependencies on require"
...
This change added an inconsistency in that imports
also require, but they added different types of
dependencies. This must be handed properly in
libraries instead.
2022-04-11 21:52:47 +02:00
Daven
7ef962fe30
Warn if any of True, False, and Nil aliases are used ( #11731 )
2022-03-28 07:28:34 +02:00
José Valim
b48623a96e
Add compile-time dependencies on require
...
Projects like Plug use require to establish compile
time dependencies inside a Plug. The fact require
only added a compile-time dependency in v1.13.0 was
therefore a regression, addressed by this commit.
2022-02-14 12:39:54 +01:00
José Valim
07cc16717b
Allow any expression in bitstring size outside of matches/guards
2022-01-12 01:47:11 +01:00