Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | allow extracted body to be indented(dedent it) | Vladyslav Katasonov | 2021-02-05 | 1 | -13/+101 |
| | |||||
* | allow transitive `&mut` access for fields in extract_function | Vladyslav Katasonov | 2021-02-05 | 1 | -27/+92 |
| | |||||
* | add tests for extracting if/match/while/for exprs | Vladyslav Katasonov | 2021-02-04 | 1 | -0/+120 |
| | |||||
* | document extract_function assist implementation | Vladyslav Katasonov | 2021-02-04 | 1 | -22/+126 |
| | |||||
* | use `&T` for non copy params of extracted function | Vladyslav Katasonov | 2021-02-04 | 1 | -2/+55 |
| | | | | Use shared ref if param is not `T: Copy` and is used after body | ||||
* | split extract_function into pieces and order them | Vladyslav Katasonov | 2021-02-04 | 1 | -380/+510 |
| | |||||
* | remove ignored test for downgrading mut to shared | Vladyslav Katasonov | 2021-02-03 | 1 | -30/+0 |
| | |||||
* | allow calling `&mut` methods on outer vars when extracing function | Vladyslav Katasonov | 2021-02-03 | 1 | -0/+116 |
| | |||||
* | allow `&mut param` when extracting function | Vladyslav Katasonov | 2021-02-03 | 1 | -3/+107 |
| | | | | | | Recognise &mut as variable modification. This allows extracting functions with `&mut var` with `var` being in outer scope | ||||
* | allow modifications of vars from outer scope inside extracted function | Vladyslav Katasonov | 2021-02-03 | 1 | -45/+336 |
| | | | | | It currently allows only directly setting variable. No `&mut` references or methods. | ||||
* | allow local variables to be used after extracted body | Vladyslav Katasonov | 2021-02-03 | 1 | -41/+183 |
| | | | | | when variable is defined inside extracted body export this variable to original scope via return value(s) | ||||
* | change TODO to FIXME | Vladyslav Katasonov | 2021-02-03 | 1 | -2/+2 |
| | |||||
* | disable test for downgrading mutability on extract | Vladyslav Katasonov | 2021-02-03 | 1 | -0/+3 |
| | |||||
* | convert IdentPat to Pat via Into | Vladyslav Katasonov | 2021-02-03 | 1 | -5/+5 |
| | | | | before child getter was used | ||||
* | support extracting methods; no mut lowering | Vladyslav Katasonov | 2021-02-03 | 1 | -37/+191 |
| | | | | | currently mut refernce will *not* be downgraded to shared if it is sufficient(see relevant test for example) | ||||
* | initial version of extract function assist | Vladyslav Katasonov | 2021-02-03 | 1 | -0/+819 |
there are a few currently limitations: * no modifications of function body * does not handle mutability and references * no method support * may produce incorrect results |