diff --git a/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java b/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java index 97f23f2a..94ff6eb3 100644 --- a/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java +++ b/edu.cuny.hunter.hybridize.core/src/edu/cuny/hunter/hybridize/core/refactorings/HybridizeFunctionRefactoringProcessor.java @@ -181,7 +181,7 @@ private RefactoringStatus checkFunctions(IProgressMonitor monitor) throws Operat // Find out if it's hybrid via the tf.function decorator. try { - func.computeHybridization(monitor); + func.computeHybridization(subMonitor.split(IProgressMonitor.UNKNOWN)); } catch (BadLocationException e) { throw new CoreException(Status.error("Could not compute hybridization for: : " + func, e)); } @@ -189,7 +189,7 @@ private RefactoringStatus checkFunctions(IProgressMonitor monitor) throws Operat // TODO: Whether a function has a tensor argument should probably be an initial // condition: functions w/o such arguments should not be candidates. try { - func.inferTensorTensorParameters(analysis, monitor); + func.inferTensorTensorParameters(analysis, subMonitor.split(IProgressMonitor.UNKNOWN)); } catch (BadLocationException e) { throw new CoreException(Status.error("Could not infer tensor parameters for: : " + func, e)); }