FIR: Introduce new classifier descriptors aka 'cones'

This commit is contained in:
Simon Ogorodnik
2018-03-20 01:23:31 +03:00
committed by Mikhail Glukhikh
parent ce7456c93d
commit 7e95eee9f1
4 changed files with 73 additions and 0 deletions
@@ -0,0 +1,19 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. 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.descriptors
import org.jetbrains.kotlin.fir.FirBasedDescriptor
import org.jetbrains.kotlin.fir.FirDescriptorOwner
import org.jetbrains.kotlin.fir.FirElement
abstract class AbstractFirBasedDescriptor<E> : FirBasedDescriptor<E> where E : FirElement, E : FirDescriptorOwner<E> {
override lateinit var fir: E
override fun bind(e: E) {
fir = e
}
}