Skip to content

Commit

Permalink
add todos
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed May 7, 2024
1 parent ba2f3f9 commit a9ca754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/elixir_sense/core/state.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1387,6 +1387,7 @@ defmodule ElixirSense.Core.State do
defp format_doc_arg(binary) when is_binary(binary), do: binary

defp format_doc_arg(list) when is_list(list) do
# TODO pass env and expand metadata
if Keyword.keyword?(list) do
{:meta, Map.new(list)}
else
Expand All @@ -1399,6 +1400,7 @@ defmodule ElixirSense.Core.State do

defp format_doc_arg(quoted) do
try do
# TODO pass env to eval
case Code.eval_quoted(quoted) do
{binary, _} when is_binary(binary) ->
binary
Expand Down

0 comments on commit a9ca754

Please sign in to comment.