@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
25 lines (24 loc) • 693 B
TypeScript
import type { Expression } from 'typescript';
import ts from 'typescript';
export interface FunctionElementInSource {
name: string;
node: ts.Node;
source: ts.SourceFile;
kind: 'function';
arguments: Expression[];
lineNumber: number;
comments?: string[];
}
export interface GetFunctionsOption {
readonly rootFolder?: string;
readonly files?: readonly string[];
readonly fname?: RegExp;
}
export interface FunctionsReport {
info: FunctionElementInSource[];
program: ts.Program;
}
/**
* Inspect typescript source code for types and return a report.
*/
export declare function getFunctionsFromFolder(options: GetFunctionsOption): FunctionsReport;