Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Commit a5b54ff

Browse files
committed
Fix location of foo["abc']
1 parent ccd4e3d commit a5b54ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/res_core.ml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1974,7 +1974,7 @@ and parseBracketAccess p expr startPos =
19741974
let rbracket = p.prevEndPos in
19751975
let e =
19761976
let identLoc = mkLoc stringStart stringEnd in
1977-
let loc = mkLoc lbracket rbracket in
1977+
let loc = mkLoc startPos rbracket in
19781978
Ast_helper.Exp.send ~loc expr (Location.mkloc s identLoc)
19791979
in
19801980
let e = parsePrimaryExpr ~operand:e p in

0 commit comments

Comments
 (0)