]> git.madduck.net Git - etc/vim.git/blob - tests/data/miscellaneous/debug_visitor.out

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

tomli: Don't worry about specific alpha releases (#3448)
[etc/vim.git] / tests / data / miscellaneous / debug_visitor.out
1 file_input
2   decorated
3     decorator
4       AT
5  '@'
6       NAME
7  'dataclass'
8       NEWLINE
9  '\n'
10     /decorator
11     classdef
12       NAME
13  'class'
14       NAME
15  ' '
16  'DebugVisitor'
17       LPAR
18  '('
19       power
20         NAME
21  'Visitor'
22         trailer
23           LSQB
24  '['
25           NAME
26  'T'
27           RSQB
28  ']'
29         /trailer
30       /power
31       RPAR
32  ')'
33       COLON
34  ':'
35       suite
36         NEWLINE
37  '\n'
38         INDENT
39  ''
40         simple_stmt
41           expr_stmt
42             NAME
43  '    '
44  'tree_depth'
45             annassign
46               COLON
47  ':'
48               NAME
49  ' '
50  'int'
51               EQUAL
52  ' '
53  '='
54               NUMBER
55  ' '
56  '0'
57             /annassign
58           /expr_stmt
59           NEWLINE
60  '\n'
61         /simple_stmt
62         funcdef
63           NAME
64  '\n    '
65  'def'
66           NAME
67  ' '
68  'visit_default'
69           parameters
70             LPAR
71  '('
72             typedargslist
73               NAME
74  'self'
75               COMMA
76  ','
77               tname
78                 NAME
79  ' '
80  'node'
81                 COLON
82  ':'
83                 NAME
84  ' '
85  'LN'
86               /tname
87             /typedargslist
88             RPAR
89  ')'
90           /parameters
91           RARROW
92  ' '
93  '->'
94           power
95             NAME
96  ' '
97  'Iterator'
98             trailer
99               LSQB
100  '['
101               NAME
102  'T'
103               RSQB
104  ']'
105             /trailer
106           /power
107           COLON
108  ':'
109           suite
110             NEWLINE
111  '\n'
112             INDENT
113  ''
114             simple_stmt
115               expr_stmt
116                 NAME
117  '        '
118  'indent'
119                 EQUAL
120  ' '
121  '='
122                 term
123                   STRING
124  ' '
125  "' '"
126                   STAR
127  ' '
128  '*'
129                   atom
130                     LPAR
131  ' '
132  '('
133                     term
134                       NUMBER
135  '2'
136                       STAR
137  ' '
138  '*'
139                       power
140                         NAME
141  ' '
142  'self'
143                         trailer
144                           DOT
145  '.'
146                           NAME
147  'tree_depth'
148                         /trailer
149                       /power
150                     /term
151                     RPAR
152  ')'
153                   /atom
154                 /term
155               /expr_stmt
156               NEWLINE
157  '\n'
158             /simple_stmt
159             if_stmt
160               NAME
161  '        '
162  'if'
163               power
164                 NAME
165  ' '
166  'isinstance'
167                 trailer
168                   LPAR
169  '('
170                   arglist
171                     NAME
172  'node'
173                     COMMA
174  ','
175                     NAME
176  ' '
177  'Node'
178                   /arglist
179                   RPAR
180  ')'
181                 /trailer
182               /power
183               COLON
184  ':'
185               suite
186                 NEWLINE
187  '\n'
188                 INDENT
189  ''
190                 simple_stmt
191                   expr_stmt
192                     NAME
193  '            '
194  '_type'
195                     EQUAL
196  ' '
197  '='
198                     power
199                       NAME
200  ' '
201  'type_repr'
202                       trailer
203                         LPAR
204  '('
205                         power
206                           NAME
207  'node'
208                           trailer
209                             DOT
210  '.'
211                             NAME
212  'type'
213                           /trailer
214                         /power
215                         RPAR
216  ')'
217                       /trailer
218                     /power
219                   /expr_stmt
220                   NEWLINE
221  '\n'
222                 /simple_stmt
223                 simple_stmt
224                   power
225                     NAME
226  '            '
227  'out'
228                     trailer
229                       LPAR
230  '('
231                       arglist
232                         STRING
233  "f'{indent}{_type}'"
234                         COMMA
235  ','
236                         argument
237                           NAME
238  ' '
239  'fg'
240                           EQUAL
241  '='
242                           STRING
243  "'yellow'"
244                         /argument
245                       /arglist
246                       RPAR
247  ')'
248                     /trailer
249                   /power
250                   NEWLINE
251  '\n'
252                 /simple_stmt
253                 simple_stmt
254                   expr_stmt
255                     power
256                       NAME
257  '            '
258  'self'
259                       trailer
260                         DOT
261  '.'
262                         NAME
263  'tree_depth'
264                       /trailer
265                     /power
266                     PLUSEQUAL
267  ' '
268  '+='
269                     NUMBER
270  ' '
271  '1'
272                   /expr_stmt
273                   NEWLINE
274  '\n'
275                 /simple_stmt
276                 for_stmt
277                   NAME
278  '            '
279  'for'
280                   NAME
281  ' '
282  'child'
283                   NAME
284  ' '
285  'in'
286                   power
287                     NAME
288  ' '
289  'node'
290                     trailer
291                       DOT
292  '.'
293                       NAME
294  'children'
295                     /trailer
296                   /power
297                   COLON
298  ':'
299                   suite
300                     NEWLINE
301  '\n'
302                     INDENT
303  ''
304                     simple_stmt
305                       yield_expr
306                         NAME
307  '                '
308  'yield'
309                         yield_arg
310                           NAME
311  ' '
312  'from'
313                           power
314                             NAME
315  ' '
316  'self'
317                             trailer
318                               DOT
319  '.'
320                               NAME
321  'visit'
322                             /trailer
323                             trailer
324                               LPAR
325  '('
326                               NAME
327  'child'
328                               RPAR
329  ')'
330                             /trailer
331                           /power
332                         /yield_arg
333                       /yield_expr
334                       NEWLINE
335  '\n'
336                     /simple_stmt
337                     DEDENT
338  ''
339                   /suite
340                 /for_stmt
341                 simple_stmt
342                   expr_stmt
343                     power
344                       NAME
345  '\n            '
346  'self'
347                       trailer
348                         DOT
349  '.'
350                         NAME
351  'tree_depth'
352                       /trailer
353                     /power
354                     MINEQUAL
355  ' '
356  '-='
357                     NUMBER
358  ' '
359  '1'
360                   /expr_stmt
361                   NEWLINE
362  '\n'
363                 /simple_stmt
364                 simple_stmt
365                   power
366                     NAME
367  '            '
368  'out'
369                     trailer
370                       LPAR
371  '('
372                       arglist
373                         STRING
374  "f'{indent}/{_type}'"
375                         COMMA
376  ','
377                         argument
378                           NAME
379  ' '
380  'fg'
381                           EQUAL
382  '='
383                           STRING
384  "'yellow'"
385                         /argument
386                         COMMA
387  ','
388                         argument
389                           NAME
390  ' '
391  'bold'
392                           EQUAL
393  '='
394                           NAME
395  'False'
396                         /argument
397                       /arglist
398                       RPAR
399  ')'
400                     /trailer
401                   /power
402                   NEWLINE
403  '\n'
404                 /simple_stmt
405                 DEDENT
406  ''
407               /suite
408               NAME
409  '        '
410  'else'
411               COLON
412  ':'
413               suite
414                 NEWLINE
415  '\n'
416                 INDENT
417  ''
418                 simple_stmt
419                   expr_stmt
420                     NAME
421  '            '
422  '_type'
423                     EQUAL
424  ' '
425  '='
426                     power
427                       NAME
428  ' '
429  'token'
430                       trailer
431                         DOT
432  '.'
433                         NAME
434  'tok_name'
435                       /trailer
436                       trailer
437                         DOT
438  '.'
439                         NAME
440  'get'
441                       /trailer
442                       trailer
443                         LPAR
444  '('
445                         arglist
446                           power
447                             NAME
448  'node'
449                             trailer
450                               DOT
451  '.'
452                               NAME
453  'type'
454                             /trailer
455                           /power
456                           COMMA
457  ','
458                           power
459                             NAME
460  ' '
461  'str'
462                             trailer
463                               LPAR
464  '('
465                               power
466                                 NAME
467  'node'
468                                 trailer
469                                   DOT
470  '.'
471                                   NAME
472  'type'
473                                 /trailer
474                               /power
475                               RPAR
476  ')'
477                             /trailer
478                           /power
479                         /arglist
480                         RPAR
481  ')'
482                       /trailer
483                     /power
484                   /expr_stmt
485                   NEWLINE
486  '\n'
487                 /simple_stmt
488                 simple_stmt
489                   power
490                     NAME
491  '            '
492  'out'
493                     trailer
494                       LPAR
495  '('
496                       arglist
497                         STRING
498  "f'{indent}{_type}'"
499                         COMMA
500  ','
501                         argument
502                           NAME
503  ' '
504  'fg'
505                           EQUAL
506  '='
507                           STRING
508  "'blue'"
509                         /argument
510                         COMMA
511  ','
512                         argument
513                           NAME
514  ' '
515  'nl'
516                           EQUAL
517  '='
518                           NAME
519  'False'
520                         /argument
521                       /arglist
522                       RPAR
523  ')'
524                     /trailer
525                   /power
526                   NEWLINE
527  '\n'
528                 /simple_stmt
529                 if_stmt
530                   NAME
531  '            '
532  'if'
533                   power
534                     NAME
535  ' '
536  'node'
537                     trailer
538                       DOT
539  '.'
540                       NAME
541  'prefix'
542                     /trailer
543                   /power
544                   COLON
545  ':'
546                   suite
547                     NEWLINE
548  '\n'
549                     INDENT
550  ''
551                     simple_stmt
552                       power
553                         NAME
554  "                # We don't have to handle prefixes for `Node` objects since\n                # that delegates to the first child anyway.\n                "
555  'out'
556                         trailer
557                           LPAR
558  '('
559                           arglist
560                             STRING
561  "f' {node.prefix!r}'"
562                             COMMA
563  ','
564                             argument
565                               NAME
566  ' '
567  'fg'
568                               EQUAL
569  '='
570                               STRING
571  "'green'"
572                             /argument
573                             COMMA
574  ','
575                             argument
576                               NAME
577  ' '
578  'bold'
579                               EQUAL
580  '='
581                               NAME
582  'False'
583                             /argument
584                             COMMA
585  ','
586                             argument
587                               NAME
588  ' '
589  'nl'
590                               EQUAL
591  '='
592                               NAME
593  'False'
594                             /argument
595                           /arglist
596                           RPAR
597  ')'
598                         /trailer
599                       /power
600                       NEWLINE
601  '\n'
602                     /simple_stmt
603                     DEDENT
604  ''
605                   /suite
606                 /if_stmt
607                 simple_stmt
608                   power
609                     NAME
610  '            '
611  'out'
612                     trailer
613                       LPAR
614  '('
615                       arglist
616                         STRING
617  "f' {node.value!r}'"
618                         COMMA
619  ','
620                         argument
621                           NAME
622  ' '
623  'fg'
624                           EQUAL
625  '='
626                           STRING
627  "'blue'"
628                         /argument
629                         COMMA
630  ','
631                         argument
632                           NAME
633  ' '
634  'bold'
635                           EQUAL
636  '='
637                           NAME
638  'False'
639                         /argument
640                       /arglist
641                       RPAR
642  ')'
643                     /trailer
644                   /power
645                   NEWLINE
646  '\n'
647                 /simple_stmt
648                 DEDENT
649  ''
650               /suite
651             /if_stmt
652             DEDENT
653  ''
654           /suite
655         /funcdef
656         decorated
657           decorator
658             AT
659  '\n    '
660  '@'
661             NAME
662  'classmethod'
663             NEWLINE
664  '\n'
665           /decorator
666           funcdef
667             NAME
668  '    '
669  'def'
670             NAME
671  ' '
672  'show'
673             parameters
674               LPAR
675  '('
676               typedargslist
677                 NAME
678  'cls'
679                 COMMA
680  ','
681                 tname
682                   NAME
683  ' '
684  'code'
685                   COLON
686  ':'
687                   NAME
688  ' '
689  'str'
690                 /tname
691               /typedargslist
692               RPAR
693  ')'
694             /parameters
695             RARROW
696  ' '
697  '->'
698             NAME
699  ' '
700  'None'
701             COLON
702  ':'
703             suite
704               NEWLINE
705  '\n'
706               INDENT
707  ''
708               simple_stmt
709                 STRING
710  '        '
711  '"""Pretty-prints a given string of `code`.\n\n        Convenience method for debugging.\n        """'
712                 NEWLINE
713  '\n'
714               /simple_stmt
715               simple_stmt
716                 expr_stmt
717                   NAME
718  '        '
719  'v'
720                   annassign
721                     COLON
722  ':'
723                     power
724                       NAME
725  ' '
726  'DebugVisitor'
727                       trailer
728                         LSQB
729  '['
730                         NAME
731  'None'
732                         RSQB
733  ']'
734                       /trailer
735                     /power
736                     EQUAL
737  ' '
738  '='
739                     power
740                       NAME
741  ' '
742  'DebugVisitor'
743                       trailer
744                         LPAR
745  '('
746                         RPAR
747  ')'
748                       /trailer
749                     /power
750                   /annassign
751                 /expr_stmt
752                 NEWLINE
753  '\n'
754               /simple_stmt
755               simple_stmt
756                 power
757                   NAME
758  '        '
759  'list'
760                   trailer
761                     LPAR
762  '('
763                     power
764                       NAME
765  'v'
766                       trailer
767                         DOT
768  '.'
769                         NAME
770  'visit'
771                       /trailer
772                       trailer
773                         LPAR
774  '('
775                         power
776                           NAME
777  'lib2to3_parse'
778                           trailer
779                             LPAR
780  '('
781                             NAME
782  'code'
783                             RPAR
784  ')'
785                           /trailer
786                         /power
787                         RPAR
788  ')'
789                       /trailer
790                     /power
791                     RPAR
792  ')'
793                   /trailer
794                 /power
795                 NEWLINE
796  '\n'
797               /simple_stmt
798               DEDENT
799  ''
800             /suite
801           /funcdef
802         /decorated
803         DEDENT
804  ''
805       /suite
806     /classdef
807   /decorated
808   ENDMARKER
809  ''
810 /file_input