mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
f2e6a8f4a5
This doesn't contain all changes for 507 yet but we might want to do the Luau 0.507 release a bit earlier to end the year sooner. Changes: - Type ascription (::) now permits casts between related types in both directions, allowing to refine or loosen the type (RFC #56) - Fix type definition for tonumber to return number? since the input string isn't guaranteed to contain a valid number - Fix type refinements for field access via [] - Many stability fixes for type checker - Provide extra information in error messages for type mismatches in more cases - Improve performance of type checking for large unions when union members are string literals - Add coverage reporting support to Repl (--coverage command line argument) and lua_getcoverage C API - Work around code signing issues during Makefile builds on macOS - Improve performance of truthiness checks in some cases, particularly on Apple M1, resulting in 10-25% perf gains on qsort benchmark depending on the CPU/compiler - Fix support for little-endian systems; IBM s390x here we go!
51 lines
2.7 KiB
C++
51 lines
2.7 KiB
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/Error.h"
|
|
#include "Luau/Location.h"
|
|
#include "Luau/TypeVar.h"
|
|
#include "Luau/Ast.h"
|
|
|
|
#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);
|
|
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);
|
|
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);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const TableState& tv);
|
|
std::ostream& operator<<(std::ostream& lhs, const TypeVar& tv);
|
|
std::ostream& operator<<(std::ostream& lhs, const TypePackVar& tv);
|
|
|
|
std::ostream& operator<<(std::ostream& lhs, const TypeErrorData& ted);
|
|
|
|
} // namespace Luau
|