⬅️ Back to Table of Contents
📄 MethodDefinitionBase.ts
📊 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 |
✗ |
|
computed |
boolean |
✗ |
|
decorators |
Decorator[] |
✗ |
|
key |
PropertyName |
✗ |
|
kind |
'constructor' | 'get' | 'method' | 'set' |
✗ |
|
optional |
boolean |
✗ |
|
override |
boolean |
✗ |
|
static |
boolean |
✗ |
|
value |
FunctionExpression | TSEmptyBodyFunctionExpression |
✗ |
|
MethodDefinitionComputedNameBase
Interface Code
export interface MethodDefinitionComputedNameBase extends MethodDefinitionBase {
computed: true;
key: PropertyNameComputed;
}
Properties
Name |
Type |
Optional |
Description |
computed |
true |
✗ |
|
key |
PropertyNameComputed |
✗ |
|
MethodDefinitionNonComputedNameBase
Interface Code
export interface MethodDefinitionNonComputedNameBase
extends MethodDefinitionBase {
computed: false;
key: PropertyNameNonComputed;
}
Properties
Name |
Type |
Optional |
Description |
computed |
false |
✗ |
|
key |
PropertyNameNonComputed |
✗ |
|
ClassMethodDefinitionNonComputedNameBase
Interface Code
export interface ClassMethodDefinitionNonComputedNameBase
extends MethodDefinitionBase {
computed: false;
key: ClassPropertyNameNonComputed;
}
Properties
Name |
Type |
Optional |
Description |
computed |
false |
✗ |
|
key |
ClassPropertyNameNonComputed |
✗ |
|