mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-23 15:51:59 +00:00
Cleanup: remove empty constructor body applied
This commit is contained in:
@@ -71,7 +71,7 @@ class ControlFlowInformationProvider private constructor(
|
||||
}
|
||||
|
||||
constructor(declaration: KtElement, trace: BindingTrace)
|
||||
: this(declaration, trace, ControlFlowProcessor(trace).generatePseudocode(declaration)) {}
|
||||
: this(declaration, trace, ControlFlowProcessor(trace).generatePseudocode(declaration))
|
||||
|
||||
fun checkForLocalClassOrObjectMode() {
|
||||
// Local classes and objects are analyzed twice: when TopDownAnalyzer processes it and as a part of its container.
|
||||
|
||||
@@ -27,11 +27,9 @@ import org.jetbrains.kotlin.psi.stubs.KotlinNameReferenceExpressionStub
|
||||
import org.jetbrains.kotlin.psi.stubs.elements.KtStubElementTypes
|
||||
|
||||
class KtNameReferenceExpression : KtExpressionImplStub<KotlinNameReferenceExpressionStub>, KtSimpleNameExpression {
|
||||
constructor(node: ASTNode) : super(node) {
|
||||
}
|
||||
constructor(node: ASTNode) : super(node)
|
||||
|
||||
constructor(stub: KotlinNameReferenceExpressionStub) : super(stub, KtStubElementTypes.REFERENCE_EXPRESSION) {
|
||||
}
|
||||
constructor(stub: KotlinNameReferenceExpressionStub) : super(stub, KtStubElementTypes.REFERENCE_EXPRESSION)
|
||||
|
||||
override fun getReferencedName(): String {
|
||||
val stub = stub
|
||||
|
||||
@@ -75,8 +75,7 @@ open class DelegatingBindingTrace(private val parentContext: BindingContext,
|
||||
filter: BindingTraceFilter = BindingTraceFilter.ACCEPT_ALL)
|
||||
: this(parentContext,
|
||||
AnalyzingUtils.formDebugNameForBindingTrace(debugName, resolutionSubjectForMessage),
|
||||
filter = filter) {
|
||||
}
|
||||
filter = filter)
|
||||
|
||||
override fun getBindingContext(): BindingContext = bindingContext
|
||||
|
||||
|
||||
@@ -40,8 +40,7 @@ abstract class KotlinFindUsagesHandler<T : PsiElement>(psiElement: T,
|
||||
return psiElement as T
|
||||
}
|
||||
|
||||
constructor(psiElement: T, factory: KotlinFindUsagesHandlerFactory) : this(psiElement, emptyList(), factory) {
|
||||
}
|
||||
constructor(psiElement: T, factory: KotlinFindUsagesHandlerFactory) : this(psiElement, emptyList(), factory)
|
||||
|
||||
override fun getPrimaryElements(): Array<PsiElement> {
|
||||
return if (elementsToSearch.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user