()
| 1112 | } |
| 1113 | |
| 1114 | override clone(): Expression { |
| 1115 | // TODO: Should we deep clone statements? |
| 1116 | return new ArrowFunctionExpr( |
| 1117 | this.params.map((p) => p.clone()), |
| 1118 | Array.isArray(this.body) ? this.body : this.body.clone(), |
| 1119 | this.type, |
| 1120 | this.sourceSpan, |
| 1121 | ); |
| 1122 | } |
| 1123 | |
| 1124 | toDeclStmt(name: string, modifiers?: StmtModifier): DeclareVarStmt { |
| 1125 | return new DeclareVarStmt(name, this, INFERRED_TYPE, modifiers, this.sourceSpan); |