@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
32 lines • 903 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RFunctionCall = exports.EmptyArgument = void 0;
const model_1 = require("../model");
const type_1 = require("../type");
exports.EmptyArgument = '<>';
/**
* Helper for working with {@link RFunctionCall} AST nodes.
*/
exports.RFunctionCall = {
...model_1.RNode,
name: 'RFunctionCall',
/**
* Type guard for {@link RFunctionCall} nodes.
*/
is(node) {
return node?.type === type_1.RType.FunctionCall;
},
/**
* Type guard for {@link RNamedFunctionCall} nodes.
*/
isNamed(node) {
return exports.RFunctionCall.is(node) && node.named === true;
},
/**
* Type guard for {@link RUnnamedFunctionCall} nodes.
*/
isUnnamed(node) {
return exports.RFunctionCall.is(node) && !node.named;
}
};
//# sourceMappingURL=r-function-call.js.map