⬅️ Back to Table of Contents
📄 spec.ts
📊 Analysis Summary
Metric |
Count |
📦 Imports |
4 |
📐 Interfaces |
1 |
📚 Table of Contents
🛠️ File Location:
📂 packages/ast-spec/src/statement/IfStatement/spec.ts
📦 Imports
Name |
Source |
AST_NODE_TYPES |
../../ast-node-types |
BaseNode |
../../base/BaseNode |
Expression |
../../unions/Expression |
Statement |
../../unions/Statement |
Interfaces
IfStatement
Interface Code
export interface IfStatement extends BaseNode {
type: AST_NODE_TYPES.IfStatement;
alternate: Statement | null;
consequent: Statement;
test: Expression;
}
Properties
Name |
Type |
Optional |
Description |
type |
AST_NODE_TYPES.IfStatement |
✗ |
|
alternate |
Statement | null |
✗ |
|
consequent |
Statement |
✗ |
|
test |
Expression |
✗ |
|