js-ast-parser
Version:
把javascript代码字符串解析为AST对象
12 lines (11 loc) • 329 B
TypeScript
import { Block } from "../../Block";
import { AstNode } from "../AstNode";
import { Statement } from "./Statement";
export declare class IfStatement extends Statement {
type: string;
code: any;
test: AstNode;
alternate: IfStatement | Block;
consequent: Block;
constructor(currentToken: any);
}