rust-analyzer/crates/ra_syntax/src
bors[bot] 90a5c4626a
Merge #4851
4851: Add quickfix to add a struct field r=TimoFreiberg a=TimoFreiberg

Related to #4563 
I created a quickfix for record literals first because the NoSuchField diagnostic was already there.
To offer that quickfix for FieldExprs with unknown fields I'd need to add a new diagnostic (or create a `NoSuchField` diagnostic for those cases)

I think it'd make sense to make this a snippet completion (to select the generated type), but this would require changing the `Analysis` API and I'd like some feedback before I touch that.

Co-authored-by: Timo Freiberg <timo.freiberg@gmail.com>
2020-06-19 15:08:52 +00:00
..
ast Add quickfix to add a struct field 2020-06-12 18:52:44 +02:00
parsing Reduce the usage of bare subscript operator 2020-06-14 13:12:52 +03:00
validation Introduce EffectExpr 2020-05-02 11:21:39 +02:00
algo.rs Fix rewrite_root when there's only 1 replacement 2020-06-13 19:05:46 +02:00
ast.rs Separating parsing of for in predicates and types 2020-06-10 11:30:58 +01:00
fuzz.rs Rename AtomTextEdit -> Indel 2020-05-05 23:15:49 +02:00
lib.rs Make ra_syntax::{SyntaxNodeChildren, SyntaxElementChildren} public. 2020-06-15 21:36:30 +10:00
parsing.rs ra_syntax: refactored the lexer design as per @matklad and @kiljacken PR review 2020-02-04 00:00:55 +02:00
ptr.rs Convert code to text-size 2020-04-25 11:59:18 +02:00
syntax_error.rs Convert code to text-size 2020-04-25 11:59:18 +02:00
syntax_node.rs Small refactor 2020-05-31 21:39:19 +03:00
tests.rs Switch to TryFrom 2020-04-25 11:59:18 +02:00
validation.rs Some FIXMEs were outdated: 2020-05-24 13:17:16 +02:00