mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-14 14:11:08 +00:00
19 lines
379 B
C++
19 lines
379 B
C++
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
||
|
#include "Luau/Symbol.h"
|
||
|
|
||
|
#include "Luau/Common.h"
|
||
|
|
||
|
namespace Luau
|
||
|
{
|
||
|
|
||
|
std::string toString(const Symbol& name)
|
||
|
{
|
||
|
if (name.local)
|
||
|
return name.local->name.value;
|
||
|
|
||
|
LUAU_ASSERT(name.global.value);
|
||
|
return name.global.value;
|
||
|
}
|
||
|
|
||
|
} // namespace Luau
|