// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #pragma once #include "Luau/Ast.h" #include "Luau/DenseHash.h" #include namespace Luau { enum class Mode { NoCheck, // Do not perform any inference Nonstrict, // Unannotated symbols are any Strict, // Unannotated symbols are inferred Definition, // Type definition module, has special parsing rules }; struct FragmentParseResumeSettings { DenseHashMap localMap{AstName()}; std::vector localStack; }; struct ParseOptions { bool allowDeclarationSyntax = false; bool captureComments = false; std::optional parseFragment = std::nullopt; }; } // namespace Luau