mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
29 lines
637 B
C++
29 lines
637 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>
|
|
#include <vector>
|
|
|
|
namespace Luau
|
|
{
|
|
|
|
class AstStat;
|
|
class AstExpr;
|
|
class AstStatBlock;
|
|
struct AstLocal;
|
|
|
|
struct RequireTraceResult
|
|
{
|
|
DenseHashMap<const AstExpr*, ModuleInfo> exprs{nullptr};
|
|
|
|
std::vector<std::pair<ModuleName, Location>> requireList;
|
|
};
|
|
|
|
RequireTraceResult traceRequires(FileResolver* fileResolver, AstStatBlock* root, const ModuleName& currentModuleName);
|
|
|
|
} // namespace Luau
|