resolve KDoc references in static scope of classes as well
#KT-9946 Fixed
This commit is contained in:
@@ -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
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user