Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Align grammar for record patterns and literals | Aleksey Kladov | 2020-04-11 | 1 | -0/+9 |
| | | | | | | The grammar now looks like this [name_ref :] pat | ||||
* | Forward compat | Aleksey Kladov | 2020-04-10 | 1 | -1/+1 |
| | |||||
* | Improve tt::Subtree debug print | Edwin Cheng | 2020-04-09 | 1 | -1/+1 |
| | |||||
* | Fix unnecessary braces warnings | Laurențiu Nicola | 2020-04-06 | 1 | -3/+3 |
| | |||||
* | Implement ra_proc_macro client logic | Edwin Cheng | 2020-03-31 | 1 | -1/+26 |
| | |||||
* | Merge #3727 | bors[bot] | 2020-03-26 | 1 | -15/+14 |
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | 3727: Introduce ra_proc_macro r=matklad a=edwin0cheng This PR implemented: 1. Reading dylib path of proc-macro crate from cargo check , similar to how `OUTDIR` is obtained. 2. Added a new crate `ra_proc_macro` and implement the foot-work for reading result from external proc-macro expander. 3. Added a struct `ProcMacroClient` , which will be responsible to the client side communication to the External process. Co-authored-by: Edwin Cheng <[email protected]> | ||||
| * | Remove deps on tt_mbe | Edwin Cheng | 2020-03-26 | 1 | -2/+3 |
| | | |||||
| * | Add ProcMacroClient | Edwin Cheng | 2020-03-25 | 1 | -16/+14 |
| | | |||||
* | | Get rid of ItemOrMacro | Aleksey Kladov | 2020-03-26 | 1 | -2/+0 |
|/ | |||||
* | Rename to CustomDerive | Edwin Cheng | 2020-03-25 | 4 | -4/+4 |
| | |||||
* | Refactoring a bit | Edwin Cheng | 2020-03-25 | 1 | -5/+5 |
| | |||||
* | Use dummy implementation | Edwin Cheng | 2020-03-25 | 1 | -2/+3 |
| | |||||
* | Add basic custom derive lowering | Edwin Cheng | 2020-03-25 | 6 | -19/+63 |
| | |||||
* | Generalise syntax rewriting infrastructure to allow removal of nodes | Aleksey Kladov | 2020-03-24 | 1 | -10/+7 |
| | |||||
* | Fix typo | Edwin Cheng | 2020-03-21 | 1 | -1/+1 |
| | |||||
* | Add identity expansion checking | Edwin Cheng | 2020-03-21 | 1 | -3/+21 |
| | |||||
* | Simplify Arena to use a generic index | Aleksey Kladov | 2020-03-19 | 1 | -5/+3 |
| | |||||
* | Turn ExpandResult into struct | Florian Diebold | 2020-03-16 | 1 | -8/+4 |
| | |||||
* | Add test, remove printlns | Florian Diebold | 2020-03-16 | 1 | -1/+0 |
| | |||||
* | wip | Florian Diebold | 2020-03-16 | 1 | -6/+10 |
| | |||||
* | Make MBE expansion more resilient (WIP) | Florian Diebold | 2020-03-16 | 1 | -41/+49 |
| | |||||
* | Use `dyn Trait` for working with databse | Aleksey Kladov | 2020-03-16 | 4 | -8/+8 |
| | | | | | | | It improves compile time in `--release` mode quite a bit, it doesn't really slow things down and, conceptually, it seems closer to what we want the physical architecture to look like (we don't want to monomorphise EVERYTHING in a single leaf crate). | ||||
* | ra_hir_expand: change the ordering of imports as per the formatter | Veetaha | 2020-03-15 | 1 | -1/+1 |
| | |||||
* | ra_hir_expand: migrate to impl_intern_key!() | Veetaha | 2020-03-15 | 1 | -17/+3 |
| | |||||
* | Update comment | Edwin Cheng | 2020-03-11 | 1 | -4/+4 |
| | | | | Co-Authored-By: bjorn3 <[email protected]> | ||||
* | Implement dummy assert macro | Edwin Cheng | 2020-03-11 | 3 | -0/+58 |
| | |||||
* | Add extern source | Edwin Cheng | 2020-03-11 | 1 | -1/+2 |
| | |||||
* | Add and fix tests | Edwin Cheng | 2020-03-10 | 1 | -60/+121 |
| | |||||
* | Add resolve_extern_path in DB | Edwin Cheng | 2020-03-10 | 1 | -1/+8 |
| | |||||
* | Merge #3513 | bors[bot] | 2020-03-09 | 1 | -4/+67 |
|\ | | | | | | | | | | | | | | | | | | | | | 3513: Completion in macros r=matklad a=flodiebold I experimented a bit with completion in macros. It's kind of working, but there are a lot of rough edges. - I'm trying to expand the macro call with the inserted fake token. This requires some hacky additions on the HIR level to be able to do "hypothetical" expansions. There should probably be a nicer API for this, if we want to do it this way. I'm not sure whether it's worth it, because we still can't do a lot if the original macro call didn't expand in nearly the same way. E.g. if we have something like `println!("", x<|>)` the expansions will look the same and everything is fine; but in that case we could maybe have achieved the same result in a simpler way. If we have something like `m!(<|>)` where `m!()` doesn't even expand or expands to something very different, we don't really know what to do anyway. - Relatedly, there are a lot of cases where this doesn't work because either the original call or the hypothetical call doesn't expand. E.g. if we have `m!(x.<|>)` the original token tree doesn't parse as an expression; if we have `m!(match x { <|> })` the hypothetical token tree doesn't parse. It would be nice if we could have better error recovery in these cases. Co-authored-by: Florian Diebold <[email protected]> | ||||
| * | Move hypothetical expansion to hir_expand | Florian Diebold | 2020-03-08 | 2 | -17/+35 |
| | | |||||
| * | Remove TODOs | Florian Diebold | 2020-03-07 | 1 | -5/+6 |
| | | |||||
| * | Try to complete within macros | Florian Diebold | 2020-03-07 | 2 | -9/+53 |
| | | |||||
* | | Add parse_to_token_tree | Edwin Cheng | 2020-03-08 | 1 | -4/+4 |
|/ | |||||
* | Prevent include! macro include itself | Edwin Cheng | 2020-03-07 | 1 | -1/+6 |
| | |||||
* | Fix test and add more comment | Edwin Cheng | 2020-03-07 | 1 | -1/+4 |
| | |||||
* | Use a not so dummy implementation of env macro | Edwin Cheng | 2020-03-07 | 1 | -1/+1 |
| | |||||
* | Implment include macro | Edwin Cheng | 2020-03-06 | 3 | -19/+62 |
| | |||||
* | Add comment for parents logging | Edwin Cheng | 2020-03-04 | 1 | -7/+12 |
| | |||||
* | Fix whitespace in tests | Edwin Cheng | 2020-03-04 | 2 | -3/+3 |
| | |||||
* | Fix #3436 | Edwin Cheng | 2020-03-04 | 1 | -6/+2 |
| | |||||
* | Add more log | Edwin Cheng | 2020-03-04 | 1 | -0/+9 |
| | |||||
* | Fixed a typo in comment | Edwin Cheng | 2020-03-03 | 1 | -1/+1 |
| | |||||
* | Fix panic on eager expansion | Edwin Cheng | 2020-03-03 | 1 | -2/+18 |
| | |||||
* | Fix for rebasing | Edwin Cheng | 2020-03-03 | 1 | -3/+14 |
| | |||||
* | Move pub function first | Edwin Cheng | 2020-03-03 | 1 | -24/+24 |
| | |||||
* | Add doc about eager expansion name resolution | Edwin Cheng | 2020-03-03 | 1 | -0/+19 |
| | |||||
* | Implement concat macro | Edwin Cheng | 2020-03-03 | 7 | -70/+279 |
| | |||||
* | Add LazyMacroId | Edwin Cheng | 2020-03-03 | 5 | -16/+56 |
| | |||||
* | Fix a bug for single dollar sign macro | Edwin Cheng | 2020-03-03 | 1 | -5/+10 |
| |