aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * change to `TextEdit` to avoid allocation and sortBernardo2018-12-253-57/+51
| | | | | | | | rename newline to step where applicable
| * remove benchmark and simplify testsBernardo2018-12-257-381/+69
| |
| * use new translate_offset_with_edit for TryConvWithBernardo2018-12-254-37/+5
| | | | | | | | doc comments
| * add line_index proptestBernardo2018-12-252-106/+132
| |
| * make criterion args work, small simplificationBernardo2018-12-253-18/+18
| |
| * fix arbitrary offset generation, col translation workingBernardo2018-12-252-39/+92
| |
| * column translation implemented but not quite working yetBernardo2018-12-253-50/+70
| |
| * iterate over `Step`s which are either, newlines or multibyte charsBernardo2018-12-252-26/+121
| |
| * simplify newline check with macroBernardo2018-12-251-20/+14
| |
| * remove slower impl, add benchmarksBernardo2018-12-256-201/+304
| |
| * final iteration, faster a bit simplerBernardo2018-12-251-171/+209
| | | | | | | | the main thing is we iterate over inserted newlines at once for each edit
| * simplified versionBernardo2018-12-251-0/+139
| |
| * move translate_offset_with_edit to ra_editorBernardo2018-12-257-311/+268
| |
| * initial newline translation workingBernardo2018-12-252-14/+262
| | | | | | | | | | | | todo: cleanup, simplify handle columns
| * test translate_offset_with_edit against simple impl for single editsBernardo2018-12-256-35/+104
| |
| * simplify and reduce number of values exploredBernardo2018-12-251-29/+23
| |
| * proptest strategies for TextUnit and AtomTextEditBernardo2018-12-254-0/+184
| |
* | Merge #339bors[bot]2018-12-2714-376/+354
|\ \ | | | | | | | | | | | | | | | | | | | | | 339: Fix assertion error for literals with suffixes r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | fix suffix rangesAleksey Kladov2018-12-276-4/+95
| | |
| * | dump validation errorsAleksey Kladov2018-12-271-2/+5
| | |
| * | support literal suffixesAleksey Kladov2018-12-277-2/+40
| | |
| * | dedupe literal parsersAleksey Kladov2018-12-2710-374/+220
|/ /
* | Merge #337bors[bot]2018-12-272-34/+30
|\ \ | | | | | | | | | | | | | | | | | | | | | 337: check edits in diagnostics r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | check edits in diagnosticsAleksey Kladov2018-12-272-34/+30
|/ /
* | Merge #332bors[bot]2018-12-2730-318/+1518
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 332: Struct types r=matklad a=flodiebold Infer types for struct fields, and add basic field completions. There's also some code for enums, but I focused on getting structs working. There's still ways to go before this becomes useful: There's no autoderef (or even reference types) and no inference for `self`, for example. Co-authored-by: Florian Diebold <[email protected]>
| * | Resolve field types lazilyFlorian Diebold2018-12-257-59/+76
| | | | | | | | | | | | I.e. not already when getting the HIR for the struct.
| * | Add a hir::TypeRef as an intermediate between ast::TypeRef and ty::TyFlorian Diebold2018-12-2510-95/+219
| | |
| * | Implement reference / pointer typesFlorian Diebold2018-12-257-23/+173
| | | | | | | | | | | | | | | - parse them - infer types of & and * expressions
| * | Handle structs/enums with missing names a bit betterFlorian Diebold2018-12-252-20/+22
| | |
| * | Determine receiver for completion in a more robust wayFlorian Diebold2018-12-252-21/+31
| | | | | | | | | | | | Also rename a parameter.
| * | CleanupFlorian Diebold2018-12-251-125/+37
| | |
| * | Add . to trigger charactersFlorian Diebold2018-12-251-1/+1
| | |
| * | Implement basic completion for fieldsFlorian Diebold2018-12-2510-12/+156
| | |
| * | Improve parsing of incomplete field accesses in preparation for field completionFlorian Diebold2018-12-253-9/+45
| | | | | | | | | | | | | | | We need to be able to get the receiver even if there is no field name yet, and currently "a." wouldn't get parsed as a field name at all. This seems to help.
| * | Type field accessesFlorian Diebold2018-12-255-5/+54
| | |
| * | Collect field data for structs/enum variantsFlorian Diebold2018-12-255-12/+87
| | |
| * | Add AST definitions for struct/variant fields etc.Florian Diebold2018-12-253-12/+256
| | | | | | | | | | | | Fixes #117
| * | Infer result of struct literals, and recurse into their child expressionsFlorian Diebold2018-12-256-49/+143
| | |
| * | Do name resolution by namespace (types/values)Florian Diebold2018-12-2510-84/+212
| | |
| * | Add basic HIR and types for structs/enumsFlorian Diebold2018-12-259-29/+244
| |/
* | Merge #336bors[bot]2018-12-275-15/+92
|\ \ | | | | | | | | | | | | | | | | | | | | | 336: add cancelation module & cancelation backtraces r=matklad a=matklad This is primaraly to debug semengly spurious canceled requests Co-authored-by: Aleksey Kladov <[email protected]>
| * | add cancelation module & cancelation backtracesAleksey Kladov2018-12-275-15/+92
|/ /
* | fix the testAleksey Kladov2018-12-271-2/+2
| |
* | expose make_pub_crate actionAleksey Kladov2018-12-271-0/+1
| |
* | Merge #334bors[bot]2018-12-273-13/+43
|\ \ | | | | | | | | | | | | | | | | | | | | | 334: use a::b::{self} should be fixed as use a::b instead of use a::b::self r=matklad a=gfreezy Co-authored-by: gfreezy <[email protected]>
| * | fix use std::{self}gfreezy2018-12-263-13/+43
| | |
* | | Merge #333bors[bot]2018-12-265-61/+68
|\| | | |/ |/| | | | | | | | | | | | | | | | | | | | | 333: Fix unnecessary braces r=matklad a=gfreezy ![image](https://user-images.githubusercontent.com/510012/50425015-c8086780-08a9-11e9-995f-d107d6880fa3.png) don't know why the underscore line is not covering the whole braces. fix #324 Co-authored-by: gfreezy <[email protected]>
| * fix testsgfreezy2018-12-251-1/+1
| |
| * add fix for removing unnecessary braces in use statementsgfreezy2018-12-255-61/+68
|/
* Merge #331bors[bot]2018-12-251-1/+1
|\ | | | | | | | | | | | | | | 331: Cancelled is not Copy r=matklad a=matklad I'd love to have a backtrace in `Cancelled` to be able to debug "completion is always cancelled" problem. So it probably is a good idea to make `Cancelled` non Copy type, even if it is a ZST in prod. Co-authored-by: Aleksey Kladov <[email protected]>