Skip to content

⬅️ Back to Table of Contents

📄 MethodDefinitionBase

📊 Analysis Summary

Metric Count
📦 Imports 9
📐 Interfaces 4

📚 Table of Contents

🛠️ File Location:

📂 packages/ast-spec/src/base/MethodDefinitionBase.ts

📦 Imports

Name Source
FunctionExpression ../expression/FunctionExpression/spec
TSEmptyBodyFunctionExpression ../expression/TSEmptyBodyFunctionExpression/spec
Decorator ../special/Decorator/spec
ClassPropertyNameNonComputed ../unions/PropertyName
PropertyName ../unions/PropertyName
PropertyNameComputed ../unions/PropertyName
PropertyNameNonComputed ../unions/PropertyName
Accessibility ./Accessibility
BaseNode ./BaseNode

Interfaces

MethodDefinitionBase

Interface Code
interface MethodDefinitionBase extends BaseNode {
  accessibility: Accessibility | undefined;
  computed: boolean;
  decorators: Decorator[];
  key: PropertyName;
  kind: 'constructor' | 'get' | 'method' | 'set';
  optional: boolean;
  override: boolean;
  static: boolean;
  value: FunctionExpression | TSEmptyBodyFunctionExpression;
}

Properties

Name Type Optional Description
accessibility Accessibility \| undefined not shown
computed boolean not shown
decorators Decorator[] not shown
key PropertyName not shown
kind 'constructor' \| 'get' \| 'method' \| 'set' not shown
optional boolean not shown
override boolean not shown
static boolean not shown
value FunctionExpression \| TSEmptyBodyFunctionExpression not shown

MethodDefinitionComputedNameBase

Interface Code
export interface MethodDefinitionComputedNameBase extends MethodDefinitionBase {
  computed: true;
  key: PropertyNameComputed;
}

Properties

Name Type Optional Description
computed true not shown
key PropertyNameComputed not shown

MethodDefinitionNonComputedNameBase

Interface Code
export interface MethodDefinitionNonComputedNameBase extends MethodDefinitionBase {
  computed: false;
  key: PropertyNameNonComputed;
}

Properties

Name Type Optional Description
computed false not shown
key PropertyNameNonComputed not shown

ClassMethodDefinitionNonComputedNameBase

Interface Code
export interface ClassMethodDefinitionNonComputedNameBase extends MethodDefinitionBase {
  computed: false;
  key: ClassPropertyNameNonComputed;
}

Properties

Name Type Optional Description
computed false not shown
key ClassPropertyNameNonComputed not shown

Generated by Syntax Scribe