@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
16 lines (15 loc) • 933 B
TypeScript
import type { NormalizerData } from '../../normalizer-data';
import type { RFunctionCall } from '../../../../model/nodes/r-function-call';
import type { RNext } from '../../../../model/nodes/r-next';
import type { RBreak } from '../../../../model/nodes/r-break';
import type { NamedJsonEntry } from '../../../json/format';
/**
* Tries to parse the given data as a function call.
*
* @param data - The data used by the parser (see {@link NormalizerData})
* @param mappedWithName - The JSON object to extract the meta-information from
*
* @returns The parsed {@link RFunctionCall} (either named or unnamed) or `undefined` if the given construct is not a function call
* May return a {@link RNext} or {@link RBreak} as `next()` and `break()` work as such.
*/
export declare function tryNormalizeFunctionCall(data: NormalizerData, mappedWithName: readonly NamedJsonEntry[]): RFunctionCall | RNext | RBreak | undefined;