From c0f55389470a2a30117dd7c938f9f7fee7d1795a Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Mon, 8 Jan 2024 15:25:27 +0100 Subject: [PATCH] Clone TableType typeLocation (#1136) This was missed in #1046 --- Analysis/src/Clone.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Analysis/src/Clone.cpp b/Analysis/src/Clone.cpp index 5fe9e787..8fc9a357 100644 --- a/Analysis/src/Clone.cpp +++ b/Analysis/src/Clone.cpp @@ -199,6 +199,7 @@ private: cloned->location = p.location; cloned->tags = p.tags; cloned->documentationSymbol = p.documentationSymbol; + cloned->typeLocation = p.typeLocation; return *cloned; } else @@ -210,6 +211,7 @@ private: p.location, p.tags, p.documentationSymbol, + p.typeLocation, }; } } @@ -461,6 +463,7 @@ Property clone(const Property& prop, TypeArena& dest, CloneState& cloneState) cloned->location = prop.location; cloned->tags = prop.tags; cloned->documentationSymbol = prop.documentationSymbol; + cloned->typeLocation = prop.typeLocation; return *cloned; } else @@ -472,6 +475,7 @@ Property clone(const Property& prop, TypeArena& dest, CloneState& cloneState) prop.location, prop.tags, prop.documentationSymbol, + prop.typeLocation, }; } }