@eagleoutice/flowr-dev
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
13 lines (12 loc) • 580 B
TypeScript
import type { FlowrAnalyzerContext } from '../../context/flowr-analyzer-context';
import type Parser from 'web-tree-sitter';
import type { FilePath } from '../../context/flowr-file';
export interface ReparseInfo {
readonly previousTree: Parser.Tree;
readonly editRegion: Parser.Edit | undefined;
}
/**
* Computes the information needed to reparse a file incrementally with tree-sitter.
* Returns `undefined` if incremental reparsing is not possible.
*/
export declare function computeReparseInfo(ctx: FlowrAnalyzerContext, filePath: FilePath): ReparseInfo | undefined;