diff options
author | Andrey Tkachenko <[email protected]> | 2019-06-06 12:36:16 +0100 |
---|---|---|
committer | Andrey Tkachenko <[email protected]> | 2019-06-06 12:43:26 +0100 |
commit | 281c9eeaff8eac4e666089f80f67cf684e1d001b (patch) | |
tree | d5d315543cfc7aa47db24aafec3b98df3754ddb3 /crates/ra_syntax/tests/data/parser/ok/0051_try_block.txt | |
parent | b79e6294a68fd41f0a3dbd9eb907dfe99646d77e (diff) |
[#1083] Try block syntax
Diffstat (limited to 'crates/ra_syntax/tests/data/parser/ok/0051_try_block.txt')
-rw-r--r-- | crates/ra_syntax/tests/data/parser/ok/0051_try_block.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/crates/ra_syntax/tests/data/parser/ok/0051_try_block.txt b/crates/ra_syntax/tests/data/parser/ok/0051_try_block.txt new file mode 100644 index 000000000..f94eb3bcd --- /dev/null +++ b/crates/ra_syntax/tests/data/parser/ok/0051_try_block.txt | |||
@@ -0,0 +1,32 @@ | |||
1 | SOURCE_FILE@[0; 41) | ||
2 | FN_DEF@[0; 41) | ||
3 | FN_KW@[0; 2) "fn" | ||
4 | WHITESPACE@[2; 3) " " | ||
5 | NAME@[3; 7) | ||
6 | IDENT@[3; 7) "main" | ||
7 | PARAM_LIST@[7; 9) | ||
8 | L_PAREN@[7; 8) "(" | ||
9 | R_PAREN@[8; 9) ")" | ||
10 | WHITESPACE@[9; 10) " " | ||
11 | BLOCK@[10; 41) | ||
12 | L_CURLY@[10; 11) "{" | ||
13 | WHITESPACE@[11; 16) "\n " | ||
14 | LET_STMT@[16; 39) | ||
15 | LET_KW@[16; 19) "let" | ||
16 | WHITESPACE@[19; 20) " " | ||
17 | BIND_PAT@[20; 23) | ||
18 | NAME@[20; 23) | ||
19 | IDENT@[20; 23) "res" | ||
20 | WHITESPACE@[23; 24) " " | ||
21 | EQ@[24; 25) "=" | ||
22 | WHITESPACE@[25; 26) " " | ||
23 | TRY_EXPR@[26; 38) | ||
24 | TRY_KW@[26; 29) "try" | ||
25 | WHITESPACE@[29; 30) " " | ||
26 | BLOCK@[30; 38) | ||
27 | L_CURLY@[30; 31) "{" | ||
28 | WHITESPACE@[31; 37) "\n\n " | ||
29 | R_CURLY@[37; 38) "}" | ||
30 | SEMI@[38; 39) ";" | ||
31 | WHITESPACE@[39; 40) "\n" | ||
32 | R_CURLY@[40; 41) "}" \ No newline at end of file | ||