Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor primary IDE API | Aleksey Kladov | 2020-02-26 | 1 | -1/+6 |
| | | | | | | | | | | This introduces the new type -- Semantics. Semantics maps SyntaxNodes to various semantic info, such as type, name resolution or macro expansions. To do so, Semantics maintains a HashMap which maps every node it saw to the file from which the node originated. This is enough to get all the necessary hir bits just from syntax. | ||||
* | Fix a crash with non-ascii whitespace in doc-comments | Shotaro Yamada | 2020-02-19 | 1 | -2/+2 |
| | |||||
* | Run cargo +nightly fix --clippy -Z unstable-options | Kirill Bulatov | 2020-02-18 | 4 | -12/+13 |
| | |||||
* | Remove dat FIXME | Veetaha | 2020-02-18 | 1 | -1/+0 |
| | |||||
* | ra_syntax: fix reparsing merging errors, also now reparse_token() reports errors | Veetaha | 2020-02-18 | 1 | -7/+50 |
| | |||||
* | 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 | 3 | -11/+5 |
| | |||||
* | 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 | 8 | -386/+159 |
| | |||||
* | Init implementation of structural search replace | Mikhail Modin | 2020-02-14 | 1 | -1/+1 |
| | |||||
* | Fix the trailing whitespace test | Kirill Bulatov | 2020-02-12 | 1 | -4/+1 |
| | |||||
* | Introduce AttrKind | Kirill Bulatov | 2020-02-12 | 2 | -6/+15 |
| | |||||
* | Do not add imports before inner attributes | Kirill Bulatov | 2020-02-12 | 1 | -0/+9 |
| | |||||
* | Merge #3062 | bors[bot] | 2020-02-11 | 3 | -2/+43 |
|\ | | | | | | | | | | | | | | | | | | | 3062: Implement slice pattern AST > HIR lowering r=jplatte a=jplatte WIP. The necessary changes for parsing are implemented, but actual inference is not yet. Just wanted to upload what I've got so far so it doesn't get duplicated :) Will fix #3043 Co-authored-by: Jonas Platte <[email protected]> | ||||
| * | Implement slice pattern AST > HIR lowering | Jonas Platte | 2020-02-11 | 3 | -2/+43 |
| | | |||||
* | | Add or- and parenthesized-patterns | Matthew Jasper | 2020-02-09 | 1 | -6/+75 |
| | | |||||
* | | Rename add import assist | Kirill Bulatov | 2020-02-07 | 1 | -1/+1 |
|/ | |||||
* | Cleanup early return assist | Aleksey Kladov | 2020-02-07 | 1 | -8/+21 |
| | |||||
* | Generalize invert_if to just always work | Aleksey Kladov | 2020-02-07 | 1 | -1/+5 |
| | |||||
* | A tiny bit more consistent API | Aleksey Kladov | 2020-02-06 | 1 | -1/+1 |
| | |||||
* | Refactor if-let -> match assist to use ast::make | Aleksey Kladov | 2020-02-05 | 2 | -3/+25 |
| | |||||
* | Make sure that newly created nodes are the root of the tree | Aleksey Kladov | 2020-02-04 | 1 | -2/+11 |
| | |||||
* | ra_syntax: added tests for tokenization errors | Veetaha | 2020-02-03 | 2 | -22/+64 |
| | |||||
* | ra_syntax: add backticks around tokens specimen | Veetaha | 2020-02-03 | 1 | -12/+23 |
| | |||||
* | ra_syntax: removed unnecessary init statement from reparsing tests | Veetaha | 2020-02-03 | 1 | -3/+0 |
| | |||||
* | ra_syntax: rename first_token() -> lex_first_token() | Veetaha | 2020-02-03 | 1 | -3/+3 |
| | |||||
* | ra_syntax: fixed a typo in doc comment | Veetaha | 2020-02-03 | 1 | -2/+4 |
| | |||||
* | ra_syntax: refactored the lexer design as per @matklad and @kiljacken PR review | Veetaha | 2020-02-03 | 7 | -173/+193 |
| | |||||
* | ra_syntax: remove backticks from TokenizeError message since that is not ↵ | Veetaha | 2020-02-03 | 1 | -9/+9 |
| | | | | Markdown ;( | ||||
* | add better docs for tokenize errors | Veetaha | 2020-02-03 | 1 | -2/+2 |
| | |||||
* | ra_syntax: moved ParsedToken derive attribute under the doc comment | Veetaha | 2020-02-03 | 1 | -1/+1 |
| | |||||
* | ra_syntax: fixed doc comment | Veetaha | 2020-02-03 | 1 | -1/+1 |
| | |||||
* | Reimplemented lexer with vectors instead of iterators | Veetaha | 2020-02-03 | 8 | -187/+241 |
| | |||||
* | ra_syntax: changed added diagnostics information returned from tokenize() ↵ | Veetaha | 2020-02-03 | 4 | -74/+237 |
| | | | | (implemented with iterators) | ||||
* | Fixed a typo | Veetaha | 2020-01-22 | 1 | -1/+1 |
| | |||||
* | Fixed a typo | Veetaha | 2020-01-22 | 1 | -1/+1 |
| | |||||
* | Preserved a comment on the bug previously present in ast::Literal::kind() | Veetaha | 2020-01-22 | 1 | -0/+5 |
| | |||||
* | ra_syntax: remove code duplication and token reevaluation from ↵ | Veetaha | 2020-01-22 | 1 | -30/+20 |
| | | | | ast::Literal::kind() | ||||
* | changed 'descendants()' to 'children()' | TomasKralCZ | 2020-01-20 | 1 | -4/+1 |
| | |||||
* | added eq_token() method to LetStmt | TomasKralCZ | 2020-01-19 | 1 | -0/+7 |
| | |||||
* | More orthogonal path editing | Aleksey Kladov | 2020-01-15 | 2 | -16/+44 |
| | |||||
* | More fluent API | Aleksey Kladov | 2020-01-15 | 1 | -10/+12 |
| | |||||
* | Slightly more fluent API | Aleksey Kladov | 2020-01-15 | 2 | -14/+14 |
| | |||||
* | Simplify | Aleksey Kladov | 2020-01-15 | 1 | -5/+8 |
| | |||||
* | Simplify | Aleksey Kladov | 2020-01-15 | 1 | -7/+5 |
| | |||||
* | refactor(ra_syntax.validation): removed code duplication from ↵ | Veetaha | 2020-01-14 | 1 | -35/+26 |
| | | | | validate_literal() function |