UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

15 lines (14 loc) 739 B
import type { NormalizerData } from '../../normalizer-data'; import type { RSymbol } from '../../../../model/nodes/r-symbol'; import type { NamedJsonEntry } from '../../../json/format'; /** * Normalize the given object as an R symbol (incorporating namespace information). * <p> * The special symbols `T` and `F` are parsed as logic values. * * @param data - The data used by the parser (see {@link NormalizerData}) * @param objs - The JSON object to extract the meta-information from * * @returns The parsed symbol (with populated namespace information) or `undefined` if the given object is not a symbol. */ export declare function tryNormalizeSymbol(data: NormalizerData, objs: readonly NamedJsonEntry[]): RSymbol | undefined;