Create from Usage: Make extension functions/properties 'private' by default

#KT-11799 Fixed
This commit is contained in:
Alexey Sedunov
2016-08-17 14:19:04 +03:00
parent 92b0c852dd
commit 99ba340236
35 changed files with 37 additions and 35 deletions
@@ -450,6 +450,7 @@ class CallableBuilder(val config: CallableBuilderConfiguration) {
&& !(containingElement is KtClass && containingElement.isInterface())
&& containingElement.isAncestor(config.originalElement)
&& callableInfo.kind != CallableKind.SECONDARY_CONSTRUCTOR) "private "
else if (isExtension) "private "
else ""
val declaration: KtNamedDeclaration = when (callableInfo.kind) {