Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Update implementation of __info__ #378

Merged
merged 2 commits into from
Sep 3, 2017
Merged

Conversation

bryanjos
Copy link
Collaborator

@bryanjos bryanjos commented Sep 3, 2017

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

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.

@@ -61,7 +61,7 @@ defmodule ElixirScript.Translate.Module do
_ ->
{ 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()]

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

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