@@ -25489,10 +25489,6 @@ function isReorderableExpression(builder, expr, allowLocalIdentifiers) {
25489
25489
return true;
25490
25490
}
25491
25491
}
25492
- case 'TSInstantiationExpression': {
25493
- const innerExpr = expr.get('expression');
25494
- return isReorderableExpression(builder, innerExpr, allowLocalIdentifiers);
25495
- }
25496
25492
case 'RegExpLiteral':
25497
25493
case 'StringLiteral':
25498
25494
case 'NumericLiteral':
@@ -32159,7 +32155,6 @@ const EnvironmentConfigSchema = zod.z.object({
32159
32155
enableCustomTypeDefinitionForReanimated: zod.z.boolean().default(false),
32160
32156
hookPattern: zod.z.string().nullable().default(null),
32161
32157
enableTreatRefLikeIdentifiersAsRefs: zod.z.boolean().default(true),
32162
- enableTreatSetIdentifiersAsStateSetters: zod.z.boolean().default(false),
32163
32158
lowerContextAccess: ExternalFunctionSchema.nullable().default(null),
32164
32159
validateNoVoidUseMemo: zod.z.boolean().default(false),
32165
32160
validateNoDynamicallyCreatedComponentsOrHooks: zod.z.boolean().default(false),
@@ -41670,9 +41665,7 @@ function computeSignatureForInstruction(context, env, instr) {
41670
41665
}
41671
41666
case 'PropertyStore':
41672
41667
case 'ComputedStore': {
41673
- const mutationReason = value.kind === 'PropertyStore' &&
41674
- value.property === 'current' &&
41675
- value.object.identifier.type.kind === 'Type'
41668
+ const mutationReason = value.kind === 'PropertyStore' && value.property === 'current'
41676
41669
? { kind: 'AssignCurrentProperty' }
41677
41670
: null;
41678
41671
effects.push({
@@ -48015,16 +48008,9 @@ function* generateInstructionTypes(env, names, instr) {
48015
48008
}
48016
48009
case 'CallExpression': {
48017
48010
const returnType = makeType();
48018
- let shapeId = null;
48019
- if (env.config.enableTreatSetIdentifiersAsStateSetters) {
48020
- const name = getName(names, value.callee.identifier.id);
48021
- if (name.startsWith('set')) {
48022
- shapeId = BuiltInSetStateId;
48023
- }
48024
- }
48025
48011
yield equation(value.callee.identifier.type, {
48026
48012
kind: 'Function',
48027
- shapeId,
48013
+ shapeId: null ,
48028
48014
return: returnType,
48029
48015
isConstructor: false,
48030
48016
});
0 commit comments