@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
11 lines • 512 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.unpackArgument = unpackArgument;
const r_function_call_1 = require("../../../../../../r-bridge/lang-4.x/ast/model/nodes/r-function-call");
/**
* Retrieve the value from an argument, if it is not empty.
*/
function unpackArgument(arg, noNameOnly = true) {
return arg === undefined || arg === r_function_call_1.EmptyArgument || (noNameOnly && arg.name) ? undefined : arg.value;
}
//# sourceMappingURL=unpack-argument.js.map