code.iteration.tokens.json
10.1 KB
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
{"type":"newline","loc":{"start":{"line":2,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":2,"column":1}}}
{"type":"code","loc":{"start":{"line":2,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":2,"column":22}},"val":"var items = [1,2,3]","mustEscape":false,"buffer":false}
{"type":"newline","loc":{"start":{"line":4,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":4,"column":1}}}
{"type":"tag","loc":{"start":{"line":4,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":4,"column":3}},"val":"ul"}
{"type":"indent","loc":{"start":{"line":5,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":5,"column":3}},"val":2}
{"type":"code","loc":{"start":{"line":5,"column":3},"filename":"/cases/code.iteration.pug","end":{"line":5,"column":34}},"val":"items.forEach(function(item){","mustEscape":false,"buffer":false}
{"type":"indent","loc":{"start":{"line":6,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":6,"column":5}},"val":4}
{"type":"tag","loc":{"start":{"line":6,"column":5},"filename":"/cases/code.iteration.pug","end":{"line":6,"column":7}},"val":"li"}
{"type":"code","loc":{"start":{"line":6,"column":7},"filename":"/cases/code.iteration.pug","end":{"line":6,"column":13}},"val":"item","mustEscape":true,"buffer":true}
{"type":"outdent","loc":{"start":{"line":7,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":7,"column":3}}}
{"type":"code","loc":{"start":{"line":7,"column":3},"filename":"/cases/code.iteration.pug","end":{"line":7,"column":7}},"val":"})","mustEscape":false,"buffer":false}
{"type":"outdent","loc":{"start":{"line":9,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":9,"column":1}}}
{"type":"code","loc":{"start":{"line":9,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":9,"column":22}},"val":"var items = [1,2,3]","mustEscape":false,"buffer":false}
{"type":"newline","loc":{"start":{"line":11,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":11,"column":1}}}
{"type":"tag","loc":{"start":{"line":11,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":11,"column":3}},"val":"ul"}
{"type":"indent","loc":{"start":{"line":12,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":12,"column":3}},"val":2}
{"type":"each","loc":{"start":{"line":12,"column":3},"filename":"/cases/code.iteration.pug","end":{"line":12,"column":23}},"val":"item","key":"i","code":"items"}
{"type":"indent","loc":{"start":{"line":13,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":13,"column":5}},"val":4}
{"type":"tag","loc":{"start":{"line":13,"column":5},"filename":"/cases/code.iteration.pug","end":{"line":13,"column":7}},"val":"li"}
{"type":"start-attributes","loc":{"start":{"line":13,"column":7},"filename":"/cases/code.iteration.pug","end":{"line":13,"column":8}}}
{"type":"attribute","loc":{"start":{"line":13,"column":8},"filename":"/cases/code.iteration.pug","end":{"line":13,"column":25}},"name":"class","mustEscape":true,"val":"'item-' + i"}
{"type":"end-attributes","loc":{"start":{"line":13,"column":25},"filename":"/cases/code.iteration.pug","end":{"line":13,"column":26}}}
{"type":"code","loc":{"start":{"line":13,"column":26},"filename":"/cases/code.iteration.pug","end":{"line":13,"column":32}},"val":"item","mustEscape":true,"buffer":true}
{"type":"outdent","loc":{"start":{"line":15,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":15,"column":1}}}
{"type":"outdent","loc":{"start":{"line":15,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":15,"column":1}}}
{"type":"tag","loc":{"start":{"line":15,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":15,"column":3}},"val":"ul"}
{"type":"indent","loc":{"start":{"line":16,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":16,"column":3}},"val":2}
{"type":"each","loc":{"start":{"line":16,"column":3},"filename":"/cases/code.iteration.pug","end":{"line":16,"column":24}},"val":"item","key":"i","code":"items"}
{"type":"indent","loc":{"start":{"line":17,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":17,"column":5}},"val":4}
{"type":"tag","loc":{"start":{"line":17,"column":5},"filename":"/cases/code.iteration.pug","end":{"line":17,"column":7}},"val":"li"}
{"type":"code","loc":{"start":{"line":17,"column":7},"filename":"/cases/code.iteration.pug","end":{"line":17,"column":13}},"val":"item","mustEscape":true,"buffer":true}
{"type":"outdent","loc":{"start":{"line":19,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":19,"column":1}}}
{"type":"outdent","loc":{"start":{"line":19,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":19,"column":1}}}
{"type":"tag","loc":{"start":{"line":19,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":19,"column":3}},"val":"ul"}
{"type":"indent","loc":{"start":{"line":20,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":20,"column":3}},"val":2}
{"type":"each","loc":{"start":{"line":20,"column":3},"filename":"/cases/code.iteration.pug","end":{"line":20,"column":22}},"val":"$item","key":null,"code":"items"}
{"type":"indent","loc":{"start":{"line":21,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":21,"column":5}},"val":4}
{"type":"tag","loc":{"start":{"line":21,"column":5},"filename":"/cases/code.iteration.pug","end":{"line":21,"column":7}},"val":"li"}
{"type":"code","loc":{"start":{"line":21,"column":7},"filename":"/cases/code.iteration.pug","end":{"line":21,"column":14}},"val":"$item","mustEscape":true,"buffer":true}
{"type":"outdent","loc":{"start":{"line":23,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":23,"column":1}}}
{"type":"outdent","loc":{"start":{"line":23,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":23,"column":1}}}
{"type":"code","loc":{"start":{"line":23,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":23,"column":23}},"val":"var nums = [1, 2, 3]","mustEscape":false,"buffer":false}
{"type":"newline","loc":{"start":{"line":24,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":24,"column":1}}}
{"type":"code","loc":{"start":{"line":24,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":24,"column":32}},"val":"var letters = ['a', 'b', 'c']","mustEscape":false,"buffer":false}
{"type":"newline","loc":{"start":{"line":26,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":26,"column":1}}}
{"type":"tag","loc":{"start":{"line":26,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":26,"column":3}},"val":"ul"}
{"type":"indent","loc":{"start":{"line":27,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":27,"column":3}},"val":2}
{"type":"each","loc":{"start":{"line":27,"column":3},"filename":"/cases/code.iteration.pug","end":{"line":27,"column":19}},"val":"l","key":null,"code":"letters"}
{"type":"indent","loc":{"start":{"line":28,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":28,"column":5}},"val":4}
{"type":"each","loc":{"start":{"line":28,"column":5},"filename":"/cases/code.iteration.pug","end":{"line":28,"column":18}},"val":"n","key":null,"code":"nums"}
{"type":"indent","loc":{"start":{"line":29,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":29,"column":7}},"val":6}
{"type":"tag","loc":{"start":{"line":29,"column":7},"filename":"/cases/code.iteration.pug","end":{"line":29,"column":9}},"val":"li"}
{"type":"interpolated-code","loc":{"start":{"line":29,"column":10},"filename":"/cases/code.iteration.pug","end":{"line":29,"column":14}},"mustEscape":true,"buffer":true,"val":"n"}
{"type":"text","loc":{"start":{"line":29,"column":14},"filename":"/cases/code.iteration.pug","end":{"line":29,"column":16}},"val":": "}
{"type":"interpolated-code","loc":{"start":{"line":29,"column":16},"filename":"/cases/code.iteration.pug","end":{"line":29,"column":20}},"mustEscape":true,"buffer":true,"val":"l"}
{"type":"outdent","loc":{"start":{"line":31,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":31,"column":1}}}
{"type":"outdent","loc":{"start":{"line":31,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":31,"column":1}}}
{"type":"outdent","loc":{"start":{"line":31,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":31,"column":1}}}
{"type":"code","loc":{"start":{"line":31,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":31,"column":16}},"val":"var count = 1","mustEscape":false,"buffer":false}
{"type":"newline","loc":{"start":{"line":32,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":32,"column":1}}}
{"type":"code","loc":{"start":{"line":32,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":32,"column":66}},"val":"var counter = function() { return [count++, count++, count++] }","mustEscape":false,"buffer":false}
{"type":"newline","loc":{"start":{"line":33,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":33,"column":1}}}
{"type":"tag","loc":{"start":{"line":33,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":33,"column":3}},"val":"ul"}
{"type":"indent","loc":{"start":{"line":34,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":34,"column":3}},"val":2}
{"type":"each","loc":{"start":{"line":34,"column":3},"filename":"/cases/code.iteration.pug","end":{"line":34,"column":21}},"val":"n","key":null,"code":"counter()"}
{"type":"indent","loc":{"start":{"line":35,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":35,"column":5}},"val":4}
{"type":"tag","loc":{"start":{"line":35,"column":5},"filename":"/cases/code.iteration.pug","end":{"line":35,"column":7}},"val":"li"}
{"type":"interpolated-code","loc":{"start":{"line":35,"column":8},"filename":"/cases/code.iteration.pug","end":{"line":35,"column":12}},"mustEscape":true,"buffer":true,"val":"n"}
{"type":"outdent","loc":{"start":{"line":36,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":36,"column":1}}}
{"type":"outdent","loc":{"start":{"line":36,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":36,"column":1}}}
{"type":"eos","loc":{"start":{"line":36,"column":1},"filename":"/cases/code.iteration.pug","end":{"line":36,"column":1}}}