Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | More manual clippy fixes | Kirill Bulatov | 2020-02-18 | 31 | -154/+137 |
| | |||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 48 | -149/+132 |
| | |||||
* | Merge #3218 | bors[bot] | 2020-02-18 | 3 | -12/+13 |
|\ | | | | | | | | | | | | | | | 3218: Cut some deps r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]> | ||||
| * | Remove unicase dependency | Aleksey Kladov | 2020-02-18 | 2 | -8/+13 |
| | | |||||
| * | Drop extra deps | Aleksey Kladov | 2020-02-18 | 1 | -4/+0 |
| | | |||||
* | | Remove dat FIXME | Veetaha | 2020-02-18 | 1 | -1/+0 |
| | | |||||
* | | Merge #3026 | bors[bot] | 2020-02-18 | 56 | -650/+452 |
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3026: ra_syntax: reshape SyntaxError for the sake of removing redundancy r=matklad a=Veetaha Followup of #2911, also puts some crosses to the todo list of #223. **AHTUNG!** A big part of the diff of this PR are test data files changes. Simplified `SyntaxError` that was `SyntaxError { kind: { /* big enum */ }, location: Location }` to `SyntaxError(String, TextRange)`. I am not sure whether the tuple struct here is best fit, I am inclined to add names to the fields, because I already provide getters `SyntaxError::message()`, `SyntaxError::range()`. I also removed `Location` altogether ... This is currently WIP, because the following is not done: - [ ] ~~Add tests to `test_data` dir for unescape errors *// I don't know where to put these errors in particular, because they are out of the scope of the lexer and parser. However, I have an idea in mind that we move all validators we have right now to parsing stage, but this is up to discussion...*~~ **[UPD]** I came to a conclusion that tree validation logic, which unescape errors are a part of, should be rethought of, we currently have no tests and no place to put tests for tree validations. So I'd like to extract potential redesign (maybe move of tree validation to ra_parser) and adding tests for this into a separate task. Co-authored-by: Veetaha <[email protected]> Co-authored-by: Veetaha <[email protected]> | ||||
| * | ra_syntax: fix reparsing merging errors, also now reparse_token() reports errors | Veetaha | 2020-02-18 | 1 | -7/+50 |
| | | |||||
| * | ra_syntax: migrate test data to 0-length text-range of SyntaxError when ↵ | Veetaha | 2020-02-17 | 46 | -242/+242 |
| | | | | | | | | constructed from TextUnit | ||||
| * | ra_syntax: remove message() method and use only Display trait in SyntaxError ↵ | Veetaha | 2020-02-17 | 2 | -4/+1 |
| | | | | | | | | as per matklad | ||||
| * | ra_syntax: change module-level documentation for syntax_error to "see X" as ↵ | Veetaha | 2020-02-17 | 1 | -1/+1 |
| | | | | | | | | per matklad | ||||
| * | ra_syntax: followup fix for making SyntaxError::range() to return by value | Veetaha | 2020-02-17 | 1 | -1/+1 |
| | | |||||
| * | ra_syntax: SyntaxError::range() now returns by value | Veetaha | 2020-02-17 | 4 | -12/+6 |
| | | |||||
| * | ra_syntax: moved reexport declaration after imports as per matklad | Veetaha | 2020-02-17 | 1 | -1/+2 |
| | | |||||
| * | ra_syntax: Apply Aleksei Kladov suggestion about TextRange of TextUnit | Veetaha | 2020-02-17 | 1 | -1/+1 |
| | | | | | | Co-Authored-By: Aleksey Kladov <[email protected]> | ||||
| * | Change semmantical analyzis to tree validation as per @matklad | Veetaha | 2020-02-17 | 1 | -1/+1 |
| | | | | | | Co-Authored-By: Aleksey Kladov <[email protected]> | ||||
| * | ra_syntax: reshape SyntaxError for the sake of removing redundancy | Veetaha | 2020-02-17 | 55 | -637/+404 |
| | | |||||
* | | Rename folder | Aleksey Kladov | 2020-02-18 | 25 | -0/+0 |
| | | |||||
* | | Rename the binary to rust-analyzer | Aleksey Kladov | 2020-02-18 | 11 | -22/+22 |
| | | |||||
* | | Fully document ra_lsp_server | Aleksey Kladov | 2020-02-18 | 8 | -11/+20 |
| | | |||||
* | | Refactor | Aleksey Kladov | 2020-02-18 | 2 | -52/+52 |
| | | |||||
* | | Reduce visibility | Aleksey Kladov | 2020-02-18 | 1 | -6/+9 |
| | | |||||
* | | Refactor | Aleksey Kladov | 2020-02-18 | 2 | -4/+3 |
| | | |||||
* | | Some docs | Aleksey Kladov | 2020-02-18 | 7 | -15/+23 |
| | | |||||
* | | Better folder structure | Aleksey Kladov | 2020-02-18 | 3 | -0/+5 |
| | | |||||
* | | Simplify the command execution | Kirill Bulatov | 2020-02-17 | 1 | -34/+28 |
| | | |||||
* | | Simplify the code further | Kirill Bulatov | 2020-02-17 | 1 | -45/+35 |
| | | |||||
* | | Idempotent location and installation of rust src | Kirill Bulatov | 2020-02-17 | 1 | -47/+56 |
| | | |||||
* | | Install rust-src when it is not found | Kirill Bulatov | 2020-02-17 | 1 | -8/+31 |
|/ | |||||
* | Replace ra_cli mentions | Laurențiu Nicola | 2020-02-17 | 2 | -9/+9 |
| | |||||
* | Merge ra_vfs_glob and ra_lsp_server | Aleksey Kladov | 2020-02-17 | 8 | -16/+11 |
| | |||||
* | Merge cli and ra_lsp_server | Aleksey Kladov | 2020-02-17 | 10 | -181/+182 |
| | |||||
* | Use anyhow | Aleksey Kladov | 2020-02-17 | 4 | -14/+15 |
| | |||||
* | Cleanup | Aleksey Kladov | 2020-02-17 | 2 | -73/+68 |
| | |||||
* | Better name | Aleksey Kladov | 2020-02-17 | 1 | -2/+2 |
| | |||||
* | More precise types | Aleksey Kladov | 2020-02-17 | 1 | -12/+15 |
| | |||||
* | Unify verbosity handling | Aleksey Kladov | 2020-02-17 | 2 | -22/+22 |
| | |||||
* | Move interesting stuff to main | Aleksey Kladov | 2020-02-17 | 1 | -40/+35 |
| | |||||
* | Stronger Types | Aleksey Kladov | 2020-02-17 | 1 | -5/+5 |
| | |||||
* | Refactor arg parsing | Aleksey Kladov | 2020-02-17 | 1 | -115/+169 |
| | |||||
* | Sort deps | Aleksey Kladov | 2020-02-17 | 1 | -14/+15 |
| | |||||
* | Inline ra_batch | Aleksey Kladov | 2020-02-17 | 6 | -32/+17 |
| | |||||
* | Cleanup imports | Aleksey Kladov | 2020-02-17 | 1 | -3/+2 |
| | |||||
* | Inline help | Aleksey Kladov | 2020-02-17 | 2 | -82/+96 |
| | |||||
* | Use Arguments::from_os | Aleksey Kladov | 2020-02-17 | 1 | -9/+3 |
| | |||||
* | Drop proptest tests | Aleksey Kladov | 2020-02-17 | 7 | -206/+2 |
| | | | | | | | It takes waaay to long to compile. We should add quickcheck tests when we touch the relevant code next time. | ||||
* | Merge #3169 | bors[bot] | 2020-02-17 | 5 | -14/+111 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3169: Show record field names in Enum completion r=flodiebold a=adamrk Adresses https://github.com/rust-analyzer/rust-analyzer/issues/2947. Previously the details shown when autocompleting an Enum variant would look like the variant was a tuple even if it was a record: ![2020-02-16-15:59:32_crop](https://user-images.githubusercontent.com/16367467/74607233-64f21980-50d7-11ea-99db-e973e29c71d7.png) This change will show the names of the fields for a record and use curly braces instead of parentheses: ![2020-02-16-15:33:00_crop](https://user-images.githubusercontent.com/16367467/74607251-8ce17d00-50d7-11ea-9d4d-38d198a4aec0.png) This required exposing the type `adt::StructKind` from `ra_hir` and adding a function ``` kind(self, db: &impl HirDatabase) -> StructKind ``` in the `impl` of `EnumVariant`. There was also a previously existing function `is_unit(self, db: &impl HirDatabase) -> bool` for `EnumVariant` which I removed because it seemed redundant after adding `kind`. Co-authored-by: adamrk <[email protected]> | ||||
| * | use 'if let' instead of match on kind in lower.rs | adamrk | 2020-02-17 | 1 | -6/+4 |
| | | |||||
| * | add space before/after wrapping braces | adamrk | 2020-02-16 | 1 | -2/+2 |
| | | |||||
| * | replace uses of VariantData::is_unit with VariantData::kind | adamrk | 2020-02-16 | 2 | -10/+7 |
| | |