-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(Tracer) move tracer to support folder
- Loading branch information
1 parent
7c6ca7e
commit 7d146a2
Showing
3 changed files
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
defmodule ExFactor.Tracer do | ||
@trace_types ~w(import imported_function alias alias_expansion alias_reference require struct_expansion remote_function local_function)a | ||
def trace({type, meta, module, name, arity}, env) when type in @trace_types do | ||
ExFactor.Server.record(type, env.file, meta[:line], meta[:column], module, name, arity, env.module) | ||
end | ||
|
||
def trace(_event, _env) do | ||
:ok | ||
end | ||
end |