Skip to content

Commit

Permalink
Fix JS compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaMuravjov committed Jul 31, 2023
1 parent bfd5827 commit 06a2ebd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utbot-js/src/main/kotlin/api/JsUtModelConstructor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import org.utbot.framework.plugin.api.UtExecutableCallModel
import org.utbot.framework.plugin.api.UtModel
import org.utbot.instrumentation.instrumentation.execution.constructors.UtModelConstructorInterface

class JsUtModelConstructor : UtModelConstructorInterface {
class JsUtModelConstructor {

// TODO SEVERE: Requires substantial expansion to other types
@Suppress("NAME_SHADOWING")
override fun construct(value: Any?, classId: ClassId): UtModel {
fun construct(value: Any?, classId: ClassId): UtModel {
val classId = classId as JsClassId
if (classId == jsErrorClassId) return UtModel(jsErrorClassId)
return when (value) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package framework.codegen.model.constructor.tree

import framework.api.js.JsClassId
import org.utbot.framework.codegen.domain.context.CgContext
import org.utbot.framework.codegen.domain.models.CgMethodTestSet
import org.utbot.framework.codegen.domain.models.CgTestMethod
import org.utbot.framework.codegen.domain.models.CgTestMethodType
import org.utbot.framework.codegen.domain.models.CgValue
Expand Down

0 comments on commit 06a2ebd

Please sign in to comment.