@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
19 lines • 785 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.processFunctionCall = processFunctionCall;
const named_call_handling_1 = require("./named-call-handling");
const unnamed_call_handling_1 = require("./unnamed-call-handling");
/**
* Processes a function call, either named or unnamed.
* @see {@link processNamedCall}
* @see {@link processUnnamedFunctionCall}
*/
function processFunctionCall(functionCall, data) {
if (functionCall.named) {
return (0, named_call_handling_1.processNamedCall)(functionCall.functionName, functionCall.arguments, functionCall.info.id, data);
}
else {
return (0, unnamed_call_handling_1.processUnnamedFunctionCall)(functionCall, data);
}
}
//# sourceMappingURL=default-call-handling.js.map