Refactor REPL infrastructure for passing evaluation/invoke wrapper to every eval/invoke function
This commit is contained in:
+2
-1
@@ -138,7 +138,8 @@ class KotlinRemoteReplEvaluator(
|
||||
operationsTracer = operationsTracer
|
||||
), ReplEvaluator {
|
||||
|
||||
override fun eval(codeLine: ReplCodeLine, history: List<ReplCodeLine>): ReplEvalResult {
|
||||
// TODO: invokeWrapper is ignored here, and in the daemon the session wrapper is used instead; So consider to make it per call (avoid performance penalties though)
|
||||
override fun eval(codeLine: ReplCodeLine, history: List<ReplCodeLine>, invokeWrapper: InvokeWrapper?): ReplEvalResult {
|
||||
return compileService.remoteReplLineEval(sessionId, codeLine, history).get()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user