aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* remove dead codeAleksey Kladov2019-04-011-7/+0
|
* switch to new rowanAleksey Kladov2019-04-011-85/+161
|
* Add WherePred to allow predicate access in WhereClauseVille Penttinen2019-03-311-0/+67
| | | | | This also unifies parsing of WHERE_PRED bounds, now Lifetime bounds will also be parsed using TYPE_BOUND_LIST
* Add trait ast::TypeBoundsOwnerVille Penttinen2019-03-311-0/+6
|
* simplifyAleksey Kladov2019-03-251-37/+34
|
* Target only the actual operator.Marco Groppo2019-03-241-33/+45
| | | | | Renamed `BinExpr::op()` and `PrefixExpr::op()` to `op_kind`. Now `op()` returns the `SyntaxNode`.
* add name resolution from the old implAleksey Kladov2019-03-171-6/+3
| | | | unlike the old impl, this also handles macro imports across crates
* Add new trait TypeAscriptionOwnerVille Penttinen2019-02-261-0/+6
| | | | | This trait should be implemented for nodes which have an ascribed type, e.g. thing : Type. Such as let, const, static, param, named struct fields.
* complete struct literalsAleksey Kladov2019-02-241-0/+6
|
* docsAleksey Kladov2019-02-211-0/+1
|
* handle != operatorAleksey Kladov2019-02-181-1/+4
|
* Enable parsing of attributes inside a match blockVille Penttinen2019-02-171-0/+14
| | | | | | | We allow invalid inner attributes to be parsed, e.g. inner attributes that are not directly after the opening brace of the match block. Instead we run validation on `MatchArmList` to allow better reporting of errors.
* rename yellow -> syntax_nodeAleksey Kladov2019-02-121-1/+1
| | | | why yellow in the first place? Its red + green.
* reformat the worldAleksey Kladov2019-02-081-27/+10
|
* Fill deprecation for LSPkjeremy2019-02-051-0/+10
|
* Merge #662bors[bot]2019-01-271-13/+62
|\ | | | | | | | | | | | | | | 662: Preserve indentation in doc comments r=matklad a=kjeremy Fixes #502 Co-authored-by: Jeremy Kolb <[email protected]>
| * Make doc comments optionalJeremy Kolb2019-01-261-5/+24
| |
| * Do not unconditionally trim commentsJeremy Kolb2019-01-261-2/+1
| |
| * Preserve indentation in doc commentsJeremy Kolb2019-01-261-9/+40
| |
* | fix AST for if expressionsAleksey Kladov2019-01-261-2/+16
|/ | | | then is not always a block...
* rename POS_FIELD -> POS_FIELD_DEFAleksey Kladov2019-01-251-2/+2
| | | | to match NAMED_FIELD_DEF
* Merge #633bors[bot]2019-01-241-2/+3
|\ | | | | | | | | | | | | | | 633: use ToOwned trait instead of inherent method r=matklad a=matklad Co-authored-by: Aleksey Kladov <[email protected]>
| * use ToOwned trait instead of inherent methodAleksey Kladov2019-01-241-2/+3
| |
* | migrate enums to new idAleksey Kladov2019-01-241-0/+7
|/
* fix completion bugsgfreezy2019-01-231-0/+7
|
* Move parsing of field pattern lists to the parser (where it belongs)Marcus Klaas de Vries2019-01-191-49/+0
|
* Add initial (flawed) implementation of binding annotationsMarcus Klaas de Vries2019-01-191-0/+10
|
* Implement unlabeled struct field pattern inferenceMarcus Klaas de Vries2019-01-191-31/+11
|
* Create struct patterns up to the hir levelMarcus Klaas de Vries2019-01-191-0/+69
|
* Merge #536bors[bot]2019-01-161-0/+9
|\ | | | | | | | | | | | | | | | | | | 536: Introduce variable semicolon block expr r=matklad a=yerke Fix for https://github.com/rust-analyzer/rust-analyzer/issues/504 Feels a bit hacky... Co-authored-by: Yerkebulan Tulibergenov <[email protected]>
| * add has_semi to ExprStmtYerkebulan Tulibergenov2019-01-161-0/+9
| |
* | Fixup testsMarcus Klaas de Vries2019-01-141-0/+46
|/
* support ref-patternsAleksey Kladov2019-01-131-0/+6
|
* rename TreePtr -> TreeArcAleksey Kladov2019-01-111-2/+2
| | | | This is much clearer about the semantics
* assist to convert if-let to matchAleksey Kladov2019-01-081-1/+1
|
* itroduce trait for ast tokensAleksey Kladov2019-01-081-42/+10
|
* migrate ra_hir to rowan 2.0Aleksey Kladov2019-01-081-0/+27
|
* switch ra_syntax to new rowan APIAleksey Kladov2019-01-081-115/+84
|
* Implement type inference for more binary operatorsMarcus Klaas de Vries2019-01-071-2/+2
| | | | | Mostly just for primitive numeric types such as u32 and f64. Not yet a general solution using trait resolution.
* Add remaining binary operations to ASTMarcus Klaas de Vries2019-01-071-1/+69
|
* Touch up type inference for boolean operatorsMarcus Klaas de Vries2019-01-061-11/+24
| | | | | Also try to infer its subexpressions and set type expectations whenever possible.
* Implement type inference for boolean operatorsMarcus Klaas de Vries2019-01-051-0/+39
|
* split import assistAleksey Kladov2019-01-051-0/+6
|
* Type the self parameterFlorian Diebold2019-01-041-0/+31
|
* Rename ImplItem to ImplBlockFlorian Diebold2019-01-041-1/+1
| | | | | rustc uses the name ImplItem for items in impls, not the impl {} block itself, which could lead to confusion.
* add mod doc comments test in astcsmoe2019-01-041-0/+13
|
* parse doc comment for itemscsmoe2019-01-041-0/+12
|
* visibility ownerAleksey Kladov2019-01-031-0/+6
|
* add items from macros to modulesAleksey Kladov2019-01-011-0/+30
|
* Implement reference / pointer typesFlorian Diebold2018-12-251-0/+39
| | | | | - parse them - infer types of & and * expressions