From 8cf962f1f56717646af7f67642d2724cb27928d0 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 5 Aug 2018 17:19:03 +0300 Subject: Paren expr --- tests/data/parser/inline/0080_tuple_expr.rs | 5 ++++ tests/data/parser/inline/0080_tuple_expr.txt | 38 ++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 tests/data/parser/inline/0080_tuple_expr.rs create mode 100644 tests/data/parser/inline/0080_tuple_expr.txt (limited to 'tests') diff --git a/tests/data/parser/inline/0080_tuple_expr.rs b/tests/data/parser/inline/0080_tuple_expr.rs new file mode 100644 index 000000000..e4f774280 --- /dev/null +++ b/tests/data/parser/inline/0080_tuple_expr.rs @@ -0,0 +1,5 @@ +fn foo() { + (); + (1); + (1,); +} diff --git a/tests/data/parser/inline/0080_tuple_expr.txt b/tests/data/parser/inline/0080_tuple_expr.txt new file mode 100644 index 000000000..bf0223c1c --- /dev/null +++ b/tests/data/parser/inline/0080_tuple_expr.txt @@ -0,0 +1,38 @@ +FILE@[0; 40) + FN_ITEM@[0; 40) + FN_KW@[0; 2) + NAME@[2; 6) + WHITESPACE@[2; 3) + IDENT@[3; 6) "foo" + PARAM_LIST@[6; 9) + L_PAREN@[6; 7) + R_PAREN@[7; 8) + WHITESPACE@[8; 9) + BLOCK_EXPR@[9; 40) + L_CURLY@[9; 10) + EXPR_STMT@[10; 23) + TUPLE_EXPR@[10; 17) + WHITESPACE@[10; 15) + L_PAREN@[15; 16) + R_PAREN@[16; 17) + SEMI@[17; 18) + WHITESPACE@[18; 23) + EXPR_STMT@[23; 32) + PAREN_EXPR@[23; 26) + L_PAREN@[23; 24) + LITERAL@[24; 25) + INT_NUMBER@[24; 25) "1" + R_PAREN@[25; 26) + SEMI@[26; 27) + WHITESPACE@[27; 32) + EXPR_STMT@[32; 38) + TUPLE_EXPR@[32; 36) + L_PAREN@[32; 33) + LITERAL@[33; 34) + INT_NUMBER@[33; 34) "1" + COMMA@[34; 35) + R_PAREN@[35; 36) + SEMI@[36; 37) + WHITESPACE@[37; 38) + R_CURLY@[38; 39) + WHITESPACE@[39; 40) -- cgit v1.2.3