[IR] Autogenerate IrModuleFragmentImpl

^KT-65773 In Progress
This commit is contained in:
Wojciech Litewka
2024-02-16 12:47:31 +01:00
committed by Space Team
parent 97e2dab9f0
commit 1008fa566f
2 changed files with 15 additions and 16 deletions
@@ -1,19 +1,13 @@
/*
* Copyright 2010-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* Copyright 2010-2024 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.
*/
// This file was generated automatically. See compiler/ir/ir.tree/tree-generator/ReadMe.md.
// DO NOT MODIFY IT MANUALLY.
@file:Suppress("DuplicatedCode", "unused")
package org.jetbrains.kotlin.ir.declarations.impl
import org.jetbrains.kotlin.descriptors.ModuleDescriptor
@@ -33,7 +27,8 @@ class IrModuleFragmentImpl(
override val endOffset: Int
get() = UNDEFINED_OFFSET
override val name: Name get() = descriptor.name
override val name: Name
get() = descriptor.name
override val files: MutableList<IrFile> = ArrayList()
}
@@ -5,8 +5,8 @@
package org.jetbrains.kotlin.ir.generator
import org.jetbrains.kotlin.generators.tree.ImplementationKind
import org.jetbrains.kotlin.generators.tree.ArbitraryImportable
import org.jetbrains.kotlin.generators.tree.ImplementationKind
import org.jetbrains.kotlin.generators.tree.ClassRef
import org.jetbrains.kotlin.generators.tree.ImportCollector
import org.jetbrains.kotlin.generators.tree.StandardTypes
@@ -109,7 +109,11 @@ object ImplementationConfigurator : AbstractIrTreeImplementationConfigurator() {
}
impl(moduleFragment) {
implementation.doPrint = false
implementation.putImplementationOptInInConstructor = false
additionalImports(ArbitraryImportable(Packages.tree, "UNDEFINED_OFFSET"))
default("startOffset", "UNDEFINED_OFFSET", withGetter = true)
default("endOffset", "UNDEFINED_OFFSET", withGetter = true)
default("name", "descriptor.name", withGetter = true)
}
impl(errorDeclaration) {