mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-12 21:10:37 +00:00
543de6e939
# General Updates * Fix some cases where documentation symbols would not be available when mouseovering at certain positions in the code * Scaffolding to help embedders have more control over how `typeof(x)` refines types * Refinements to require-by-string semantics. See https://github.com/luau-lang/rfcs/pull/56 for details. * Fix for https://github.com/luau-lang/luau/issues/1405 # New Solver * Fix many crashes (thanks you for your bug reports!) * Type functions can now call each other * Type functions all evaluate in a single VM. This should improve typechecking performance and reduce memory use. * `export type function` is now forbidden and fails with a clear error message * Type functions that access locals in the surrounding environment are now properly a parse error * You can now use `:setindexer(types.never, types.never)` to delete an indexer from a table type. # Internal Contributors Co-authored-by: Aaron Weiss <aaronweiss@roblox.com> Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com> Co-authored-by: Varun Saini <vsaini@roblox.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com>
27 lines
1 KiB
C++
27 lines
1 KiB
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
#include <string_view>
|
|
#include <functional>
|
|
#include <vector>
|
|
|
|
std::optional<std::string> getCurrentWorkingDirectory();
|
|
|
|
std::string normalizePath(std::string_view path);
|
|
std::string resolvePath(std::string_view relativePath, std::string_view baseFilePath);
|
|
|
|
std::optional<std::string> readFile(const std::string& name);
|
|
std::optional<std::string> readStdin();
|
|
|
|
bool isAbsolutePath(std::string_view path);
|
|
bool isFile(const std::string& path);
|
|
bool isDirectory(const std::string& path);
|
|
bool traverseDirectory(const std::string& path, const std::function<void(const std::string& name)>& callback);
|
|
|
|
std::vector<std::string_view> splitPath(std::string_view path);
|
|
std::string joinPaths(const std::string& lhs, const std::string& rhs);
|
|
std::optional<std::string> getParentPath(const std::string& path);
|
|
|
|
std::vector<std::string> getSourceFiles(int argc, char** argv);
|