summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin Newton <kddnewton@gmail.com>2024-05-28 12:21:25 -0400
committerKevin Newton <kddnewton@gmail.com>2024-05-28 13:12:21 -0400
commitfd95ba255a413ff02cdc542dd16a2e2901387fc6 (patch)
tree535c07117e2d4632ad3779383ba7465a60926470 /include
parent8f84fbbf968a43c44b34ada601cf2b4a0bfa9d54 (diff)
Make ensure first lineno the first line of the ensure
Previously, ensure ISEQs took their first line number from the line number coming from the AST. However, if this is coming from an empty `begin`..`end` inside of a method, this can be all of the way back to the method declaration. Instead, this commit changes it to be the first line number of the ensure block itself. The first_lineno field is only accessible through manual ISEQ compilation or through tracepoint. Either way, this will be more accurate for targeting going forward.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions