Questions tagged «refactor»

2
交换函数参数
重构代码时,能够交换函数参数将很有用。 更改为例如: func(foo[0], bar(), baz.spam) 进入 func(baz.spam, foo[0], bar()) 有什么方法可以将参数交换到左侧/右侧,并在函数括号和逗号之间保持适当位置? 请注意,如果您要考虑参数本身就是带有自己的参数的函数调用的参数,则可能会变得很func(baz->spam, foo[0], bar(a, b, c))复杂-例如:-支持这些情况可能会涉及一些更全面的解析。
19 macro  refactor 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.