Skip to content

Update implementation of __info__ - #378

Merged
bryanjos merged 2 commits into
masterfrom
__info__-implementation
Sep 3, 2017
Merged

Update implementation of __info__#378
bryanjos merged 2 commits into
masterfrom
__info__-implementation

Conversation

@bryanjos

@bryanjos bryanjos commented Sep 3, 2017

Copy link
Copy Markdown
Collaborator

This adds further support for more "kinds" from info.
It works by getting the data from the current module and then
compiling the values.

This adds further support for more "kinds" from __info__.
It works by getting the data from the current module and then
compiling the values.

# Builds the __info__ function that Elixir modules
# have.
defp make_info_function() do

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use parentheses when defining a function which has no arguments.

{ compiled_functions, _ } = Enum.map_reduce(combined_defs, state, &Function.compile(&1, &2))

compiled_functions = compiled_functions ++ [make_info_function(module, defs, state)]
compiled_functions = [make_info_map(module, state)] ++ compiled_functions ++ [make_info_function()]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Line is too long (max is 80, was 107).

@sourcelevel-bot

Copy link
Copy Markdown

Ebert has finished reviewing this Pull Request and has found:

  • 2 fixed issues! 🎉

You can see more details about this review at https://ebertapp.io/github/elixirscript/elixirscript/pulls/378.

@bryanjos
bryanjos merged commit a4774c6 into master Sep 3, 2017
@bryanjos
bryanjos deleted the __info__-implementation branch September 3, 2017 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant