Skip to content

Commit 796f2e5

Browse files
committed
bless test corpus
1 parent 71ce23b commit 796f2e5

File tree

3 files changed

+46
-23
lines changed

3 files changed

+46
-23
lines changed

test/corpus/declarations.txt

+8-4
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ pub unsafe extern "C" fn c_variadic_no_use(fmt: *const i8, mut ap: ...) -> i32 {
335335
(identifier)))
336336
(primitive_type)
337337
(block
338-
(line_comment)
338+
(line_comment
339+
(comment))
339340
(call_expression
340341
(identifier)
341342
(arguments
@@ -345,7 +346,8 @@ pub unsafe extern "C" fn c_variadic_no_use(fmt: *const i8, mut ap: ...) -> i32 {
345346
(identifier)
346347
(field_identifier))
347348
(arguments))))
348-
(line_comment))))
349+
(line_comment
350+
(comment)))))
349351

350352
================================================================================
351353
Use declarations
@@ -1318,7 +1320,8 @@ pub enum Error {
13181320
--------------------------------------------------------------------------------
13191321

13201322
(source_file
1321-
(line_comment)
1323+
(line_comment
1324+
(comment))
13221325
(use_declaration
13231326
(scoped_identifier
13241327
(identifier)
@@ -1614,7 +1617,8 @@ impl Foo {
16141617
(parameters)
16151618
(primitive_type)
16161619
(block
1617-
(line_comment)
1620+
(line_comment
1621+
(comment))
16181622
(expression_statement
16191623
(call_expression
16201624
(field_expression

test/corpus/macros.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ ok! {
154154
(macro_invocation
155155
(identifier)
156156
(token_tree
157-
(line_comment)
158-
(block_comment))))
157+
(line_comment
158+
(comment))
159+
(block_comment
160+
(comment)))))
159161

160162
================================================================================
161163
Macro definition

test/corpus/source_files.txt

+34-17
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,10 @@ Block comments
1717
----
1818

1919
(source_file
20-
(block_comment)
21-
(block_comment)
20+
(block_comment
21+
comment: (comment))
22+
(block_comment
23+
comment: (comment))
2224
(block_comment
2325
outer: (outer_doc_comment_marker)
2426
doc: (doc_comment))
@@ -51,12 +53,18 @@ Nested block comments
5153
----
5254

5355
(source_file
54-
(block_comment)
55-
(line_comment)
56-
(block_comment)
57-
(line_comment)
58-
(block_comment)
59-
(line_comment))
56+
(block_comment
57+
(comment))
58+
(line_comment
59+
(comment))
60+
(block_comment
61+
(comment))
62+
(line_comment
63+
(comment))
64+
(block_comment
65+
(comment))
66+
(line_comment
67+
(comment)))
6068

6169
============================================
6270
Line comments
@@ -71,7 +79,8 @@ Line comments
7179
----
7280

7381
(source_file
74-
(line_comment)
82+
(line_comment
83+
comment: (comment))
7584
(line_comment
7685
outer: (outer_doc_comment_marker)
7786
doc: (doc_comment))
@@ -99,14 +108,16 @@ Line doc comments
99108
(line_comment
100109
inner: (inner_doc_comment_marker)
101110
doc: (doc_comment))
102-
(line_comment)
111+
(line_comment
112+
comment: (comment))
103113
(line_comment
104114
outer: (outer_doc_comment_marker)
105115
doc: (doc_comment))
106116
(line_comment
107117
outer: (outer_doc_comment_marker)
108118
doc: (doc_comment))
109-
(line_comment))
119+
(line_comment
120+
comment: (comment)))
110121

111122
====================================
112123
Block doc comments
@@ -128,11 +139,13 @@ Block doc comments
128139
(block_comment
129140
inner: (inner_doc_comment_marker)
130141
doc: (doc_comment))
131-
(block_comment)
142+
(block_comment
143+
comment: (comment))
132144
(block_comment
133145
outer: (outer_doc_comment_marker)
134146
doc: (doc_comment))
135-
(block_comment))
147+
(block_comment
148+
comment: (comment)))
136149

137150
=====================================
138151
Nested doc block comments
@@ -145,7 +158,8 @@ Nested doc block comments
145158
----
146159

147160
(source_file
148-
(block_comment)
161+
(block_comment
162+
comment: (comment))
149163
(block_comment
150164
inner: (inner_doc_comment_marker)
151165
doc: (doc_comment))
@@ -178,15 +192,18 @@ let x; // <- immediate item after an empty line doc comment
178192
(doc_comment))
179193
(block_comment
180194
(inner_doc_comment_marker))
181-
(line_comment)
195+
(line_comment
196+
(comment))
182197
(line_comment
183198
(outer_doc_comment_marker)
184199
(doc_comment))
185200
(let_declaration
186201
(identifier))
187-
(line_comment)
202+
(line_comment
203+
(comment))
188204
(block_comment)
189-
(block_comment))
205+
(block_comment
206+
(comment)))
190207

191208
================================================================================
192209
Line doc comment with no EOL

0 commit comments

Comments
 (0)