private static bool insertReturnValueIntoFuncCall(FunctionCall theFuncCall, int lineNumber, Variable returnVar) { if (theFuncCall.returnCalculations == null) { return(false); } foreach (Logic[] l in theFuncCall.returnCalculations) { if (searchInLogicOrder(l, lineNumber, returnVar)) { return(true); } } return(false); }
private static bool insertReturnValueIntoPackage(Package thePackage, int lineNumber, Variable returnVar) { Logic[] tempOrder = thePackage.getLatestOrder(); return(searchInLogicOrder(tempOrder, lineNumber, returnVar)); }