Replace single line let: application on IDEA + front-end modules

This commit is contained in:
Mikhail Glukhikh
2016-11-14 14:05:15 +03:00
parent 09ae1f1a5d
commit b850d71e17
4 changed files with 8 additions and 12 deletions
@@ -42,7 +42,8 @@ class FileScopeProviderImpl(
) : FileScopeProvider {
private val cache = storageManager.createMemoizedFunction<KtFile, FileScopes> { file ->
val scopes = (file.originalFile as KtFile?)?.fileScopesCustomizer?.let { it.createFileScopes(fileScopeFactory) } ?: fileScopeFactory.createScopesForFile(file)
val scopes = (file.originalFile as KtFile?)?.fileScopesCustomizer?.createFileScopes(fileScopeFactory)
?: fileScopeFactory.createScopesForFile(file)
bindingTrace.recordScope(scopes.lexicalScope, file)
scopes
}