2021-10-30 04:25:12 +08:00
|
|
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "Luau/Error.h"
|
|
|
|
#include "Luau/Location.h"
|
2023-01-04 01:33:19 +08:00
|
|
|
#include "Luau/Type.h"
|
2021-10-30 04:25:12 +08:00
|
|
|
#include "Luau/Ast.h"
|
2023-10-21 04:36:26 +08:00
|
|
|
#include "Luau/TypePath.h"
|
2021-10-30 04:25:12 +08:00
|
|
|
|
|
|
|
#include <ostream>
|
|
|
|
|
|
|
|
namespace Luau
|
|
|
|
{
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const Position& position);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const Location& location);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const AstName& name);
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const TypeError& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const TypeMismatch& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const UnknownSymbol& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const UnknownProperty& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const NotATable& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const CannotExtendTable& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const OnlyTablesCanHaveMethods& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const DuplicateTypeDefinition& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const CountMismatch& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const FunctionDoesNotTakeSelf& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const FunctionRequiresSelf& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const OccursCheckFailed& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const UnknownRequire& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const UnknownPropButFoundLikeProp& e);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const GenericError& error);
|
2022-06-24 09:44:07 +08:00
|
|
|
std::ostream& operator<<(std::ostream& lhs, const InternalError& error);
|
2021-10-30 04:25:12 +08:00
|
|
|
std::ostream& operator<<(std::ostream& lhs, const FunctionExitsWithoutReturning& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const MissingProperties& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const IllegalRequire& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const ModuleHasCyclicDependency& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const DuplicateGenericParameter& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const CannotInferBinaryOperation& error);
|
2021-12-11 05:17:10 +08:00
|
|
|
std::ostream& operator<<(std::ostream& lhs, const SwappedGenericTypeParameter& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const OptionalValueAccess& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const MissingUnionProperty& error);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const TypesAreUnrelated& error);
|
2021-10-30 04:25:12 +08:00
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const TableState& tv);
|
2023-01-04 01:33:19 +08:00
|
|
|
std::ostream& operator<<(std::ostream& lhs, const Type& tv);
|
2021-10-30 04:25:12 +08:00
|
|
|
std::ostream& operator<<(std::ostream& lhs, const TypePackVar& tv);
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const TypeErrorData& ted);
|
|
|
|
|
2023-10-21 04:36:26 +08:00
|
|
|
std::ostream& operator<<(std::ostream& lhs, TypeId ty);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, TypePackId tp);
|
|
|
|
|
|
|
|
namespace TypePath
|
|
|
|
{
|
|
|
|
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const Path& path);
|
|
|
|
|
|
|
|
}; // namespace TypePath
|
|
|
|
|
2021-10-30 04:25:12 +08:00
|
|
|
} // namespace Luau
|