From 19976d5f8336095250309200222e4850ace73d2f Mon Sep 17 00:00:00 2001 From: Joe Savona Date: Fri, 16 Jun 2023 14:42:15 -0700 Subject: [PATCH] [ez] Real location for function context values --- .../packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts b/compiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts index 5fa69ae6b5..358edf0855 100644 --- a/compiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts +++ b/compiler/forget/packages/babel-plugin-react-forget/src/HIR/BuildHIR.ts @@ -70,7 +70,7 @@ export function lower( kind: "Identifier", identifier: builder.resolveBinding(ref), effect: Effect.Unknown, - loc: GeneratedSource, + loc: ref.loc ?? GeneratedSource, }); }