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

analyze unknown variable usage #43

Closed
sergioramos opened this issue Apr 9, 2013 · 0 comments
Closed

analyze unknown variable usage #43

sergioramos opened this issue Apr 9, 2013 · 0 comments

Comments

@sergioramos
Copy link
Contributor

This is just an idea.

Imagine I'm in a document and I'm using a variable that tern has no reference. It doesn't where it was defined and because of that it doesn't know it's contents or type.

Example:

window.alert('hello')

somevariable.somemethod(2)

somevariable.othermethod("hey")

If, then, in the same file I write somevariable. and call the code autocomplete, tern could suggest somemethod and othermethod. Although it has no idea where the variable is coming, it could make some assumptions based on the usage in the current file.

I hope I was clear enough and you understood the idea :)

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

No branches or pull requests

1 participant