MCPcopy
hub / github.com/angular/angular / clone

Method clone

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

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 3

mapMethod · 0.80
isArrayMethod · 0.80
cloneMethod · 0.65

Tested by

no test coverage detected