js-ast-parser
Version:
把javascript代码字符串解析为AST对象
11 lines (10 loc) • 359 B
TypeScript
import { Block } from "../../Block";
import { Expression } from "./Expression";
import { IdentifierLiteralExpression } from "./IdentifierLiteralExpression";
export declare class FunctionExpression extends Expression {
type: string;
code: any;
params: IdentifierLiteralExpression[];
body: Block;
constructor(currentToken: any);
}