~mna/snow unlisted

snow/pkg/parser/testdata/struct_simple_generic.snow.want -rw-r--r-- 637 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
file [2, #0] [0:66]
  struct [1] [0:28]
    ident [A] [7:8]
    generic [8:12]
      param [9:11]
        ident [$T] [9:11]
    var [17:26]
      x: [21:26]
        ident [x] [21:22]
        ident [$T] [24:26]
  fn [30:66]
    ident [main] [33:37]
    sig [0->0] [37:39]
    block [1] [40:66]
      let [44:64]
        a= [48:64]
          ident [a] [48:49]
          call [1] [52:64]
            generic ident [52:58]
              ident [A] [52:53]
              generic [53:58]
                param [54:57]
                  ident [int] [54:57]
            item: [59:63]
              ident [x] [59:60]
              int [1] [62:63]