Existing issue
Elixir and Erlang/OTP versions
Erlang/OTP 27 [erts-15.2.7.12] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:1] [jit:ns]
Elixir 1.20.0-dev (f175f5f) (compiled with Erlang/OTP 27)
Operating system
Alpine Linux
Current behavior
Hello there! I'm using Elixir code formatting, so I checked the implementation of Code.format_string!/1, and it wraps all literals in __block__. Besides formatting, I'm sorting map keys with an AST traversal, and using Macro.quoted_literal?/1 to split computed and literal keys, but it's returning false for the wrapped literals. Is this the expected behavior?
Expected behavior
Should Macro.quoted_literal?/1 return true for literals wrapped in __block__?
Existing issue
Elixir and Erlang/OTP versions
Operating system
Alpine Linux
Current behavior
Hello there! I'm using Elixir code formatting, so I checked the implementation of
Code.format_string!/1, and it wraps all literals in__block__. Besides formatting, I'm sorting map keys with an AST traversal, and usingMacro.quoted_literal?/1to split computed and literal keys, but it's returning false for the wrapped literals. Is this the expected behavior?Expected behavior
Should
Macro.quoted_literal?/1returntruefor literals wrapped in__block__?