aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/grammar.ron
diff options
context:
space:
mode:
authorbors[bot] <bors[bot]@users.noreply.github.com>2019-04-02 20:01:54 +0100
committerbors[bot] <bors[bot]@users.noreply.github.com>2019-04-02 20:01:54 +0100
commitfdbebccd71d38c4dffffe918b036bbfa39355c5f (patch)
tree541c13ce234023bbfc640a38e55e860c029fd52c /crates/ra_syntax/src/grammar.ron
parent01a54f094ba7c17a6788ec706f12b07d8d60af4b (diff)
parentb9d2c2c21fe8880fe1ca29b70b03db1d3faac554 (diff)
Merge #1076
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]>
Diffstat (limited to 'crates/ra_syntax/src/grammar.ron')
-rw-r--r--crates/ra_syntax/src/grammar.ron2
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/grammar.ron b/crates/ra_syntax/src/grammar.ron
index dc0de5808..0a35e25d5 100644
--- a/crates/ra_syntax/src/grammar.ron
+++ b/crates/ra_syntax/src/grammar.ron
@@ -315,6 +315,7 @@ Grammar(
315 "DocCommentsOwner", 315 "DocCommentsOwner",
316 "TypeAscriptionOwner", 316 "TypeAscriptionOwner",
317 ], 317 ],
318 options: [ ["body","Expr"]],
318 ), 319 ),
319 "StaticDef": ( 320 "StaticDef": (
320 traits: [ 321 traits: [
@@ -325,6 +326,7 @@ Grammar(
325 "DocCommentsOwner", 326 "DocCommentsOwner",
326 "TypeAscriptionOwner", 327 "TypeAscriptionOwner",
327 ], 328 ],
329 options: [ ["body","Expr"]],
328 ), 330 ),
329 "TypeAliasDef": ( 331 "TypeAliasDef": (
330 traits: [ 332 traits: [