Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/Analysis/include/Luau/IostreamHelpers.h
2727 views
1
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
2
#pragma once
3
4
#include "Luau/Error.h"
5
#include "Luau/Location.h"
6
#include "Luau/Type.h"
7
#include "Luau/Ast.h"
8
#include "Luau/TypePath.h"
9
10
#include <ostream>
11
12
namespace Luau
13
{
14
15
std::ostream& operator<<(std::ostream& lhs, const Position& position);
16
std::ostream& operator<<(std::ostream& lhs, const Location& location);
17
std::ostream& operator<<(std::ostream& lhs, const AstName& name);
18
19
std::ostream& operator<<(std::ostream& lhs, const TypeError& error);
20
std::ostream& operator<<(std::ostream& lhs, const TypeMismatch& error);
21
std::ostream& operator<<(std::ostream& lhs, const UnknownSymbol& error);
22
std::ostream& operator<<(std::ostream& lhs, const UnknownProperty& error);
23
std::ostream& operator<<(std::ostream& lhs, const NotATable& error);
24
std::ostream& operator<<(std::ostream& lhs, const CannotExtendTable& error);
25
std::ostream& operator<<(std::ostream& lhs, const CannotCompareUnrelatedTypes& error);
26
std::ostream& operator<<(std::ostream& lhs, const OnlyTablesCanHaveMethods& error);
27
std::ostream& operator<<(std::ostream& lhs, const DuplicateTypeDefinition& error);
28
std::ostream& operator<<(std::ostream& lhs, const CountMismatch& error);
29
std::ostream& operator<<(std::ostream& lhs, const FunctionDoesNotTakeSelf& error);
30
std::ostream& operator<<(std::ostream& lhs, const FunctionRequiresSelf& error);
31
std::ostream& operator<<(std::ostream& lhs, const OccursCheckFailed& error);
32
std::ostream& operator<<(std::ostream& lhs, const UnknownRequire& error);
33
std::ostream& operator<<(std::ostream& lhs, const UnknownPropButFoundLikeProp& e);
34
std::ostream& operator<<(std::ostream& lhs, const GenericError& error);
35
std::ostream& operator<<(std::ostream& lhs, const InternalError& error);
36
std::ostream& operator<<(std::ostream& lhs, const FunctionExitsWithoutReturning& error);
37
std::ostream& operator<<(std::ostream& lhs, const MissingProperties& error);
38
std::ostream& operator<<(std::ostream& lhs, const IllegalRequire& error);
39
std::ostream& operator<<(std::ostream& lhs, const ModuleHasCyclicDependency& error);
40
std::ostream& operator<<(std::ostream& lhs, const DuplicateGenericParameter& error);
41
std::ostream& operator<<(std::ostream& lhs, const CannotInferBinaryOperation& error);
42
std::ostream& operator<<(std::ostream& lhs, const SwappedGenericTypeParameter& error);
43
std::ostream& operator<<(std::ostream& lhs, const OptionalValueAccess& error);
44
std::ostream& operator<<(std::ostream& lhs, const MissingUnionProperty& error);
45
std::ostream& operator<<(std::ostream& lhs, const TypesAreUnrelated& error);
46
47
std::ostream& operator<<(std::ostream& lhs, const TableState& tv);
48
std::ostream& operator<<(std::ostream& lhs, const Type& tv);
49
std::ostream& operator<<(std::ostream& lhs, const TypePackVar& tv);
50
51
std::ostream& operator<<(std::ostream& lhs, const TypeErrorData& ted);
52
53
std::ostream& operator<<(std::ostream& lhs, TypeId ty);
54
std::ostream& operator<<(std::ostream& lhs, TypePackId tp);
55
56
namespace TypePath
57
{
58
59
std::ostream& operator<<(std::ostream& lhs, const Path& path);
60
61
}; // namespace TypePath
62
63
} // namespace Luau
64
65