aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-07-24 10:38:21 +0100
committerAleksey Kladov <[email protected]>2019-07-24 10:49:19 +0100
commit459241f272748ff2e57b2c7e84f5a04f78d67edb (patch)
tree2353f8f068962313d0b2748aab58b71c4ca456d2 /crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt
parent4d544fbf9b664b6a29d358d3cb41cdd7cd15e4d6 (diff)
move syntax tests to unit tests
Diffstat (limited to 'crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt')
-rw-r--r--crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt b/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt
new file mode 100644
index 000000000..f11bc1fc8
--- /dev/null
+++ b/crates/ra_syntax/test_data/parser/inline/ok/0095_placeholder_pat.txt
@@ -0,0 +1,28 @@
1SOURCE_FILE@[0; 26)
2 FN_DEF@[0; 25)
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; 25)
12 L_CURLY@[10; 11) "{"
13 WHITESPACE@[11; 12) " "
14 LET_STMT@[12; 23)
15 LET_KW@[12; 15) "let"
16 WHITESPACE@[15; 16) " "
17 PLACEHOLDER_PAT@[16; 17)
18 UNDERSCORE@[16; 17) "_"
19 WHITESPACE@[17; 18) " "
20 EQ@[18; 19) "="
21 WHITESPACE@[19; 20) " "
22 TUPLE_EXPR@[20; 22)
23 L_PAREN@[20; 21) "("
24 R_PAREN@[21; 22) ")"
25 SEMI@[22; 23) ";"
26 WHITESPACE@[23; 24) " "
27 R_CURLY@[24; 25) "}"
28 WHITESPACE@[25; 26) "\n"