mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 05:20:38 +00:00
75a2e95714
* Fixed unions of `nil` types displaying as `?` * Internal normalization now handles class types which can make previously failing (incorrectly) sub-typing checks to succeed
31 lines
747 B
C++
31 lines
747 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/Common.h"
|
|
|
|
#include <string>
|
|
|
|
namespace Luau
|
|
{
|
|
struct Type;
|
|
using TypeId = const Type*;
|
|
|
|
struct TypePackVar;
|
|
using TypePackId = const TypePackVar*;
|
|
|
|
struct ToDotOptions
|
|
{
|
|
bool showPointers = true; // Show pointer value in the node label
|
|
bool duplicatePrimitives = true; // Display primitive types and 'any' as separate nodes
|
|
};
|
|
|
|
std::string toDot(TypeId ty, const ToDotOptions& opts);
|
|
std::string toDot(TypePackId tp, const ToDotOptions& opts);
|
|
|
|
std::string toDot(TypeId ty);
|
|
std::string toDot(TypePackId tp);
|
|
|
|
void dumpDot(TypeId ty);
|
|
void dumpDot(TypePackId tp);
|
|
|
|
} // namespace Luau
|