Пример #1
0
 private static bool EvaluatorUsesThisInterpreter(JReplEvaluator pyEval, IJInterpreterFactory interpreter)
 {
     return pyEval != null && pyEval.Interpreter.Id == interpreter.Id && pyEval.Interpreter.Configuration.Version == interpreter.Configuration.Version;
 }
Пример #2
0
 private static IEnumerable<string> GetActiveInputs(IWpfTextView activeView, JReplEvaluator eval)
 {
     foreach (var span in activeView.Selection.SelectedSpans) {
         foreach (var input in eval.SplitCode(span.GetText())) {
             yield return input;
         }
     }
 }