From 2bbd4c510d2da5c78f566b28e90548102bb107dc Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 1 Aug 2018 00:19:04 +0300 Subject: not expr --- tests/data/parser/inline/0066_not_expr.rs | 3 +++ tests/data/parser/inline/0066_not_expr.txt | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 tests/data/parser/inline/0066_not_expr.rs create mode 100644 tests/data/parser/inline/0066_not_expr.txt (limited to 'tests/data/parser') diff --git a/tests/data/parser/inline/0066_not_expr.rs b/tests/data/parser/inline/0066_not_expr.rs new file mode 100644 index 000000000..4c97fd9a6 --- /dev/null +++ b/tests/data/parser/inline/0066_not_expr.rs @@ -0,0 +1,3 @@ +fn foo() { + !!true; +} diff --git a/tests/data/parser/inline/0066_not_expr.txt b/tests/data/parser/inline/0066_not_expr.txt new file mode 100644 index 000000000..3e950969e --- /dev/null +++ b/tests/data/parser/inline/0066_not_expr.txt @@ -0,0 +1,24 @@ +FILE@[0; 25) + FN_ITEM@[0; 25) + 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@[9; 25) + L_CURLY@[9; 10) + EXPR_STMT@[10; 23) + NOT_EXPR@[10; 21) + WHITESPACE@[10; 15) + EXCL@[15; 16) + NOT_EXPR@[16; 21) + EXCL@[16; 17) + LITERAL@[17; 21) + TRUE_KW@[17; 21) + SEMI@[21; 22) + WHITESPACE@[22; 23) + R_CURLY@[23; 24) + WHITESPACE@[24; 25) -- cgit v1.2.3