Avoid excessive copying in JsLabel

See KT-18331
This commit is contained in:
Alexey Andreev
2017-06-27 12:27:46 +03:00
parent 3dc4f8a2ff
commit 64331ffa40
@@ -69,6 +69,6 @@ public class JsLabel extends SourceInfoAwareJsNode implements JsStatement, HasNa
@NotNull
@Override
public JsLabel deepCopy() {
return new JsLabel(label, AstUtil.deepCopy(statement.deepCopy())).withMetadataFrom(this);
return new JsLabel(label, AstUtil.deepCopy(statement)).withMetadataFrom(this);
}
}