FIR IDE: handle importing scopes in completion in HL API

Co-authored-by: Roman Golyshev <roman.golyshev@jetbrains.com>
This commit is contained in:
Ilya Kirillov
2020-07-09 18:03:27 +03:00
parent 7aa26944d7
commit dee58e1d86
9 changed files with 191 additions and 15 deletions
@@ -1,6 +1,6 @@
/*
* Copyright 2010-2019 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.
* 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.fir.scopes.impl
@@ -26,7 +26,7 @@ abstract class FirAbstractImportingScope(
) : FirAbstractProviderBasedScope(session, lookupInFir) {
// TODO: Rewrite somehow?
private fun getStaticsScope(classId: ClassId): FirScope? {
fun getStaticsScope(classId: ClassId): FirScope? {
val symbol = provider.getClassLikeSymbolByFqName(classId) ?: return null
if (symbol is FirTypeAliasSymbol) {
val expansionSymbol = symbol.fir.expandedConeType?.lookupTag?.toSymbol(session)