resolve KDoc references in static scope of classes as well

#KT-9946 Fixed
This commit is contained in:
Dmitry Jemerov
2015-11-13 20:38:39 +01:00
parent d709aa7db7
commit 742830f815
3 changed files with 15 additions and 1 deletions
@@ -142,7 +142,9 @@ private fun getClassInnerScope(outerScope: LexicalScope, descriptor: ClassDescri
}
}
return LexicalChainedScope(headerScope, descriptor, false, null,
"Class ${descriptor.getName()} scope", descriptor.getDefaultType().getMemberScope())
"Class ${descriptor.name} scope",
descriptor.defaultType.getMemberScope(),
descriptor.staticScope)
}
public fun getResolutionScope(resolutionFacade: ResolutionFacade, descriptor: DeclarationDescriptor): LexicalScope {
+6
View File
@@ -0,0 +1,6 @@
/** See [Integer.MAX_VA<caret>LUE] */
class T {
}
// REF: (in java.lang.Integer).MAX_VALUE
@@ -96,6 +96,12 @@ public class KdocResolveTestGenerated extends AbstractReferenceResolveTest {
doTest(fileName);
}
@TestMetadata("StaticMember.kt")
public void testStaticMember() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kdoc/resolve/StaticMember.kt");
doTest(fileName);
}
@TestMetadata("TypeParamReference.kt")
public void testTypeParamReference() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/kdoc/resolve/TypeParamReference.kt");