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>
17 lines
489 B
C++
17 lines
489 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#include "Luau/Location.h"
|
|
|
|
namespace Luau
|
|
{
|
|
|
|
std::string toString(const Position& position)
|
|
{
|
|
return "{ line = " + std::to_string(position.line) + ", col = " + std::to_string(position.column) + " }";
|
|
}
|
|
|
|
std::string toString(const Location& location)
|
|
{
|
|
return "Location { " + toString(location.begin) + ", " + toString(location.end) + " }";
|
|
}
|
|
|
|
} // namespace Luau
|