Fix decompiled text for named companion object
Fix stub/ast mismatch for compiled named companion objects Add tests
This commit is contained in:
+9
@@ -8,3 +8,12 @@ PsiJetFileStubImpl[package=]
|
||||
CLASS_BODY:
|
||||
FUN:[fqName=C.Companion.foo, hasBlockBody=true, hasBody=true, hasTypeParameterListBeforeFunctionName=false, isExtension=false, isTopLevel=false, name=foo]
|
||||
VALUE_PARAMETER_LIST:
|
||||
CLASS:[fqName=D, isEnumEntry=false, isInterface=false, isLocal=false, isTopLevel=true, name=D, superNames=[]]
|
||||
CLASS_BODY:
|
||||
OBJECT_DECLARATION:[fqName=D.Named, isCompanion=true, isLocal=false, isObjectLiteral=false, isTopLevel=false, name=Named, superNames=[]]
|
||||
MODIFIER_LIST:[companion]
|
||||
CLASS_BODY:
|
||||
PROPERTY:[fqName=D.Named.c, hasDelegate=false, hasDelegateExpression=false, hasInitializer=false, hasReturnTypeRef=true, isExtension=false, isTopLevel=false, isVar=false, name=c]
|
||||
TYPE_REFERENCE:
|
||||
USER_TYPE:[isAbsoluteInRootPackage=false]
|
||||
REFERENCE_EXPRESSION:[referencedName=Int]
|
||||
|
||||
Vendored
+9
-2
@@ -1,5 +1,12 @@
|
||||
class C { companion object {
|
||||
fun foo() {
|
||||
class C {
|
||||
companion object {
|
||||
fun foo() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class D {
|
||||
companion object Named {
|
||||
val c: Int
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user