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

Provide signature for local functions #155

Closed
renkun-ken opened this issue Dec 29, 2019 · 0 comments · Fixed by #330
Closed

Provide signature for local functions #155

renkun-ken opened this issue Dec 29, 2019 · 0 comments · Fixed by #330

Comments

@renkun-ken
Copy link
Member

Currently, we provide signature for functions defined in packages and global namespace. We could use XML parse data to also provide signature for locally defined functions (aka closures).

foo <- function(var1) {
  bar <- function(var2) {
    var1 + var2
  }
  bar(|)
}

where cursor | is at bar(|), the signature of bar can be extracted from XML parse data and provided to user.

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 a pull request may close this issue.

1 participant