@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
14 lines (13 loc) • 650 B
TypeScript
import type { NormalizerData } from '../../normalizer-data';
import type { RNode } from '../../../../model/model';
import type { NamedJsonEntry } from '../../../json/format';
/**
* Parses the construct as a {@link RUnaryOp}.
*
* @param data - The data used by the parser (see {@link NormalizerData})
* @param operator - The operator token
* @param operand - The operand of the unary operator
*
* @returns The parsed {@link RUnaryOp} or `undefined` if the given construct is not a unary operator
*/
export declare function tryNormalizeUnary(data: NormalizerData, [operator, operand]: [NamedJsonEntry, NamedJsonEntry]): RNode | undefined;