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

Best effort to name anonymous functions #64

Merged
merged 2 commits into from
Jan 13, 2022
Merged

Conversation

arnodel
Copy link
Owner

@arnodel arnodel commented Jan 13, 2022

When the context gives a possible name (e.g. they are assigned to a variable)

so e.g. x = function() end will give the function the name x. See test file for list of supported cases. The name is accessible via debug.getinfo()

When the context gives a possible name (e.g. they are assigned to a variable)
@codecov
Copy link

codecov bot commented Jan 13, 2022

Codecov Report

Merging #64 (54bb509) into master (407f3d7) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #64   +/-   ##
=======================================
  Coverage   86.21%   86.21%           
=======================================
  Files          90       90           
  Lines        9822     9822           
=======================================
  Hits         8468     8468           
  Misses       1067     1067           
  Partials      287      287           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 407f3d7...54bb509. Read the comment docs.

@arnodel arnodel merged commit ec87bd8 into master Jan 13, 2022
@arnodel arnodel deleted the name-anonymous-functions branch January 13, 2022 16:58
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.

2 participants