mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-19 19:23:49 +01:00
Fix the actual unused variable in Parser.cpp
This commit is contained in:
parent
b286f6b5a3
commit
6cf75db7f2
1 changed files with 0 additions and 5 deletions
|
@ -2379,15 +2379,12 @@ AstArray<AstTypeOrPack> Parser::parseTypeParams()
|
||||||
Lexeme begin = lexer.current();
|
Lexeme begin = lexer.current();
|
||||||
nextLexeme();
|
nextLexeme();
|
||||||
|
|
||||||
bool seenPack = false;
|
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
if (FFlag::LuauParseTypePackTypeParameters)
|
if (FFlag::LuauParseTypePackTypeParameters)
|
||||||
{
|
{
|
||||||
if (shouldParseTypePackAnnotation(lexer))
|
if (shouldParseTypePackAnnotation(lexer))
|
||||||
{
|
{
|
||||||
seenPack = true;
|
|
||||||
|
|
||||||
auto typePack = parseTypePackAnnotation();
|
auto typePack = parseTypePackAnnotation();
|
||||||
|
|
||||||
if (FFlag::LuauTypeAliasPacks) // Type packs are recorded only is we can handle them
|
if (FFlag::LuauTypeAliasPacks) // Type packs are recorded only is we can handle them
|
||||||
|
@ -2399,8 +2396,6 @@ AstArray<AstTypeOrPack> Parser::parseTypeParams()
|
||||||
|
|
||||||
if (typePack)
|
if (typePack)
|
||||||
{
|
{
|
||||||
seenPack = true;
|
|
||||||
|
|
||||||
if (FFlag::LuauTypeAliasPacks) // Type packs are recorded only is we can handle them
|
if (FFlag::LuauTypeAliasPacks) // Type packs are recorded only is we can handle them
|
||||||
parameters.push_back({{}, typePack});
|
parameters.push_back({{}, typePack});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue