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