js-ast-parser
Version:
把javascript代码字符串解析为AST对象
14 lines (13 loc) • 421 B
TypeScript
import { AstNode } from "../AstNode";
import { Scope } from "./Scope";
export declare class Definition {
astNode: AstNode;
definitionType: string;
definitionCode: number;
scope: Scope;
identifier: string;
definitions: Array<Definition>;
type: string;
arguments: Array<string>;
constructor(astNode: AstNode, definitionType: string, definitionCode: number, scope: Scope);
}