Home Reference Source Repository
import {ReturnStatement} from 'esast/src/ast.js'
public class | source

ReturnStatement

Extends:

NodeStatement → ReturnStatement

The return keyword, optionally followed by an Expression to return.

Constructor Summary

Public Constructor
public

constructor(argument: *)

Member Summary

Public Members
public

Inherited Summary

From class Node
public get

type: *

For compatibility with other AST representations, all Node instances have a 'type' property that is the name of that type.
public

toJSON(): *

Convert to JSON.
public

toString(): *

Public Constructors

public constructor(argument: *) source

Params:

NameTypeAttributeDescription
argument *

Public Members

public argument: Expression source