Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add std::ops::Index support for infering | Edwin Cheng | 2019-12-19 | 1 | -0/+1 |
| | |||||
* | Rename range to by_kind | Edwin Cheng | 2019-12-18 | 1 | -2/+2 |
| | |||||
* | Add TokenTextRange | Edwin Cheng | 2019-12-18 | 1 | -2/+2 |
| | |||||
* | Add token id to delims | Edwin Cheng | 2019-12-18 | 1 | -3/+11 |
| | |||||
* | Add token ids for all tt::Leaf | Edwin Cheng | 2019-12-18 | 2 | -9/+32 |
| | |||||
* | Merge #2562 | bors[bot] | 2019-12-17 | 1 | -2/+11 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2562: Fix NavigationTarget ranges r=matklad a=edwin0cheng Fix the issue described in https://github.com/rust-analyzer/rust-analyzer/pull/2544#issuecomment-565572553 This PR change the order for finding `full_range` of `focus_range` in following orders: 1. map both ranges to macro_call 2. map focus range to a token inside macro call, and full range to the whole of macro call 3. map both ranges to the whole of macro call And fix the corresponding tests and make these tests easily to follow. Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Re-export Origin to replace ExpansionOrigin | Edwin Cheng | 2019-12-14 | 1 | -13/+7 |
| | | |||||
| * | Fix original_source find order | Edwin Cheng | 2019-12-14 | 1 | -7/+22 |
| | | |||||
* | | Rename N! to name! | Florian Diebold | 2019-12-13 | 3 | -4/+4 |
| | | |||||
* | | Add macros for known names and paths | Florian Diebold | 2019-12-13 | 3 | -91/+117 |
|/ | |||||
* | Merge #2550 | bors[bot] | 2019-12-13 | 1 | -0/+2 |
|\ | | | | | | | | | | | | | | | 2550: Infer - and ! using std::ops::{Neg, Not} r=flodiebold a=kiljacken Found some low hanging fruit while taking a cursory look at index inferring. Co-authored-by: Emil Lauridsen <[email protected]> | ||||
| * | Correctly infer - and ! using std::ops::{Neg,Not} | Emil Lauridsen | 2019-12-13 | 1 | -0/+2 |
| | | |||||
* | | Refactor tt::Delimiter | Edwin Cheng | 2019-12-13 | 1 | -3/+4 |
|/ | |||||
* | Move traits to the new loc | Aleksey Kladov | 2019-12-12 | 1 | -1/+4 |
| | |||||
* | Expand macros in blocks to expressions for now | Florian Diebold | 2019-12-08 | 1 | -2/+2 |
| | | | | Expanding to statements isn't handled properly yet and breaks things. | ||||
* | Fix expansion of format_args | Florian Diebold | 2019-12-08 | 1 | -6/+13 |
| | |||||
* | Remove MacroFileKind | Edwin Cheng | 2019-12-08 | 4 | -25/+46 |
| | |||||
* | Implement ancestors_with_macros in a better way | Florian Diebold | 2019-12-06 | 1 | -0/+21 |
| | |||||
* | Builtin macros only use caller tokens | Florian Diebold | 2019-12-06 | 1 | -2/+2 |
| | |||||
* | Try to make go to definition work in format! | Florian Diebold | 2019-12-06 | 1 | -0/+18 |
| | | | | | | | SourceAnalyzer didn't work properly within expression macro expansions because it didn't find the enclosing function. Fix this by going up the expansion chain to find ancestors. This makes the test work, but apparently in real usage it's still not working. | ||||
* | Implement format_args more properly | Florian Diebold | 2019-12-06 | 1 | -4/+43 |
| | |||||
* | Remove unnecessary len parameter for Name::new_inline_ascii | Florian Diebold | 2019-12-06 | 1 | -59/+59 |
| | | | | | I assume it was previously required because `len` was not const, but that doesn't seem to be a problem anymore. | ||||
* | Add stub implementation of format_args{_nl} macros | Florian Diebold | 2019-12-06 | 2 | -1/+20 |
| | | | | Just enough to fix the huge amount of type mismatches they cause. | ||||
* | Implement all the other built-in derives | Florian Diebold | 2019-12-05 | 2 | -15/+86 |
| | | | | Since as long as we're not implementing the bodies, they all work the same way. | ||||
* | Implement derive(Copy, Clone) properly (well, kind of) | Florian Diebold | 2019-12-05 | 2 | -7/+190 |
| | |||||
* | Add expansion infrastructure for derive macros | Florian Diebold | 2019-12-05 | 7 | -51/+170 |
| | |||||
* | Replace `ra_hir_expand::either` with crate | ice1000 | 2019-12-03 | 3 | -58/+3 |
| | |||||
* | Infer range types | oxalica | 2019-11-28 | 1 | -0/+6 |
| | |||||
* | Use InFile for AstId | Aleksey Kladov | 2019-11-28 | 1 | -35/+4 |
| | |||||
* | Rename Source -> InFile | Aleksey Kladov | 2019-11-28 | 2 | -23/+23 |
| | |||||
* | Hide MacroCallLoc | Edwin Cheng | 2019-11-26 | 1 | -2/+12 |
| | |||||
* | :arrow_up: salsa | Aleksey Kladov | 2019-11-26 | 1 | -0/+4 |
| | |||||
* | Merge #2362 | bors[bot] | 2019-11-25 | 2 | -0/+39 |
|\ | | | | | | | | | | | | | | | 2362: Expand compile_error! r=edwin0cheng a=kjeremy Does not validate that the input is a string literal. I thought that I could `match_ast!` against the `macro_args` but that did not work. Even if it had I am not sure which error would be appropriate. Co-authored-by: Jeremy Kolb <[email protected]> | ||||
| * | Expand compile_error! | Jeremy Kolb | 2019-11-25 | 2 | -0/+39 |
| | | |||||
* | | Fix panic during the expansion of `column!` | Marco Groppo | 2019-11-24 | 1 | -5/+16 |
|/ | |||||
* | Use macro for all the things | Edwin Cheng | 2019-11-23 | 1 | -48/+31 |
| | |||||
* | Rename BuiltinExpander to BuiltinFnLikeExpander | Edwin Cheng | 2019-11-23 | 3 | -14/+14 |
| | |||||
* | Refactor builtin macro | Edwin Cheng | 2019-11-22 | 1 | -18/+124 |
| | |||||
* | Add TestDB | Edwin Cheng | 2019-11-22 | 2 | -0/+53 |
| | |||||
* | Expand column!() | Jeremy Kolb | 2019-11-22 | 2 | -1/+44 |
| | |||||
* | Expand file! to dummy "" | kjeremy | 2019-11-22 | 2 | -1/+26 |
| | |||||
* | Add support for Stringify builtin macro | Piotr Szpetkowski | 2019-11-22 | 2 | -0/+28 |
| | |||||
* | Add MacroFileKind::Statements | Edwin Cheng | 2019-11-21 | 2 | -0/+2 |
| | |||||
* | Rename with_ast -> with_value | Aleksey Kladov | 2019-11-20 | 1 | -4/+4 |
| | |||||
* | Rename Source::ast -> Source::value | Aleksey Kladov | 2019-11-20 | 2 | -17/+21 |
| | |||||
* | Fixed a bug for string lit in quote | Edwin Cheng | 2019-11-19 | 1 | -4/+4 |
| | |||||
* | Collapse TokenMap and RevTokenMap | Aleksey Kladov | 2019-11-18 | 2 | -7/+5 |
| | |||||
* | Token-based reverse-mapping | Aleksey Kladov | 2019-11-18 | 1 | -29/+22 |
| | |||||
* | More correct expansion mapping | Aleksey Kladov | 2019-11-17 | 1 | -14/+30 |
| | | | | We can't really map arbitrary ranges, we only can map tokens | ||||
* | Make shift an implementation detail of mbe | Aleksey Kladov | 2019-11-17 | 2 | -9/+16 |
| |