Add 'constructor' keyword in whole project where needed
This commit is contained in:
@@ -50,7 +50,7 @@ import org.jetbrains.kotlin.js.translate.context.Namer
|
||||
* It's desirable to create temporary var only if node can have side effect,
|
||||
* and precedes inline call (in JavaScript evaluation order).
|
||||
*/
|
||||
class ExpressionDecomposer private (
|
||||
class ExpressionDecomposer private constructor(
|
||||
private val scope: JsScope,
|
||||
private val containsExtractable: Set<JsNode>,
|
||||
private val containsNodeWithSideEffect: Set<JsNode>
|
||||
|
||||
@@ -29,7 +29,11 @@ import org.jetbrains.kotlin.js.translate.utils.jsAstUtils.*
|
||||
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
class FunctionInlineMutator private (private val call: JsInvocation, private val inliningContext: InliningContext) {
|
||||
class FunctionInlineMutator
|
||||
private constructor(
|
||||
private val call: JsInvocation,
|
||||
private val inliningContext: InliningContext
|
||||
) {
|
||||
private val invokedFunction: JsFunction
|
||||
private val isResultNeeded: Boolean
|
||||
private val namingContext: NamingContext
|
||||
|
||||
@@ -37,7 +37,7 @@ import org.jetbrains.kotlin.utils.fileUtils.readTextOrEmpty
|
||||
import java.io.File
|
||||
import java.util.ArrayList
|
||||
|
||||
public abstract class TranslationResult protected (public val diagnostics: Diagnostics) {
|
||||
public abstract class TranslationResult protected constructor(public val diagnostics: Diagnostics) {
|
||||
|
||||
public class Fail(diagnostics: Diagnostics) : TranslationResult(diagnostics)
|
||||
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ import java.util.ArrayList
|
||||
import java.util.Collections
|
||||
import kotlin.platform.platformStatic
|
||||
|
||||
public class CallArgumentTranslator private (
|
||||
public class CallArgumentTranslator private constructor(
|
||||
private val resolvedCall: ResolvedCall<*>,
|
||||
private val receiver: JsExpression?,
|
||||
context: TranslationContext
|
||||
|
||||
Reference in New Issue
Block a user