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