Replace usages of renamed overloads annotation.
This commit is contained in:
@@ -70,7 +70,7 @@ public class ShortenReferences(val options: (JetElement) -> Options = { Options.
|
||||
}
|
||||
}
|
||||
|
||||
@overloads
|
||||
@jvmOverloads
|
||||
public fun process(element: JetElement, elementFilter: (PsiElement) -> FilterResult = { FilterResult.PROCESS }): JetElement {
|
||||
return process(listOf(element), elementFilter).single()
|
||||
}
|
||||
@@ -127,7 +127,7 @@ public class ShortenReferences(val options: (JetElement) -> Options = { Options.
|
||||
PROCESS
|
||||
}
|
||||
|
||||
@overloads
|
||||
@jvmOverloads
|
||||
public fun process(elements: Iterable<JetElement>, elementFilter: (PsiElement) -> FilterResult = { FilterResult.PROCESS }): Collection<JetElement> {
|
||||
return elements.groupBy { element -> element.getContainingJetFile() }
|
||||
.flatMap { shortenReferencesInFile(it.key, it.value, elementFilter) }
|
||||
|
||||
Reference in New Issue
Block a user