FIR IDE: Add IDE tests for sample compiler plugin

This commit is contained in:
Roman Golyshev
2022-02-22 03:00:55 +03:00
parent fed08aaff5
commit 8bcdc70adc
32 changed files with 790 additions and 0 deletions
@@ -0,0 +1,23 @@
KtNamedClassOrObjectSymbol:
annotationsList: [
<ERROR CLASS>()
psi: KtAnnotationEntry
]
classIdIfNonLocal: foo/MyClass
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: MyClass
origin: LIBRARY
superTypes: [
kotlin/Any
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -0,0 +1,9 @@
// WITH_FIR_TEST_COMPILER_PLUGIN
package foo
interface MyInterface
@org.jetbrains.kotlin.fir.plugin.MyInterfaceSupertype
class MyClass
// class: foo/MyClass
@@ -0,0 +1,2 @@
@org.jetbrains.kotlin.fir.plugin.MyInterfaceSupertype
class MyClass : kotlin.Any, foo.MyInterface
@@ -0,0 +1,24 @@
KtNamedClassOrObjectSymbol:
annotationsList: [
org/jetbrains/kotlin/fir/plugin/MyInterfaceSupertype()
psi: KtAnnotationEntry
]
classIdIfNonLocal: foo/MyClass
classKind: CLASS
companionObject: null
isData: false
isExternal: false
isFun: false
isInline: false
isInner: false
modality: FINAL
name: MyClass
origin: SOURCE
superTypes: [
kotlin/Any
foo/MyInterface
]
symbolKind: TOP_LEVEL
typeParameters: []
visibility: Public
deprecationStatus: null
@@ -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
@@ -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
}
@@ -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