⬅️ Back to Table of Contents
📄 ArrowFunctionExpression/spec
📊 Analysis Summary
| Metric |
Count |
| 📦 Imports |
7 |
| 📐 Interfaces |
3 |
| 📑 Type Aliases |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/ast-spec/src/expression/ArrowFunctionExpression/spec.ts
📦 Imports
| Name |
Source |
AST_NODE_TYPES |
../../ast-node-types |
BaseNode |
../../base/BaseNode |
TSTypeAnnotation |
../../special/TSTypeAnnotation/spec |
TSTypeParameterDeclaration |
../../special/TSTypeParameterDeclaration/spec |
BlockStatement |
../../statement/BlockStatement/spec |
Expression |
../../unions/Expression |
Parameter |
../../unions/Parameter |
Interfaces
ArrowFunctionExpressionBase
Interface Code
interface ArrowFunctionExpressionBase extends BaseNode {
type: AST_NODE_TYPES.ArrowFunctionExpression;
async: boolean;
body: BlockStatement | Expression;
expression: boolean;
generator: false;
id: null;
params: Parameter[];
returnType: TSTypeAnnotation | undefined;
typeParameters: TSTypeParameterDeclaration | undefined;
}
Properties
| Name |
Type |
Optional |
Description |
type |
AST_NODE_TYPES.ArrowFunctionExpression |
✗ |
not shown |
async |
boolean |
✗ |
not shown |
body |
BlockStatement \| Expression |
✗ |
not shown |
expression |
boolean |
✗ |
not shown |
generator |
false |
✗ |
not shown |
id |
null |
✗ |
not shown |
params |
Parameter[] |
✗ |
not shown |
returnType |
TSTypeAnnotation \| undefined |
✗ |
not shown |
typeParameters |
TSTypeParameterDeclaration \| undefined |
✗ |
not shown |
ArrowFunctionExpressionWithExpressionBody
Interface Code
export interface ArrowFunctionExpressionWithExpressionBody extends ArrowFunctionExpressionBase {
body: Expression;
expression: true;
}
Properties
| Name |
Type |
Optional |
Description |
body |
Expression |
✗ |
not shown |
expression |
true |
✗ |
not shown |
ArrowFunctionExpressionWithBlockBody
Interface Code
export interface ArrowFunctionExpressionWithBlockBody extends ArrowFunctionExpressionBase {
body: BlockStatement;
expression: false;
}
Properties
| Name |
Type |
Optional |
Description |
body |
BlockStatement |
✗ |
not shown |
expression |
false |
✗ |
not shown |
Type Aliases
ArrowFunctionExpression
type ArrowFunctionExpression = | ArrowFunctionExpressionWithBlockBody
| ArrowFunctionExpressionWithExpressionBody;
Generated by Syntax Scribe