@@ -451,24 +451,6 @@ class AstExprFunction : public AstExpr
451451 const std::optional<Location>& argLocation = std::nullopt
452452 );
453453
454- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
455- AstExprFunction (
456- const Location& location,
457- const AstArray<AstAttr*>& attributes,
458- const AstArray<AstGenericType*>& generics,
459- const AstArray<AstGenericTypePack*>& genericPacks,
460- AstLocal* self,
461- const AstArray<AstLocal*>& args,
462- bool vararg,
463- const Location& varargLocation,
464- AstStatBlock* body,
465- size_t functionDepth,
466- const AstName& debugname,
467- const std::optional<AstTypeList>& returnAnnotation,
468- AstTypePack* varargAnnotation = nullptr ,
469- const std::optional<Location>& argLocation = std::nullopt
470- );
471-
472454 void visit (AstVisitor* visitor) override ;
473455
474456 bool hasNativeAttribute () const ;
@@ -479,8 +461,6 @@ class AstExprFunction : public AstExpr
479461 AstArray<AstGenericTypePack*> genericPacks;
480462 AstLocal* self;
481463 AstArray<AstLocal*> args;
482- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
483- std::optional<AstTypeList> returnAnnotation_DEPRECATED;
484464 AstTypePack* returnAnnotation = nullptr ;
485465 bool vararg = false ;
486466 Location varargLocation;
@@ -949,7 +929,6 @@ class AstStatDeclareFunction : public AstStat
949929public:
950930 LUAU_RTTI (AstStatDeclareFunction)
951931
952- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
953932 AstStatDeclareFunction (
954933 const Location& location,
955934 const AstName& name,
@@ -963,7 +942,6 @@ class AstStatDeclareFunction : public AstStat
963942 AstTypePack* retTypes
964943 );
965944
966- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
967945 AstStatDeclareFunction (
968946 const Location& location,
969947 const AstArray<AstAttr*>& attributes,
@@ -978,36 +956,6 @@ class AstStatDeclareFunction : public AstStat
978956 AstTypePack* retTypes
979957 );
980958
981- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
982- AstStatDeclareFunction (
983- const Location& location,
984- const AstName& name,
985- const Location& nameLocation,
986- const AstArray<AstGenericType*>& generics,
987- const AstArray<AstGenericTypePack*>& genericPacks,
988- const AstTypeList& params,
989- const AstArray<AstArgumentName>& paramNames,
990- bool vararg,
991- const Location& varargLocation,
992- const AstTypeList& retTypes
993- );
994-
995- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
996- AstStatDeclareFunction (
997- const Location& location,
998- const AstArray<AstAttr*>& attributes,
999- const AstName& name,
1000- const Location& nameLocation,
1001- const AstArray<AstGenericType*>& generics,
1002- const AstArray<AstGenericTypePack*>& genericPacks,
1003- const AstTypeList& params,
1004- const AstArray<AstArgumentName>& paramNames,
1005- bool vararg,
1006- const Location& varargLocation,
1007- const AstTypeList& retTypes
1008- );
1009-
1010-
1011959 void visit (AstVisitor* visitor) override ;
1012960
1013961 bool isCheckedFunction () const ;
@@ -1023,8 +971,6 @@ class AstStatDeclareFunction : public AstStat
1023971 bool vararg = false ;
1024972 Location varargLocation;
1025973 AstTypePack* retTypes;
1026- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
1027- AstTypeList retTypes_DEPRECATED;
1028974};
1029975
1030976struct AstDeclaredExternTypeProperty
@@ -1167,27 +1113,6 @@ class AstTypeFunction : public AstType
11671113 AstTypePack* returnTypes
11681114 );
11691115
1170- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
1171- AstTypeFunction (
1172- const Location& location,
1173- const AstArray<AstGenericType*>& generics,
1174- const AstArray<AstGenericTypePack*>& genericPacks,
1175- const AstTypeList& argTypes,
1176- const AstArray<std::optional<AstArgumentName>>& argNames,
1177- const AstTypeList& returnTypes
1178- );
1179-
1180- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
1181- AstTypeFunction (
1182- const Location& location,
1183- const AstArray<AstAttr*>& attributes,
1184- const AstArray<AstGenericType*>& generics,
1185- const AstArray<AstGenericTypePack*>& genericPacks,
1186- const AstTypeList& argTypes,
1187- const AstArray<std::optional<AstArgumentName>>& argNames,
1188- const AstTypeList& returnTypes
1189- );
1190-
11911116 void visit (AstVisitor* visitor) override ;
11921117
11931118 bool isCheckedFunction () const ;
@@ -1198,8 +1123,6 @@ class AstTypeFunction : public AstType
11981123 AstArray<AstGenericTypePack*> genericPacks;
11991124 AstTypeList argTypes;
12001125 AstArray<std::optional<AstArgumentName>> argNames;
1201- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
1202- AstTypeList returnTypes_DEPRECATED;
12031126 AstTypePack* returnTypes;
12041127};
12051128
0 commit comments