UNPKG

@eagleoutice/flowr

Version:

Static Dataflow Analyzer and Program Slicer for the R Programming Language

22 lines (21 loc) 1.25 kB
import type { IdGenerator, NormalizedAst } from '../../model/processing/decorate'; import type { NoInfo, RNode } from '../../model/model'; import type { ParseStepOutputTS } from '../../../../../core/steps/all/core/01-parse-tree-sitter'; import type { ParseStepOutput } from '../../../../parser'; export declare const parseLog: import("tslog").Logger<import("tslog").ILogObj>; /** * Take the output as produced by the parse step and normalize the AST from the R parser. * * @see {@link normalizeButNotDecorated} for a version that does not decorate the AST * @see {@link normalizeTreeSitter} for a version that normalizes the AST from the TreeSitter parser */ export declare function normalize(parsed: ParseStepOutput<string>, getId?: IdGenerator<NoInfo>, file?: string): NormalizedAst; /** * Take the output as produced by the parse step and normalize the AST from the R parser. * For additional decoration with ${@link decorateAst} use {@link normalize}. */ export declare function normalizeButNotDecorated({ parsed }: ParseStepOutput<string>): RNode; /** * Tree-Sitter pendant to {@link normalize}. */ export declare function normalizeTreeSitter({ parsed }: ParseStepOutputTS, getId?: IdGenerator<NoInfo>, file?: string): NormalizedAst;