File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
commonMain/kotlin/spp.protocol/utils
jvmMain/kotlin/spp/protocol/service/live Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,13 @@ object ArtifactNameUtils {
5151 }
5252
5353 fun getShortFunctionSignature (qualifiedName : String ): String {
54- return getFunctionSignature(qualifiedName).replace(" \\ B\\ w+(\\ .)" .toRegex(), " $1" )
54+ return getFunctionSignature(qualifiedName.substringBefore(" #" ))
55+ .replace(" \\ B\\ w+(\\ .)" .toRegex(), " $1" )
5556 }
5657
5758 fun getFunctionSignature (qualifiedName : String ): String {
58- val withoutClassName = qualifiedName.replace(getQualifiedClassName(qualifiedName)!! , " " )
59+ val withoutClassName = qualifiedName.substringBefore(" #" )
60+ .replace(getQualifiedClassName(qualifiedName.substringBefore(" #" ))!! , " " )
5961 return withoutClassName.substring(
6062 withoutClassName.substring(0 , withoutClassName.indexOf(" (" )).lastIndexOf(" ?" ) + 2
6163 )
Original file line number Diff line number Diff line change 11package spp.protocol.service.live
22
3- import spp.protocol.view.LiveViewSubscription
43import io.vertx.codegen.annotations.ProxyGen
54import io.vertx.codegen.annotations.VertxGen
65import io.vertx.core.AsyncResult
76import io.vertx.core.Handler
7+ import spp.protocol.view.LiveViewSubscription
88
99/* *
1010 * todo: description.
@@ -17,5 +17,6 @@ import io.vertx.core.Handler
1717interface LiveViewService {
1818 fun addLiveViewSubscription (subscription : LiveViewSubscription , handler : Handler <AsyncResult <LiveViewSubscription >>)
1919 fun removeLiveViewSubscription (subscriptionId : String , handler : Handler <AsyncResult <LiveViewSubscription >>)
20+ fun getLiveViewSubscriptions (handler : Handler <AsyncResult <List <LiveViewSubscription >>>)
2021 fun clearLiveViewSubscriptions (handler : Handler <AsyncResult <List <LiveViewSubscription >>>)
2122}
You can’t perform that action at this time.
0 commit comments