Skip to content

Commit

Permalink
update(Parser): set more metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
ckoch-cars committed Aug 20, 2022
1 parent 303bcba commit 0f4bacf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/ex_factor/parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ defmodule ExFactor.Parser do
def all_functions(filepath) when is_binary(filepath) do
filepath
|> File.read!()
|> Code.string_to_quoted(token_metadata: true)
|> Code.string_to_quoted([:line, token_metadata: true, columns: true])
|> all_functions()
end

Expand All @@ -51,7 +51,7 @@ defmodule ExFactor.Parser do
def public_functions(filepath) when is_binary(filepath) do
filepath
|> File.read!()
|> Code.string_to_quoted(token_metadata: true)
|> Code.string_to_quoted([:line, token_metadata: true, columns: true])
|> public_functions()
end

Expand All @@ -67,7 +67,7 @@ defmodule ExFactor.Parser do
def private_functions(filepath) when is_binary(filepath) do
filepath
|> File.read!()
|> Code.string_to_quoted(token_metadata: true)
|> Code.string_to_quoted([:line, token_metadata: true, columns: true])
|> private_functions()
end

Expand Down

0 comments on commit 0f4bacf

Please sign in to comment.