~mna/snow unlisted

snow/pkg/parser/testdata/fn_type_literal.snow.want -rw-r--r-- 780 bytes
424066c5Martin Angers doc: v0.0.5 1 year, 5 months ago
                                                                                
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
file [2, #0] [0:101]
  fn [0:48]
    ident [add] [3:6]
    sig [2->1] [6:29]
      param [7:14]
        ident [x] [7:8]
        ident [int] [10:13]
      param [15:21]
        ident [y] [15:16]
        ident [int] [18:21]
      ident [int] [26:29]
    block [1] [30:48]
      return [34:46]
        binary [+] [41:46]
          ident [x] [41:42]
          ident [y] [45:46]
  fn [50:101]
    ident [test] [53:57]
    sig [0->0] [57:59]
    block [2] [60:101]
      var [64:88]
        f: [68:88]
          ident [f] [68:69]
          sig [2->1] [71:88]
            param [72:76]
              ident [int] [72:75]
            param [77:80]
              ident [int] [77:80]
            ident [int] [85:88]
      assign [92:99]
        ident [f] [92:93]
        ident [add] [96:99]