@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
14 lines (13 loc) • 721 B
TypeScript
import type { NormalizerData } from '../../normalizer-data';
import type { RRepeatLoop } from '../../../../model/nodes/r-repeat-loop';
import type { NamedJsonEntry } from '../../../json/format';
/**
* Try to parse the construct as a {@link RRepeatLoop}.
*
* @param data - The data used by the parser (see {@link NormalizerData})
* @param repeatToken - Token which represents the `repeat` keyword
* @param bodyToken - The `body` of the repeat-loop
*
* @returns The parsed {@link RRepeatLoop} or `undefined` if the given construct is not a repeat-loop
*/
export declare function tryNormalizeRepeat(data: NormalizerData, [repeatToken, bodyToken]: [NamedJsonEntry, NamedJsonEntry]): RRepeatLoop | undefined;