aboutsummaryrefslogtreecommitdiff
path: root/crates/syntax/test_data/parser/ok/0063_variadic_fun.rast
blob: 4009b3ff8d24bced2e8a1606aa1ce0f48674a73b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
SOURCE_FILE@0..126
  EXTERN_BLOCK@0..125
    ABI@0..10
      EXTERN_KW@0..6 "extern"
      WHITESPACE@6..7 " "
      STRING@7..10 "\"C\""
    WHITESPACE@10..11 " "
    EXTERN_ITEM_LIST@11..125
      L_CURLY@11..12 "{"
      WHITESPACE@12..17 "\n    "
      FN@17..40
        FN_KW@17..19 "fn"
        WHITESPACE@19..20 " "
        NAME@20..21
          IDENT@20..21 "a"
        PARAM_LIST@21..39
          L_PAREN@21..22 "("
          PARAM@22..32
            WILDCARD_PAT@22..23
              UNDERSCORE@22..23 "_"
            COLON@23..24 ":"
            WHITESPACE@24..25 " "
            PTR_TYPE@25..32
              STAR@25..26 "*"
              MUT_KW@26..29 "mut"
              WHITESPACE@29..30 " "
              PATH_TYPE@30..32
                PATH@30..32
                  PATH_SEGMENT@30..32
                    NAME_REF@30..32
                      IDENT@30..32 "u8"
          COMMA@32..33 ","
          WHITESPACE@33..34 " "
          PARAM@34..37
            DOT3@34..37 "..."
          COMMA@37..38 ","
          R_PAREN@38..39 ")"
        SEMICOLON@39..40 ";"
      WHITESPACE@40..45 "\n    "
      FN@45..70
        FN_KW@45..47 "fn"
        WHITESPACE@47..48 " "
        NAME@48..49
          IDENT@48..49 "b"
        PARAM_LIST@49..69
          L_PAREN@49..50 "("
          PARAM@50..60
            WILDCARD_PAT@50..51
              UNDERSCORE@50..51 "_"
            COLON@51..52 ":"
            WHITESPACE@52..53 " "
            PTR_TYPE@53..60
              STAR@53..54 "*"
              MUT_KW@54..57 "mut"
              WHITESPACE@57..58 " "
              PATH_TYPE@58..60
                PATH@58..60
                  PATH_SEGMENT@58..60
                    NAME_REF@58..60
                      IDENT@58..60 "u8"
          COMMA@60..61 ","
          WHITESPACE@61..62 " "
          PARAM@62..68
            WILDCARD_PAT@62..63
              UNDERSCORE@62..63 "_"
            COLON@63..64 ":"
            WHITESPACE@64..65 " "
            DOT3@65..68 "..."
          R_PAREN@68..69 ")"
        SEMICOLON@69..70 ";"
      WHITESPACE@70..75 "\n    "
      FN@75..123
        FN_KW@75..77 "fn"
        WHITESPACE@77..78 " "
        NAME@78..79
          IDENT@78..79 "c"
        PARAM_LIST@79..122
          L_PAREN@79..80 "("
          PARAM@80..90
            WILDCARD_PAT@80..81
              UNDERSCORE@80..81 "_"
            COLON@81..82 ":"
            WHITESPACE@82..83 " "
            PTR_TYPE@83..90
              STAR@83..84 "*"
              MUT_KW@84..87 "mut"
              WHITESPACE@87..88 " "
              PATH_TYPE@88..90
                PATH@88..90
                  PATH_SEGMENT@88..90
                    NAME_REF@88..90
                      IDENT@88..90 "u8"
          COMMA@90..91 ","
          WHITESPACE@91..92 " "
          ATTR@92..105
            POUND@92..93 "#"
            L_BRACK@93..94 "["
            PATH@94..97
              PATH_SEGMENT@94..97
                NAME_REF@94..97
                  IDENT@94..97 "cfg"
            TOKEN_TREE@97..104
              L_PAREN@97..98 "("
              IDENT@98..103 "never"
              R_PAREN@103..104 ")"
            R_BRACK@104..105 "]"
          WHITESPACE@105..106 " "
          PARAM@106..120
            SLICE_PAT@106..115
              L_BRACK@106..107 "["
              IDENT_PAT@107..108
                NAME@107..108
                  IDENT@107..108 "w"
              COMMA@108..109 ","
              WHITESPACE@109..110 " "
              IDENT_PAT@110..111
                NAME@110..111
                  IDENT@110..111 "t"
              COMMA@111..112 ","
              WHITESPACE@112..113 " "
              IDENT_PAT@113..114
                NAME@113..114
                  IDENT@113..114 "f"
              R_BRACK@114..115 "]"
            COLON@115..116 ":"
            WHITESPACE@116..117 " "
            DOT3@117..120 "..."
          COMMA@120..121 ","
          R_PAREN@121..122 ")"
        SEMICOLON@122..123 ";"
      WHITESPACE@123..124 "\n"
      R_CURLY@124..125 "}"
  WHITESPACE@125..126 "\n"