aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/ast.rs
Commit message (Collapse)AuthorAgeFilesLines
* Implement slice pattern AST > HIR loweringJonas Platte2020-02-111-1/+2
|
* Add infrastructure for visibility on syntax and hir_def levelFlorian Diebold2019-12-261-1/+3
|
* Attempt to implement typed accessorsGeoffry Song2019-11-151-1/+1
|
* Attach docs to staticskjeremy2019-10-311-0/+14
|
* Preserve whitespace at the end of doc commentsJeremy Kolb2019-10-271-2/+22
| | | | | | | | Whitespace can have special meaning in markdown. For instance ending a line with three spaces will render a new line. Note that this behavior diverges from RLS. Fixes #1997
* simplify strip attrsAleksey Kladov2019-09-281-1/+1
|
* Start simplifying editing APIAleksey Kladov2019-09-261-0/+1
|
* keep ast creation API simpleAleksey Kladov2019-09-261-0/+1
|
* make ast object safeAleksey Kladov2019-08-231-2/+10
|
* Add `impl Trait` and `dyn Trait` typesFlorian Diebold2019-08-221-1/+1
| | | | | | | - refactor bounds handling in the AST a bit - add HIR for bounds - add `Ty::Dyn` and `Ty::Opaque` variants and lower `dyn Trait` / `impl Trait` syntax to them
* Unconditionally trim the end of commentskjeremy2019-07-311-4/+1
|
* Removes `*/` in block doc commentskjeremy2019-07-311-0/+49
|
* Add explicit newline preserving testskjeremy2019-07-311-0/+17
|
* cleanup castsAleksey Kladov2019-07-191-1/+3
|
* migrate ra_assists to the new ASTAleksey Kladov2019-07-191-1/+1
|
* migrate ra_syntax to the new rowan APIAleksey Kladov2019-07-191-19/+17
|
* allow rustfmt to reorder importsAleksey Kladov2019-07-041-4/+4
| | | | | | This wasn't a right decision in the first place, the feature flag was broken in the last rustfmt release, and syntax highlighting of imports is more important anyway
* remove old parsing methodsAleksey Kladov2019-05-281-4/+12
|
* migrate to untyped rowanAleksey Kladov2019-04-091-2/+2
|
* updated snapshotsLenard Pratt2019-04-071-1/+1
|
* Added ArrayExprKind,Lenard Pratt2019-04-071-2/+2
| | | | | changed the display for fixed array types, Added Array Enum to ra_hir/expr
* Parse and infer tuple indicesrobojumper2019-04-061-1/+1
|
* add minimal commentsAleksey Kladov2019-04-021-0/+2
|
* rename flavor to kindAleksey Kladov2019-04-021-2/+2
|
* move extensions to submodulesAleksey Kladov2019-04-021-549/+16
|
* remove flavorAleksey Kladov2019-04-021-4/+4
|
* add ast::tokensAleksey Kladov2019-04-021-94/+12
|
* simplifyAleksey Kladov2019-04-021-23/+19
|
* move ast traits to a separate fileAleksey Kladov2019-04-021-144/+7
|
* 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