Update Ast/src/Parser.cpp

Co-authored-by: ariel <aweiss@hey.com>
This commit is contained in:
Jack 2025-03-25 16:49:03 -05:00 committed by GitHub
parent 229a91e8a3
commit 441b5c5986
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -1380,7 +1380,7 @@ AstStat* Parser::parseDeclaration(const Location& start, const AstArray<AstAttr*
// however, we either have { or [ to lint, not the entire table type or the bad indexer.
AstTableIndexer* badIndexer;
if (FFlag::LuauStoreCSTData)
// the last param in the parseTableIndexer is ignored
// the last param in the parseTableIndexer is ignored since FFlagLuauParseStringIndexer is false here
badIndexer = parseTableIndexer(AstTableAccess::ReadWrite, std::nullopt, lexer.current()).node;
else
// the last param in the parseTableIndexer is ignored