mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 21:40:43 +00:00
49b0c59eec
Changes: - Support for time tracing for analysis/compiler (not currently exposed through CLI) - Support for type pack arguments in type aliases (#83) - Basic support for require(path) in luau-analyze - Add a lint warning for table.move with 0 index as part of TableOperation lint - Remove last STL dependency from Luau.VM - Minor VS2022 performance tuning Co-authored-by: Rodactor <rodactor@roblox.com>
27 lines
616 B
C++
27 lines
616 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*, ModuleInfo> exprs{nullptr};
|
|
|
|
std::vector<std::pair<ModuleName, Location>> requires;
|
|
};
|
|
|
|
RequireTraceResult traceRequires(FileResolver* fileResolver, AstStatBlock* root, const ModuleName& currentModuleName);
|
|
|
|
} // namespace Luau
|