@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
13 lines (12 loc) • 710 B
TypeScript
import type { NormalizerData } from '../../normalizer-data';
import type { RFunctionDefinition } from '../../../../model/nodes/r-function-definition';
import type { NamedJsonEntry } from '../../../json/format';
/**
* Tries to parse the given data as a function definition.
*
* @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 RFunctionDefinition} or `undefined` if the given construct is not a function definition
*/
export declare function tryNormalizeFunctionDefinition(data: NormalizerData, mappedWithName: readonly NamedJsonEntry[]): RFunctionDefinition | undefined;