aboutsummaryrefslogtreecommitdiff
path: root/crates
Commit message (Collapse)AuthorAgeFilesLines
* Remove skip Delimiter::None and handle DollarsEdwin Cheng2019-04-125-218/+255
|
* Add L_DOLLAR and R_DOLLAREdwin Cheng2019-04-112-0/+6
|
* Merge #1105bors[bot]2019-04-088-231/+683
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1105: [WIP] Implement ra_mbe meta variables support r=matklad a=edwin0cheng This PR implements the following meta variable support in `ra_mba` crate (issue #720): - [x] `path` - [ ] `expr` - [ ] `ty` - [ ] `pat` - [ ] `stmt` - [ ] `block` - [ ] `meta` - [ ] `item` *Implementation Details* In the macro expanding lhs phase, if we see a meta variable type, we try to create a `tt:TokenTree` from the remaining input. And then we use a special set of `ra_parser` to parse it to `SyntaxNode`. Co-authored-by: Edwin Cheng <[email protected]>
| * Refactoring and add some docsEdwin Cheng2019-04-082-83/+106
| |
| * Fixed infintite loop bugEdwin Cheng2019-04-081-30/+4
| |
| * Fixed empty node bugEdwin Cheng2019-04-081-10/+49
| |
| * Use SubtreeWalker instread of flatten TtTokenEdwin Cheng2019-04-084-258/+421
| |
| * Combine all tokensource to one and refactoringEdwin Cheng2019-04-075-86/+94
| |
| * Refactoring subtree_sourceEdwin Cheng2019-04-074-364/+386
| |
| * Add TtCursorTokenSource and TtCursorTokenSinkEdwin Cheng2019-04-064-24/+216
| |
| * Add path test and empty eat_path handlingEdwin Cheng2019-04-063-0/+31
| |
* | Avoid two-phase borrow conflictLaurențiu Nicola2019-04-081-2/+2
| |
* | updated snapshotsLenard Pratt2019-04-076-77/+44
| |
* | Added ArrayExprKind,Lenard Pratt2019-04-075-31/+76
| | | | | | | | | | changed the display for fixed array types, Added Array Enum to ra_hir/expr
* | Added inference of array lengthLenard Pratt2019-04-076-5/+62
| |
* | Merge #1119bors[bot]2019-04-071-6/+10
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1119: Add warning when open file outside workspace r=matklad a=edwin0cheng When file is not found in `ra_vfs` but exist, use `LspError` for warning instead of `error_fmt` to bail out error, Temporarily fix #967 . edit: typo Co-authored-by: Edwin Cheng <[email protected]>
| * | Remove checking file existsEdwin Cheng2019-04-071-13/+6
| | |
| * | fix formattingEdwin Cheng2019-04-071-1/+2
| | |
| * | Add warning when open file outside workspaceEdwin Cheng2019-04-061-5/+15
| |/
* | Rudimentarily autocomplete tuple struct field accessrobojumper2019-04-062-0/+38
| |
* | Parse and infer tuple indicesrobojumper2019-04-0613-14/+210
|/
* Add proper test for literals and fixed typo bugEdwin Cheng2019-04-053-5/+51
|
* Add classify_literal and undo expose next_tokenEdwin Cheng2019-04-055-8/+15
|
* Fix literal support in token tree to ast item listEdwin Cheng2019-04-054-4/+45
|
* Clean upEdwin Cheng2019-04-041-29/+29
|
* Add multi-byte token support in tkn tree to astEdwin Cheng2019-04-042-20/+138
|
* Make robust about target directorypcpthm2019-04-041-4/+1
|
* Merge #1106bors[bot]2019-04-041-1/+1
|\ | | | | | | | | | | | | | | 1106: :arrow_up: salsa r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * :arrow_up: salsaAleksey Kladov2019-04-041-1/+1
| |
* | Merge #1101bors[bot]2019-04-035-6/+95
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1101: Parse unsafe async / const unsafe fns properly r=matklad a=robojumper Also adds tests that `unsafe async fn` as well as `const unsafe fn` parse properly and that these keywords in the reversed order cause parse errors. [Playground link to verify that this is the correct order.](https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=7850b8d92579de31c38f835f76afa4ce) Closes #1086. Co-authored-by: robojumper <[email protected]>
| * | Parse unsafe async / const unsafe fns properlyrobojumper2019-04-035-6/+95
| | |
* | | Merge #1098bors[bot]2019-04-031-1/+46
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 1098: added some docs to public functions r=matklad a=pasa some docs for #961 Co-authored-by: Sergey Parilin <[email protected]>
| * | added some docs to public functionsSergey Parilin2019-04-031-1/+46
| | |
* | | Merge #1068bors[bot]2019-04-039-10/+183
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1068: profiling crate first draft r=matklad a=pasa I've made this first draft for #961 Could you look at it? Is this something what you are looking for? It has lack of tests. I can't figure out how to test stderr output in rust right now. Do you have some clues? Additionally I'm thinking about to implement procedural macros to annotate methods with this profiler. Will it be helpful? Co-authored-by: Sergey Parilin <[email protected]>
| * | Merge remote-tracking branch 'upstream/master' into issue961_profilingSergey Parilin2019-04-0249-1097/+1873
| |\ \
| * | | PR issuse resolvedSergey Parilin2019-04-028-10/+27
| | | |
| * | | some PR issues fixedSergey Parilin2019-03-291-82/+68
| | | |
| * | | profiling crate first draftSergey Parilin2019-03-272-0/+170
| | | |
* | | | Merge #1076bors[bot]2019-04-0210-49/+231
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 1076: Const body inference r=flodiebold a=Lapz This is the second part of #887. I've added type inference on const bodies and introduced the DefWithBody containing Function, Const and Static. I want to add tests but im unsure on how I would go about testing that completions work. Co-authored-by: Lenard Pratt <[email protected]>
| * | | made ExprCollector pub(crate) and movedLenard Pratt2019-04-022-14/+11
| | | | | | | | | | | | | | | | collect_fn_body_syntax
| * | | Added const bodies and static body to the astLenard Pratt2019-04-0210-91/+180
| | | | | | | | | | | | | | | | | | | | | | | | and added inference the inference test reduce code duplication
| * | | Added defWithBodyLenard Pratt2019-03-307-24/+120
| | |/ | |/|
* | | Merge #1093bors[bot]2019-04-027-400/+336
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1093: simplify r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | simplifyAleksey Kladov2019-04-027-400/+336
| | | |
* | | | always produce source for importAleksey Kladov2019-04-026-29/+70
|/ / /
* | | Merge #1090bors[bot]2019-04-02221-8921/+8921
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1090: always show token text r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * | | always show token textAleksey Kladov2019-04-02221-8921/+8921
| | | |
* | | | fix inner block doc commentsAleksey Kladov2019-04-021-1/+1
|/ / /
* | | fix a panic with glob-import missing a source mapAleksey Kladov2019-04-025-23/+26
| | |
* | | add minimal commentsAleksey Kladov2019-04-025-0/+13
| | |