MCPcopy Create free account
hub / github.com/angular/angular / clone

Method clone

packages/compiler/src/output/output_ast.ts:1116–1124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

mapMethod · 0.80
isArrayMethod · 0.80
cloneMethod · 0.65

Tested by

no test coverage detected