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