@@ -451,24 +451,6 @@ class AstExprFunction : public AstExpr
451
451
const std::optional<Location>& argLocation = std::nullopt
452
452
);
453
453
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
-
472
454
void visit (AstVisitor* visitor) override ;
473
455
474
456
bool hasNativeAttribute () const ;
@@ -479,8 +461,6 @@ class AstExprFunction : public AstExpr
479
461
AstArray<AstGenericTypePack*> genericPacks;
480
462
AstLocal* self;
481
463
AstArray<AstLocal*> args;
482
- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
483
- std::optional<AstTypeList> returnAnnotation_DEPRECATED;
484
464
AstTypePack* returnAnnotation = nullptr ;
485
465
bool vararg = false ;
486
466
Location varargLocation;
@@ -949,7 +929,6 @@ class AstStatDeclareFunction : public AstStat
949
929
public:
950
930
LUAU_RTTI (AstStatDeclareFunction)
951
931
952
- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
953
932
AstStatDeclareFunction (
954
933
const Location& location,
955
934
const AstName& name,
@@ -963,7 +942,6 @@ class AstStatDeclareFunction : public AstStat
963
942
AstTypePack* retTypes
964
943
);
965
944
966
- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
967
945
AstStatDeclareFunction (
968
946
const Location& location,
969
947
const AstArray<AstAttr*>& attributes,
@@ -978,36 +956,6 @@ class AstStatDeclareFunction : public AstStat
978
956
AstTypePack* retTypes
979
957
);
980
958
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
-
1011
959
void visit (AstVisitor* visitor) override ;
1012
960
1013
961
bool isCheckedFunction () const ;
@@ -1023,8 +971,6 @@ class AstStatDeclareFunction : public AstStat
1023
971
bool vararg = false ;
1024
972
Location varargLocation;
1025
973
AstTypePack* retTypes;
1026
- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
1027
- AstTypeList retTypes_DEPRECATED;
1028
974
};
1029
975
1030
976
struct AstDeclaredExternTypeProperty
@@ -1167,27 +1113,6 @@ class AstTypeFunction : public AstType
1167
1113
AstTypePack* returnTypes
1168
1114
);
1169
1115
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
-
1191
1116
void visit (AstVisitor* visitor) override ;
1192
1117
1193
1118
bool isCheckedFunction () const ;
@@ -1198,8 +1123,6 @@ class AstTypeFunction : public AstType
1198
1123
AstArray<AstGenericTypePack*> genericPacks;
1199
1124
AstTypeList argTypes;
1200
1125
AstArray<std::optional<AstArgumentName>> argNames;
1201
- // Clip with FFlagLuauStoreReturnTypesAsPackOnAst
1202
- AstTypeList returnTypes_DEPRECATED;
1203
1126
AstTypePack* returnTypes;
1204
1127
};
1205
1128
0 commit comments