FIR: change source of existing type refs in DataClassMembersGenerator to avoid sources clash

This commit is contained in:
Ilya Kirillov
2020-06-22 16:53:20 +03:00
parent 650f2dd713
commit 5acdad29ec
17 changed files with 270 additions and 31 deletions
@@ -222,6 +222,31 @@ object BuilderConfigurator : AbstractBuilderConfigurator<FirTreeBuilder>(FirTree
builder(resolvedTypeRef) {
defaultFalse("isSuspend")
defaultNull("delegatedTypeRef")
withCopy()
}
builder(errorTypeRef) {
withCopy()
}
builder(delegatedTypeRef) {
withCopy()
}
builder(functionTypeRef) {
withCopy()
}
builder(resolvedFunctionTypeRef) {
withCopy()
}
builder(implicitTypeRef) {
withCopy()
}
builder(composedSuperTypeRef) {
withCopy()
}
builder(breakExpression) {
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2019 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
@@ -380,7 +380,9 @@ object ImplementationConfigurator : AbstractFirTreeImplementationConfigurator()
kind = Object
}
impl(resolvedTypeRef)
impl(resolvedTypeRef) {
publicImplementation()
}
impl(errorExpression) {
defaultEmptyList("annotations")