Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Aug 29, 2018

The parent.parent of an ExpressionWithTypeArguments is always the class/interface, so we don't need to call getContainingClass.
Also, getting the type of the class was done in two different ways; it appears that getDeclaredTypeOfSymbol(getSymbolOfNode(classNode)) can be used safely everywhere while getTypeOfNode can have subtle bugs (that we probably weren't testing for implements).

@ghost ghost requested a review from sandersn August 30, 2018 00:01
@ghost ghost merged commit d37caf1 into master Aug 30, 2018
@ghost ghost deleted the getDeclaredTypeOfClassContainingHeritageClause branch August 30, 2018 00:43
This pull request was closed.
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