diff options
author | Aleksey Kladov <[email protected]> | 2018-08-01 09:27:31 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-01 09:27:31 +0100 |
commit | 37e1625f0139da07c2690b6ee6ca7eae5ebb061a (patch) | |
tree | 368d3329e120fc5d76a0595110f7519bb084d70f /src/syntax_kinds | |
parent | 53485030dc49aa7cd66e36c8a1e1abf1bf08020c (diff) |
return expr
Diffstat (limited to 'src/syntax_kinds')
-rw-r--r-- | src/syntax_kinds/generated.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/syntax_kinds/generated.rs b/src/syntax_kinds/generated.rs index 5f26cbf0a..50aa2b580 100644 --- a/src/syntax_kinds/generated.rs +++ b/src/syntax_kinds/generated.rs | |||
@@ -71,6 +71,7 @@ pub enum SyntaxKind { | |||
71 | REF_KW, | 71 | REF_KW, |
72 | LET_KW, | 72 | LET_KW, |
73 | MOVE_KW, | 73 | MOVE_KW, |
74 | RETURN_KW, | ||
74 | AUTO_KW, | 75 | AUTO_KW, |
75 | DEFAULT_KW, | 76 | DEFAULT_KW, |
76 | UNION_KW, | 77 | UNION_KW, |
@@ -129,6 +130,8 @@ pub enum SyntaxKind { | |||
129 | STRUCT_LIT, | 130 | STRUCT_LIT, |
130 | STRUCT_LIT_FIELD, | 131 | STRUCT_LIT_FIELD, |
131 | IF_EXPR, | 132 | IF_EXPR, |
133 | BLOCK_EXPR, | ||
134 | RETURN_EXPR, | ||
132 | EXTERN_BLOCK_EXPR, | 135 | EXTERN_BLOCK_EXPR, |
133 | ENUM_VARIANT, | 136 | ENUM_VARIANT, |
134 | NAMED_FIELD, | 137 | NAMED_FIELD, |
@@ -145,7 +148,6 @@ pub enum SyntaxKind { | |||
145 | ABI, | 148 | ABI, |
146 | NAME, | 149 | NAME, |
147 | NAME_REF, | 150 | NAME_REF, |
148 | BLOCK_EXPR, | ||
149 | LET_STMT, | 151 | LET_STMT, |
150 | EXPR_STMT, | 152 | EXPR_STMT, |
151 | TYPE_PARAM_LIST, | 153 | TYPE_PARAM_LIST, |
@@ -202,6 +204,7 @@ impl SyntaxKind { | |||
202 | | REF_KW | 204 | | REF_KW |
203 | | LET_KW | 205 | | LET_KW |
204 | | MOVE_KW | 206 | | MOVE_KW |
207 | | RETURN_KW | ||
205 | | AUTO_KW | 208 | | AUTO_KW |
206 | | DEFAULT_KW | 209 | | DEFAULT_KW |
207 | | UNION_KW | 210 | | UNION_KW |
@@ -278,6 +281,7 @@ impl SyntaxKind { | |||
278 | REF_KW => &SyntaxInfo { name: "REF_KW" }, | 281 | REF_KW => &SyntaxInfo { name: "REF_KW" }, |
279 | LET_KW => &SyntaxInfo { name: "LET_KW" }, | 282 | LET_KW => &SyntaxInfo { name: "LET_KW" }, |
280 | MOVE_KW => &SyntaxInfo { name: "MOVE_KW" }, | 283 | MOVE_KW => &SyntaxInfo { name: "MOVE_KW" }, |
284 | RETURN_KW => &SyntaxInfo { name: "RETURN_KW" }, | ||
281 | AUTO_KW => &SyntaxInfo { name: "AUTO_KW" }, | 285 | AUTO_KW => &SyntaxInfo { name: "AUTO_KW" }, |
282 | DEFAULT_KW => &SyntaxInfo { name: "DEFAULT_KW" }, | 286 | DEFAULT_KW => &SyntaxInfo { name: "DEFAULT_KW" }, |
283 | UNION_KW => &SyntaxInfo { name: "UNION_KW" }, | 287 | UNION_KW => &SyntaxInfo { name: "UNION_KW" }, |
@@ -336,6 +340,8 @@ impl SyntaxKind { | |||
336 | STRUCT_LIT => &SyntaxInfo { name: "STRUCT_LIT" }, | 340 | STRUCT_LIT => &SyntaxInfo { name: "STRUCT_LIT" }, |
337 | STRUCT_LIT_FIELD => &SyntaxInfo { name: "STRUCT_LIT_FIELD" }, | 341 | STRUCT_LIT_FIELD => &SyntaxInfo { name: "STRUCT_LIT_FIELD" }, |
338 | IF_EXPR => &SyntaxInfo { name: "IF_EXPR" }, | 342 | IF_EXPR => &SyntaxInfo { name: "IF_EXPR" }, |
343 | BLOCK_EXPR => &SyntaxInfo { name: "BLOCK_EXPR" }, | ||
344 | RETURN_EXPR => &SyntaxInfo { name: "RETURN_EXPR" }, | ||
339 | EXTERN_BLOCK_EXPR => &SyntaxInfo { name: "EXTERN_BLOCK_EXPR" }, | 345 | EXTERN_BLOCK_EXPR => &SyntaxInfo { name: "EXTERN_BLOCK_EXPR" }, |
340 | ENUM_VARIANT => &SyntaxInfo { name: "ENUM_VARIANT" }, | 346 | ENUM_VARIANT => &SyntaxInfo { name: "ENUM_VARIANT" }, |
341 | NAMED_FIELD => &SyntaxInfo { name: "NAMED_FIELD" }, | 347 | NAMED_FIELD => &SyntaxInfo { name: "NAMED_FIELD" }, |
@@ -352,7 +358,6 @@ impl SyntaxKind { | |||
352 | ABI => &SyntaxInfo { name: "ABI" }, | 358 | ABI => &SyntaxInfo { name: "ABI" }, |
353 | NAME => &SyntaxInfo { name: "NAME" }, | 359 | NAME => &SyntaxInfo { name: "NAME" }, |
354 | NAME_REF => &SyntaxInfo { name: "NAME_REF" }, | 360 | NAME_REF => &SyntaxInfo { name: "NAME_REF" }, |
355 | BLOCK_EXPR => &SyntaxInfo { name: "BLOCK_EXPR" }, | ||
356 | LET_STMT => &SyntaxInfo { name: "LET_STMT" }, | 361 | LET_STMT => &SyntaxInfo { name: "LET_STMT" }, |
357 | EXPR_STMT => &SyntaxInfo { name: "EXPR_STMT" }, | 362 | EXPR_STMT => &SyntaxInfo { name: "EXPR_STMT" }, |
358 | TYPE_PARAM_LIST => &SyntaxInfo { name: "TYPE_PARAM_LIST" }, | 363 | TYPE_PARAM_LIST => &SyntaxInfo { name: "TYPE_PARAM_LIST" }, |
@@ -403,6 +408,7 @@ impl SyntaxKind { | |||
403 | "ref" => REF_KW, | 408 | "ref" => REF_KW, |
404 | "let" => LET_KW, | 409 | "let" => LET_KW, |
405 | "move" => MOVE_KW, | 410 | "move" => MOVE_KW, |
411 | "return" => RETURN_KW, | ||
406 | _ => return None, | 412 | _ => return None, |
407 | }; | 413 | }; |
408 | Some(kw) | 414 | Some(kw) |
@@ -506,6 +512,7 @@ impl SyntaxKind { | |||
506 | REF_KW => "ref", | 512 | REF_KW => "ref", |
507 | LET_KW => "let", | 513 | LET_KW => "let", |
508 | MOVE_KW => "move", | 514 | MOVE_KW => "move", |
515 | RETURN_KW => "return", | ||
509 | AUTO_KW => "auto", | 516 | AUTO_KW => "auto", |
510 | DEFAULT_KW => "default", | 517 | DEFAULT_KW => "default", |
511 | UNION_KW => "union", | 518 | UNION_KW => "union", |