Replace type entries of JsContext<*> with JsContext<JsNode>
It's needed to make method calls (e.g. replaceMe) on it typesafe, otherwise it's value parameter type is subtype of captured
This commit is contained in:
@@ -24,7 +24,7 @@ import org.jetbrains.kotlin.js.translate.utils.JsAstUtils.*
|
||||
|
||||
public fun expandIsCalls(node: JsNode, context: TranslationContext) {
|
||||
val visitor = object : JsVisitorWithContextImpl() {
|
||||
override fun visit(x: JsInvocation, ctx: JsContext<*>): Boolean {
|
||||
override fun visit(x: JsInvocation, ctx: JsContext<JsNode>): Boolean {
|
||||
val callee = x.getQualifier() as? JsInvocation
|
||||
val instance = x.getArguments().firstOrNull()
|
||||
val type = callee?.getArguments()?.firstOrNull()
|
||||
|
||||
Reference in New Issue
Block a user