mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 21:40:43 +00:00
d01addc625
Co-authored-by: Rodactor <rodactor@roblox.com>
28 lines
655 B
C++
28 lines
655 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
#include "Luau/DenseHash.h"
|
|
#include "Luau/FileResolver.h"
|
|
#include "Luau/Location.h"
|
|
|
|
#include <string>
|
|
|
|
namespace Luau
|
|
{
|
|
|
|
class AstStat;
|
|
class AstExpr;
|
|
class AstStatBlock;
|
|
struct AstLocal;
|
|
|
|
struct RequireTraceResult
|
|
{
|
|
DenseHashMap<const AstExpr*, ModuleName> exprs{0};
|
|
DenseHashMap<const AstExpr*, bool> optional{0};
|
|
|
|
std::vector<std::pair<ModuleName, Location>> requires;
|
|
};
|
|
|
|
RequireTraceResult traceRequires(FileResolver* fileResolver, AstStatBlock* root, ModuleName currentModuleName);
|
|
|
|
} // namespace Luau
|