FIR IDE: handle importing scopes in completion in HL API
Co-authored-by: Roman Golyshev <roman.golyshev@jetbrains.com>
This commit is contained in:
+3
-3
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user