Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

refactor dbg for if #14075

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
autoformatting on save :(
  • Loading branch information
dkuku committed Dec 16, 2024
commit 385333b995828f4eead5d6f268dcd1a499a79ce8
6 changes: 3 additions & 3 deletions lib/elixir/lib/macro.ex
Original file line number Diff line number Diff line change
@@ -1495,7 +1495,7 @@ defmodule Macro do
:error
end

defp op_call({:"..//", _, [left, middle, right]} = ast, fun) do
defp op_call({:..//, _, [left, middle, right]} = ast, fun) do
left = op_to_string(left, fun, :.., :left)
middle = op_to_string(middle, fun, :.., :right)
right = op_to_string(right, fun, :"//", :right)
@@ -1946,7 +1946,7 @@ defmodule Macro do
@spec operator?(name :: atom(), arity()) :: boolean()
def operator?(name, arity)

def operator?(:"..//", 3),
def operator?(:..//, 3),
do: true

# Code.Identifier treats :// as a binary operator for precedence
@@ -2482,7 +2482,7 @@ defmodule Macro do
#
defp inner_classify(atom) when is_atom(atom) do
cond do
atom in [:%, :%{}, :{}, :<<>>, :..., :.., :., :"..//", :->] ->
atom in [:%, :%{}, :{}, :<<>>, :..., :.., :., :..//, :->] ->
:not_callable

# <|>, ^^^, and ~~~ are deprecated