We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d35ecd7 commit 88be1a9Copy full SHA for 88be1a9
src/expr.ml
@@ -178,7 +178,11 @@ let rec expand_macros_in_expr
178
in
179
let substituted = List.map body ~f:apply_substitution in
180
(* Recursively expand macros in the substituted body *)
181
- List.concat_map substituted ~f:(expand_macros_in_expr macro_env)
+ let expanded =
182
+ List.concat_map substituted ~f:(expand_macros_in_expr macro_env)
183
+ in
184
+ (* Attach the call site location to the expanded expressions *)
185
+ List.map expanded ~f:(fun e -> { e with loc = expr.loc })
186
| None ->
187
(* Not a macro - recursively expand in sub-expressions *)
188
let expanded_subexprs =
0 commit comments