js-ast-parser
Version:
把javascript代码字符串解析为AST对象
11 lines (10 loc) • 333 B
TypeScript
import { AstNode } from "../AstNode";
import { Expression } from "./Expression";
export declare class TernaryExpression extends Expression {
test?: AstNode;
consequent?: AstNode;
alternate?: AstNode;
type: string;
code: any;
constructor(test?: AstNode, consequent?: AstNode, alternate?: AstNode);
}