Commit 2b374c0
authored
Don't assume that a method body's file is always the same as the def (#100)
* Don't assume that a method body's file is always the same as the method def
`CodeTracking.whereis` currently assumes that the only thing a LineNumberNode can change
is the line within the function, but that the file is always the same as the file that
the method was defined in (unless there's a macro expansion). That is true for
methods that come from the parser, but not necessarily for those that were generated
programatically, causing `whereis` to return an incorrect file with the correct line
number, causing dowstream issues like JuliaDebug/CassetteOverlay.jl#18.1 parent 9996990 commit 2b374c0
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
| 112 | + | |
112 | 113 | | |
113 | 114 | | |
114 | 115 | | |
115 | | - | |
| 116 | + | |
116 | 117 | | |
117 | | - | |
| 118 | + | |
118 | 119 | | |
119 | | - | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
126 | 129 | | |
127 | 130 | | |
128 | 131 | | |
129 | 132 | | |
130 | | - | |
131 | | - | |
| 133 | + | |
132 | 134 | | |
133 | 135 | | |
134 | 136 | | |
| |||
0 commit comments