Change Signature: Implement proper resolution of type code fragments

#KT-9210 Fixed
This commit is contained in:
Alexey Sedunov
2015-12-15 16:11:03 +03:00
parent cfe1c44260
commit 594ad27952
5 changed files with 55 additions and 27 deletions
@@ -27,12 +27,12 @@ public class KtTypeCodeFragment extends KtCodeFragment {
}
public boolean hasTypeReference() {
return getContentElement() instanceof KtTypeReference;
return getContentElement() != null;
}
@Nullable
@Override
public KtElement getContentElement() {
public KtTypeReference getContentElement() {
return findChildByClass(KtTypeReference.class);
}
}