-
Notifications
You must be signed in to change notification settings - Fork 394
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
111 changed files
with
3,552 additions
and
1,498 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,6 @@ | |
/default.prof* | ||
/fuzz-* | ||
/luau | ||
/luau-tests | ||
/luau-analyze | ||
__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details | ||
#pragma once | ||
|
||
#include "Luau/Substitution.h" | ||
#include "Luau/TxnLog.h" | ||
#include "Luau/TypeVar.h" | ||
|
||
namespace Luau | ||
{ | ||
|
||
// A substitution which replaces the type parameters of a type function by arguments | ||
struct ApplyTypeFunction : Substitution | ||
{ | ||
ApplyTypeFunction(TypeArena* arena) | ||
: Substitution(TxnLog::empty(), arena) | ||
, encounteredForwardedType(false) | ||
{ | ||
} | ||
|
||
// Never set under deferred constraint resolution. | ||
bool encounteredForwardedType; | ||
std::unordered_map<TypeId, TypeId> typeArguments; | ||
std::unordered_map<TypePackId, TypePackId> typePackArguments; | ||
bool ignoreChildren(TypeId ty) override; | ||
bool ignoreChildren(TypePackId tp) override; | ||
bool isDirty(TypeId ty) override; | ||
bool isDirty(TypePackId tp) override; | ||
TypeId clean(TypeId ty) override; | ||
TypePackId clean(TypePackId tp) override; | ||
}; | ||
|
||
} // namespace Luau |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.