UNPKG

@syntest/analysis-javascript

Version:

SynTest CFG JavaScript is a library for generating control flow graphs for the JavaScript language

14 lines 653 B
import { NodePath } from "@babel/core"; import * as t from "@babel/types"; import { AbstractSyntaxTreeVisitor } from "@syntest/ast-visitor-javascript"; import { Logger } from "@syntest/logging"; export declare class DependencyVisitor extends AbstractSyntaxTreeVisitor { protected static LOGGER: Logger; private _imports; constructor(filePath: string, syntaxForgiving: boolean); ImportDeclaration: (path: NodePath<t.ImportDeclaration>) => void; Import: (path: NodePath<t.Import>) => void; CallExpression: (path: NodePath<t.CallExpression>) => void; get imports(): Set<string>; } //# sourceMappingURL=DependencyVisitor.d.ts.map