~mna/snow unlisted

snow/pkg/parser/testdata/struct_complex_generic.snow.want -rw-r--r-- 2.3 KiB
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
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
file [4, #0] [0:274]
  struct [3] [0:106]
    ident [A] [7:8]
    generic [9:17]
      param [10:13]
        ident [$T] [10:12]
      param [14:16]
        ident [$U] [14:16]
    struct [1] [22:65]
      ident [B] [29:30]
      generic [31:35]
        param [32:34]
          ident [$V] [32:34]
      var [42:61]
        ffb: [46:61]
          ident [ffb] [46:49]
          sig [1->1] [51:61]
            param [52:54]
              ident [$V] [52:54]
            ident [$V] [59:61]
    var [69:82]
      bb: [73:82]
        ident [bb] [73:75]
        generic ident [77:82]
          ident [B] [77:78]
          generic [78:82]
            param [79:81]
              ident [$U] [79:81]
    var [85:104]
      ffa: [89:104]
        ident [ffa] [89:92]
        sig [1->1] [94:104]
          param [95:97]
            ident [$T] [95:97]
          ident [$T] [102:104]
  fn [108:150]
    ident [str] [111:114]
    sig [1->1] [114:135]
      param [115:124]
        ident [s] [115:116]
        ident [string] [118:124]
      ident [string] [129:135]
    block [1] [136:150]
      return [140:148]
        ident [s] [147:148]
  fn [152:192]
    ident [integer] [155:162]
    sig [1->1] [162:177]
      param [163:169]
        ident [i] [163:164]
        ident [int] [166:169]
      ident [int] [174:177]
    block [1] [178:192]
      return [182:190]
        ident [i] [189:190]
  fn [194:274]
    ident [main] [197:201]
    sig [0->0] [201:203]
    block [1] [204:274]
      var [208:272]
        a= [212:272]
          ident [a] [212:213]
          call [2] [216:272]
            generic ident [216:230]
              ident [A] [216:217]
              generic [217:230]
                param [218:222]
                  ident [int] [218:221]
                param [223:229]
                  ident [string] [223:229]
            item: [232:258]
              ident [bb] [232:234]
              call [1] [236:257]
                select [236:247]
                  ident [A] [236:237]
                  generic ident [238:247]
                    ident [B] [238:239]
                    generic [239:247]
                      param [240:246]
                        ident [string] [240:246]
                item: [248:256]
                  ident [ffb] [248:251]
                  ident [str] [253:256]
            item: [259:271]
              ident [ffa] [259:262]
              ident [integer] [264:271]