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

Generics are not parsed correctly #60

Open
ramon-rocha opened this issue Dec 25, 2013 · 0 comments
Open

Generics are not parsed correctly #60

ramon-rocha opened this issue Dec 25, 2013 · 0 comments
Labels

Comments

@ramon-rocha
Copy link
Owner

def completionBug
        d = List<of String>()

The parameter completion tooltip shows the constructor params for String instead of the List. This also affects mouseover tooltips because "List<of" cannot be resolved to a syntax node.

@ghost ghost assigned ramon-rocha Dec 25, 2013
ramon-rocha added a commit that referenced this issue Jan 3, 2014
This is the first attempt at parsing generics in support of parameter
completion and mouseover tooltips.  For now, what works is displaying
the correct initializer overloads and their parameters.  However, the
generic parameter name is displayed instead of the specified type.

For example, "foo = List<of String>(" will show the correct initializer
overloads but the tooltip will display "List<of T>" instead of
"List<of String>".

Mouseover tooltips for generic types still aren't working.  We might
need a proper tokenizer and parser instead of the current hackjob.
@ramon-rocha ramon-rocha removed this from the 0.6 milestone May 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant