Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
kotlin/compiler/ir/backend.common/src/org/jetbrains/kotlin/backend/common/extensions/IrPluginContext.kt
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
45 lines (35 sloc)
1.69 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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. | |
*/ | |
package org.jetbrains.kotlin.backend.common.extensions | |
import org.jetbrains.kotlin.backend.common.ir.BuiltinSymbolsBase | |
import org.jetbrains.kotlin.config.LanguageVersionSettings | |
import org.jetbrains.kotlin.descriptors.ModuleDescriptor | |
import org.jetbrains.kotlin.ir.ObsoleteDescriptorBasedAPI | |
import org.jetbrains.kotlin.ir.builders.IrGeneratorContext | |
import org.jetbrains.kotlin.ir.symbols.* | |
import org.jetbrains.kotlin.ir.util.ReferenceSymbolTable | |
import org.jetbrains.kotlin.ir.util.TypeTranslator | |
import org.jetbrains.kotlin.name.FqName | |
import org.jetbrains.kotlin.platform.TargetPlatform | |
import org.jetbrains.kotlin.resolve.BindingContext | |
interface IrPluginContext : IrGeneratorContext { | |
val languageVersionSettings: LanguageVersionSettings | |
@ObsoleteDescriptorBasedAPI | |
val moduleDescriptor: ModuleDescriptor | |
@ObsoleteDescriptorBasedAPI | |
val bindingContext: BindingContext | |
@ObsoleteDescriptorBasedAPI | |
val symbolTable: ReferenceSymbolTable | |
@ObsoleteDescriptorBasedAPI | |
val typeTranslator: TypeTranslator | |
val symbols: BuiltinSymbolsBase | |
val platform: TargetPlatform? | |
// The following API is experimental | |
fun referenceClass(fqName: FqName): IrClassSymbol? | |
fun referenceTypeAlias(fqName: FqName): IrTypeAliasSymbol? | |
fun referenceConstructors(classFqn: FqName): Collection<IrConstructorSymbol> | |
fun referenceFunctions(fqName: FqName): Collection<IrSimpleFunctionSymbol> | |
fun referenceProperties(fqName: FqName): Collection<IrPropertySymbol> | |
} |