[FIR] Introduce the PluginGenerated source kind

Make parcelize work consistently with
`FirOverrideChecker`.

Actually, there is a philosophical question about
what to do when a plugin generates a class
in a new package, and this class is red code
(for instance, doesn't implement an abstract
member from a supertype). There's no source
to report such an error, but we probably do
want to run checkers to avoid trying to
compile red code to binaries (because it may
crash in backend, or it may silently work).
This commit is contained in:
Nikolay Lunyak
2024-01-16 11:34:59 +02:00
committed by Space Team
parent 694029d67f
commit afd8895e51
14 changed files with 318 additions and 196 deletions
@@ -46,7 +46,7 @@ KtFunctionSymbol:
type: test/FirstTarget
symbolKind: LOCAL
typeParameters: []
getContainingFileSymbol: null
getContainingFileSymbol: KtFileSymbol(customSerlializable.kt)
getContainingJvmClassName: test.Serializer
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -56,7 +56,7 @@ KtFunctionSymbol:
annotationsList: []
ownTypeArguments: []
type: test/Serializer
getContainingFileSymbol: null
getContainingFileSymbol: KtFileSymbol(customSerlializable.kt)
getContainingJvmClassName: test.Serializer
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -109,7 +109,7 @@ KtFunctionSymbol:
type: test/SecondTarget
symbolKind: LOCAL
typeParameters: []
getContainingFileSymbol: null
getContainingFileSymbol: KtFileSymbol(customSerlializable.kt)
getContainingJvmClassName: test.Serializer
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -119,7 +119,7 @@ KtFunctionSymbol:
annotationsList: []
ownTypeArguments: []
type: test/Serializer
getContainingFileSymbol: null
getContainingFileSymbol: KtFileSymbol(customSerlializable.kt)
getContainingJvmClassName: test.Serializer
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -31,7 +31,7 @@ KtFunctionSymbol:
annotationsList: []
ownTypeArguments: []
type: test/WithGeneratedCompanion.Companion
getContainingFileSymbol: null
getContainingFileSymbol: KtFileSymbol(generatedCompanionWithFoo.kt)
getContainingJvmClassName: test.WithGeneratedCompanion.Companion
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -31,7 +31,7 @@ KtFunctionSymbol:
annotationsList: []
ownTypeArguments: []
type: test/MyClass
getContainingFileSymbol: null
getContainingFileSymbol: KtFileSymbol(nestedClassAndMaterializeMember.kt)
getContainingJvmClassName: test.MyClass
getContainingModule: KtSourceModule "Sources of main"
deprecationStatus: null
@@ -200,7 +200,7 @@ KtNamedClassOrObjectSymbol:
symbolKind: CLASS_MEMBER
typeParameters: []
visibility: Public
getContainingFileSymbol: null
getContainingFileSymbol: KtFileSymbol(nestedClassAndMaterializeMember.kt)
getContainingModule: KtSourceModule "Sources of main"
annotationApplicableTargets: null
deprecationStatus: null