Fixed ReplaceWith quickfix not working when synthetic extensions are used in the pattern
This commit is contained in:
@@ -29,7 +29,7 @@ public interface FileScopeProvider {
|
||||
}
|
||||
|
||||
public interface AdditionalScopes {
|
||||
public fun scopes(file: JetFile): List<JetScope>
|
||||
public val scopes: List<JetScope>
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -80,7 +80,7 @@ public class FileScopeProviderImpl(
|
||||
scopeChain.add(LazyImportScope(packageFragment, allUnderImportResolver, LazyImportScope.FilteringKind.VISIBLE_CLASSES, "All under imports in $debugName (visible classes)"))
|
||||
scopeChain.add(LazyImportScope(packageFragment, defaultAllUnderImportResolver, LazyImportScope.FilteringKind.VISIBLE_CLASSES, "Default all under imports in $debugName (visible classes)"))
|
||||
|
||||
scopeChain.addAll(additionalScopes.flatMap { it.scopes(file) })
|
||||
scopeChain.addAll(additionalScopes.flatMap { it.scopes })
|
||||
|
||||
scopeChain.add(LazyImportScope(packageFragment, allUnderImportResolver, LazyImportScope.FilteringKind.INVISIBLE_CLASSES, "All under imports in $debugName (invisible classes only)"))
|
||||
scopeChain.add(LazyImportScope(packageFragment, defaultAllUnderImportResolver, LazyImportScope.FilteringKind.INVISIBLE_CLASSES, "Default all under imports in $debugName (invisible classes only)"))
|
||||
|
||||
Reference in New Issue
Block a user