We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 68c292c commit 0ee4e0bCopy full SHA for 0ee4e0b
1 file changed
src/compiler/utilities.ts
@@ -1597,7 +1597,7 @@ namespace ts {
1597
: <T>createSynthesizedNode(node.kind);
1598
1599
for (const key in node) {
1600
- if (isExcludedPropertyForClone(key) || !node.hasOwnProperty(key)) {
+ if (clone.hasOwnProperty(key) || !node.hasOwnProperty(key)) {
1601
continue;
1602
}
1603
@@ -1615,13 +1615,6 @@ namespace ts {
1615
return clone;
1616
1617
1618
- function isExcludedPropertyForClone(property: string) {
1619
- return property === "pos"
1620
- || property === "end"
1621
- || property === "flags"
1622
- || property === "parent";
1623
- }
1624
-
1625
/**
1626
* Creates a deep clone of an EntityName, with new parent pointers.
1627
* @param node The EntityName to clone.
0 commit comments