@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
20 lines • 878 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.processAsNamedCall = processAsNamedCall;
const named_call_handling_1 = require("./functions/call/named-call-handling");
const make_argument_1 = require("./functions/call/argument/make-argument");
const type_1 = require("../../../r-bridge/lang-4.x/ast/model/type");
/**
* Helper function for {@link processNamedCall} using the given `functionName` as the name of the function.
*/
function processAsNamedCall({ info, lexeme, location }, data, name, args) {
return (0, named_call_handling_1.processNamedCall)({
type: type_1.RType.Symbol,
info,
content: name,
lexeme,
location,
namespace: undefined
}, (0, make_argument_1.wrapArgumentsUnnamed)(args, data.completeAst.idMap), info.id, data);
}
//# sourceMappingURL=process-named-call.js.map