FIR IDE: Add IDE tests for sample compiler plugin
This commit is contained in:
+2
@@ -0,0 +1,2 @@
|
||||
@ERROR
|
||||
class WithGeneratedCompanion
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
KtNamedClassOrObjectSymbol:
|
||||
annotationsList: [
|
||||
<ERROR CLASS>()
|
||||
psi: KtAnnotationEntry
|
||||
]
|
||||
classIdIfNonLocal: test/WithGeneratedCompanion
|
||||
classKind: CLASS
|
||||
companionObject: null
|
||||
isData: false
|
||||
isExternal: false
|
||||
isFun: false
|
||||
isInline: false
|
||||
isInner: false
|
||||
modality: FINAL
|
||||
name: WithGeneratedCompanion
|
||||
origin: LIBRARY
|
||||
superTypes: [
|
||||
kotlin/Any
|
||||
]
|
||||
symbolKind: TOP_LEVEL
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
deprecationStatus: null
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
// WITH_FIR_TEST_COMPILER_PLUGIN
|
||||
package test
|
||||
|
||||
@org.jetbrains.kotlin.fir.plugin.CompanionWithFoo
|
||||
class WithGeneratedCompanion
|
||||
|
||||
fun test() {
|
||||
val companionObject = WithGenerated<caret>Companion
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
companion object
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
KtNamedClassOrObjectSymbol:
|
||||
annotationsList: []
|
||||
classIdIfNonLocal: test/WithGeneratedCompanion.Companion
|
||||
classKind: COMPANION_OBJECT
|
||||
companionObject: null
|
||||
isData: false
|
||||
isExternal: false
|
||||
isFun: false
|
||||
isInline: false
|
||||
isInner: false
|
||||
modality: FINAL
|
||||
name: Companion
|
||||
origin: PLUGIN
|
||||
superTypes: [
|
||||
kotlin/Any
|
||||
]
|
||||
symbolKind: CLASS_MEMBER
|
||||
typeParameters: []
|
||||
visibility: Public
|
||||
deprecationStatus: null
|
||||
Reference in New Issue
Block a user