UNPKG

js-ast-parser

Version:
13 lines (12 loc) 379 B
import { NodeCode } from "../../constants"; import { AstNode } from "../AstNode"; import { Statement } from "./Statement"; export class ReturnStatement extends Statement { type = 'ReturnStatement'; code = NodeCode.ReturnStatement; argument: AstNode; constructor(currentToken) { super(); this.loc.start = currentToken.loc.start } }