From 39dd9e09aa9d769cb5c3a53ccf51b3f21afb6bb2 Mon Sep 17 00:00:00 2001 From: JohnnyMorganz Date: Sat, 13 Jul 2024 10:06:16 +0200 Subject: [PATCH] Make definitionLocation optional --- Analysis/include/Luau/Type.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Analysis/include/Luau/Type.h b/Analysis/include/Luau/Type.h index b543e414..aa56f8e0 100644 --- a/Analysis/include/Luau/Type.h +++ b/Analysis/include/Luau/Type.h @@ -499,11 +499,11 @@ struct ClassType Tags tags; std::shared_ptr userData; ModuleName definitionModuleName; - Location definitionLocation; + std::optional definitionLocation; std::optional indexer; ClassType(Name name, Props props, std::optional parent, std::optional metatable, Tags tags, - std::shared_ptr userData, ModuleName definitionModuleName, Location definitionLocation) + std::shared_ptr userData, ModuleName definitionModuleName, std::optional definitionLocation) : name(name) , props(props) , parent(parent) @@ -516,7 +516,8 @@ struct ClassType } ClassType(Name name, Props props, std::optional parent, std::optional metatable, Tags tags, - std::shared_ptr userData, ModuleName definitionModuleName, Location definitionLocation, std::optional indexer) + std::shared_ptr userData, ModuleName definitionModuleName, std::optional definitionLocation, + std::optional indexer) : name(name) , props(props) , parent(parent)