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

MethodDefinition

Extends:

Node → MethodDefinition

Part of a ClassBody.

Static Method Summary

Static Public Methods
public static

Constructor Summary

Public Constructor
public

constructor(key: *, value: *, kind: *, _static: *, computed: *)

Member Summary

Public Members
public
public

key: Identifier | Literal

public
public
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(): *

Static Public Methods

public static constructor(value: FunctionExpression): * source

Params:

NameTypeAttributeDescription
value FunctionExpression

Return:

*

Public Constructors

public constructor(key: *, value: *, kind: *, _static: *, computed: *) source

Params:

NameTypeAttributeDescription
key *
value *
kind *
_static *
computed *

Public Members

public computed: boolean source

public key: Identifier | Literal source

public static: boolean source

public value: FunctionExpression source