js-ast-parser
Version:
把javascript代码字符串解析为AST对象
14 lines (13 loc) • 501 B
TypeScript
import { IdentifierLiteralExpression } from "./IdentifierLiteralExpression";
import { AstNode } from "../AstNode";
import { StringLiteralExpression } from "./StringLiteralExpression";
import { Expression } from "./Expression";
export declare class ObjectLiteralExpression extends Expression {
type: string;
code: any;
properties: Array<{
key: StringLiteralExpression | IdentifierLiteralExpression;
value: AstNode;
}>;
constructor(currentToken: any);
}