Conversation
|
xref: JunoLab/atom-julia-client#641 |
|
Here are some edge cases I've noticed but still I'm not sure about how to handle. local refactoringIf we have the code like: function outer()
val = 10
function inner(val)
2 * val
end
return inner(val)
endand we refactor on global refactoringIf a module contains code like: function fun() end
function other()
fun = 10
endand we rename |
|
I agree the logic inside Lines 18 to 77 in 86b3b2c |
Codecov Report
@@ Coverage Diff @@
## master #203 +/- ##
==========================================
- Coverage 55.18% 48.71% -6.48%
==========================================
Files 42 42
Lines 2399 2184 -215
==========================================
- Hits 1324 1064 -260
- Misses 1075 1120 +45
Continue to review full report at Codecov.
|
5b337ef to
a7628b0
Compare
a7628b0 to
3fdee8e
Compare
7d168ed to
32d6004
Compare
|
Both of these edge cases should be avoidable by checking each new local scope for assignments that shadow a global, right? We already should have the logic for that. |
|
We'll also need to think about proper UIs for all of this, especially the global refactors. I'd love to reuse So we could/should build one ourselves and ideally make it reuseable for something like this. |
32d6004 to
54c40e1
Compare
Yeah, would be great to have, and I'm willing to implement that. |
aviatesk
left a comment
There was a problem hiding this comment.
Needs MikeInnes/SourceWalk.jl#1 to be merged for this to work.
14aac41 to
075c2ee
Compare
7fadc7d to
b5cea9c
Compare
b5cea9c to
2318825
Compare
2318825 to
84be229
Compare
84be229 to
dc8022a
Compare
dc8022a to
8c5f32d
Compare
Purpose
Implement rename refactoring command:
Approach
Task / Achievements
Atom.isdebugging(),Base.countlines(args...)