UNPKG

js-ast-parser

Version:
14 lines (13 loc) 509 B
import { CallExpression } from "./CallExpression"; import { IdentifierLiteralExpression } from "./IdentifierLiteralExpression"; import { NodeCode } from "../../constants"; import { Expression } from "./Expression"; export class NewExpressioin extends Expression { type = 'NewExpressioin'; code = NodeCode.NewExpression; callee: CallExpression | IdentifierLiteralExpression; constructor(currentToken: any) { super(); this.loc.start = currentToken.loc.start } }