amis-formula 1.3.13 → 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2306 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`parser:anonymous-function 1`] = `
4
+ Object {
5
+ "args": Array [],
6
+ "end": Object {
7
+ "column": 8,
8
+ "index": 7,
9
+ "line": 1,
10
+ },
11
+ "return": Object {
12
+ "end": Object {
13
+ "column": 8,
14
+ "index": 7,
15
+ "line": 1,
16
+ },
17
+ "start": Object {
18
+ "column": 7,
19
+ "index": 6,
20
+ "line": 1,
21
+ },
22
+ "type": "literal",
23
+ "value": 1,
24
+ },
25
+ "start": Object {
26
+ "column": 1,
27
+ "index": 0,
28
+ "line": 1,
29
+ },
30
+ "type": "anonymous_function",
31
+ }
32
+ `;
33
+
34
+ exports[`parser:anonymous-function 2`] = `
35
+ Object {
36
+ "args": Array [],
37
+ "end": Object {
38
+ "column": 15,
39
+ "index": 14,
40
+ "line": 1,
41
+ },
42
+ "return": Object {
43
+ "end": Object {
44
+ "column": 15,
45
+ "index": 14,
46
+ "line": 1,
47
+ },
48
+ "start": Object {
49
+ "column": 7,
50
+ "index": 6,
51
+ "line": 1,
52
+ },
53
+ "type": "string",
54
+ "value": "string",
55
+ },
56
+ "start": Object {
57
+ "column": 1,
58
+ "index": 0,
59
+ "line": 1,
60
+ },
61
+ "type": "anonymous_function",
62
+ }
63
+ `;
64
+
65
+ exports[`parser:anonymous-function 3`] = `
66
+ Object {
67
+ "args": Array [
68
+ Object {
69
+ "end": Object {
70
+ "column": 3,
71
+ "index": 2,
72
+ "line": 1,
73
+ },
74
+ "name": "a",
75
+ "start": Object {
76
+ "column": 2,
77
+ "index": 1,
78
+ "line": 1,
79
+ },
80
+ "type": "variable",
81
+ },
82
+ ],
83
+ "end": Object {
84
+ "column": 25,
85
+ "index": 24,
86
+ "line": 1,
87
+ },
88
+ "return": Object {
89
+ "body": Array [
90
+ Object {
91
+ "end": Object {
92
+ "column": 14,
93
+ "index": 13,
94
+ "line": 1,
95
+ },
96
+ "host": Object {
97
+ "end": Object {
98
+ "column": 12,
99
+ "index": 11,
100
+ "line": 1,
101
+ },
102
+ "name": "a",
103
+ "start": Object {
104
+ "column": 11,
105
+ "index": 10,
106
+ "line": 1,
107
+ },
108
+ "type": "variable",
109
+ },
110
+ "key": Object {
111
+ "end": Object {
112
+ "column": 14,
113
+ "index": 13,
114
+ "line": 1,
115
+ },
116
+ "name": "a",
117
+ "start": Object {
118
+ "column": 13,
119
+ "index": 12,
120
+ "line": 1,
121
+ },
122
+ "type": "identifier",
123
+ },
124
+ "start": Object {
125
+ "column": 11,
126
+ "index": 10,
127
+ "line": 1,
128
+ },
129
+ "type": "getter",
130
+ },
131
+ Object {
132
+ "end": Object {
133
+ "column": 18,
134
+ "index": 17,
135
+ "line": 1,
136
+ },
137
+ "start": Object {
138
+ "column": 15,
139
+ "index": 14,
140
+ "line": 1,
141
+ },
142
+ "type": "template_raw",
143
+ "value": "---",
144
+ },
145
+ Object {
146
+ "end": Object {
147
+ "column": 23,
148
+ "index": 22,
149
+ "line": 1,
150
+ },
151
+ "host": Object {
152
+ "end": Object {
153
+ "column": 21,
154
+ "index": 20,
155
+ "line": 1,
156
+ },
157
+ "name": "a",
158
+ "start": Object {
159
+ "column": 20,
160
+ "index": 19,
161
+ "line": 1,
162
+ },
163
+ "type": "variable",
164
+ },
165
+ "key": Object {
166
+ "end": Object {
167
+ "column": 23,
168
+ "index": 22,
169
+ "line": 1,
170
+ },
171
+ "name": "b",
172
+ "start": Object {
173
+ "column": 22,
174
+ "index": 21,
175
+ "line": 1,
176
+ },
177
+ "type": "identifier",
178
+ },
179
+ "start": Object {
180
+ "column": 20,
181
+ "index": 19,
182
+ "line": 1,
183
+ },
184
+ "type": "getter",
185
+ },
186
+ ],
187
+ "end": Object {
188
+ "column": 25,
189
+ "index": 24,
190
+ "line": 1,
191
+ },
192
+ "start": Object {
193
+ "column": 8,
194
+ "index": 7,
195
+ "line": 1,
196
+ },
197
+ "type": "template",
198
+ },
199
+ "start": Object {
200
+ "column": 1,
201
+ "index": 0,
202
+ "line": 1,
203
+ },
204
+ "type": "anonymous_function",
205
+ }
206
+ `;
207
+
208
+ exports[`parser:array-literall 1`] = `
209
+ Object {
210
+ "end": Object {
211
+ "column": 21,
212
+ "index": 20,
213
+ "line": 1,
214
+ },
215
+ "members": Array [
216
+ Object {
217
+ "end": Object {
218
+ "column": 3,
219
+ "index": 2,
220
+ "line": 1,
221
+ },
222
+ "name": "a",
223
+ "start": Object {
224
+ "column": 2,
225
+ "index": 1,
226
+ "line": 1,
227
+ },
228
+ "type": "variable",
229
+ },
230
+ Object {
231
+ "end": Object {
232
+ "column": 6,
233
+ "index": 5,
234
+ "line": 1,
235
+ },
236
+ "name": "b",
237
+ "start": Object {
238
+ "column": 5,
239
+ "index": 4,
240
+ "line": 1,
241
+ },
242
+ "type": "variable",
243
+ },
244
+ Object {
245
+ "end": Object {
246
+ "column": 9,
247
+ "index": 8,
248
+ "line": 1,
249
+ },
250
+ "start": Object {
251
+ "column": 8,
252
+ "index": 7,
253
+ "line": 1,
254
+ },
255
+ "type": "literal",
256
+ "value": 1,
257
+ },
258
+ Object {
259
+ "end": Object {
260
+ "column": 12,
261
+ "index": 11,
262
+ "line": 1,
263
+ },
264
+ "start": Object {
265
+ "column": 11,
266
+ "index": 10,
267
+ "line": 1,
268
+ },
269
+ "type": "literal",
270
+ "value": 2,
271
+ },
272
+ Object {
273
+ "end": Object {
274
+ "column": 20,
275
+ "index": 19,
276
+ "line": 1,
277
+ },
278
+ "members": Array [
279
+ Object {
280
+ "key": Object {
281
+ "end": Object {
282
+ "column": 16,
283
+ "index": 15,
284
+ "line": 1,
285
+ },
286
+ "name": "a",
287
+ "start": Object {
288
+ "column": 15,
289
+ "index": 14,
290
+ "line": 1,
291
+ },
292
+ "type": "identifier",
293
+ },
294
+ "value": Object {
295
+ "end": Object {
296
+ "column": 19,
297
+ "index": 18,
298
+ "line": 1,
299
+ },
300
+ "start": Object {
301
+ "column": 18,
302
+ "index": 17,
303
+ "line": 1,
304
+ },
305
+ "type": "literal",
306
+ "value": 1,
307
+ },
308
+ },
309
+ ],
310
+ "start": Object {
311
+ "column": 14,
312
+ "index": 13,
313
+ "line": 1,
314
+ },
315
+ "type": "object",
316
+ },
317
+ ],
318
+ "start": Object {
319
+ "column": 1,
320
+ "index": 0,
321
+ "line": 1,
322
+ },
323
+ "type": "array",
324
+ }
325
+ `;
326
+
327
+ exports[`parser:binary-expression 1`] = `
328
+ Object {
329
+ "end": Object {
330
+ "column": 12,
331
+ "index": 11,
332
+ "line": 1,
333
+ },
334
+ "left": Object {
335
+ "end": Object {
336
+ "column": 7,
337
+ "index": 6,
338
+ "line": 1,
339
+ },
340
+ "left": Object {
341
+ "end": Object {
342
+ "column": 2,
343
+ "index": 1,
344
+ "line": 1,
345
+ },
346
+ "name": "a",
347
+ "start": Object {
348
+ "column": 1,
349
+ "index": 0,
350
+ "line": 1,
351
+ },
352
+ "type": "variable",
353
+ },
354
+ "op": "&&",
355
+ "right": Object {
356
+ "end": Object {
357
+ "column": 7,
358
+ "index": 6,
359
+ "line": 1,
360
+ },
361
+ "name": "b",
362
+ "start": Object {
363
+ "column": 6,
364
+ "index": 5,
365
+ "line": 1,
366
+ },
367
+ "type": "variable",
368
+ },
369
+ "start": Object {
370
+ "column": 1,
371
+ "index": 0,
372
+ "line": 1,
373
+ },
374
+ "type": "and",
375
+ },
376
+ "op": "&&",
377
+ "right": Object {
378
+ "end": Object {
379
+ "column": 12,
380
+ "index": 11,
381
+ "line": 1,
382
+ },
383
+ "name": "c",
384
+ "start": Object {
385
+ "column": 11,
386
+ "index": 10,
387
+ "line": 1,
388
+ },
389
+ "type": "variable",
390
+ },
391
+ "start": Object {
392
+ "column": 1,
393
+ "index": 0,
394
+ "line": 1,
395
+ },
396
+ "type": "and",
397
+ }
398
+ `;
399
+
400
+ exports[`parser:binary-expression 2`] = `
401
+ Object {
402
+ "end": Object {
403
+ "column": 12,
404
+ "index": 11,
405
+ "line": 1,
406
+ },
407
+ "left": Object {
408
+ "end": Object {
409
+ "column": 7,
410
+ "index": 6,
411
+ "line": 1,
412
+ },
413
+ "left": Object {
414
+ "end": Object {
415
+ "column": 2,
416
+ "index": 1,
417
+ "line": 1,
418
+ },
419
+ "name": "a",
420
+ "start": Object {
421
+ "column": 1,
422
+ "index": 0,
423
+ "line": 1,
424
+ },
425
+ "type": "variable",
426
+ },
427
+ "op": "&&",
428
+ "right": Object {
429
+ "end": Object {
430
+ "column": 7,
431
+ "index": 6,
432
+ "line": 1,
433
+ },
434
+ "name": "b",
435
+ "start": Object {
436
+ "column": 6,
437
+ "index": 5,
438
+ "line": 1,
439
+ },
440
+ "type": "variable",
441
+ },
442
+ "start": Object {
443
+ "column": 1,
444
+ "index": 0,
445
+ "line": 1,
446
+ },
447
+ "type": "and",
448
+ },
449
+ "op": "||",
450
+ "right": Object {
451
+ "end": Object {
452
+ "column": 12,
453
+ "index": 11,
454
+ "line": 1,
455
+ },
456
+ "name": "c",
457
+ "start": Object {
458
+ "column": 11,
459
+ "index": 10,
460
+ "line": 1,
461
+ },
462
+ "type": "variable",
463
+ },
464
+ "start": Object {
465
+ "column": 1,
466
+ "index": 0,
467
+ "line": 1,
468
+ },
469
+ "type": "or",
470
+ }
471
+ `;
472
+
473
+ exports[`parser:binary-expression 3`] = `
474
+ Object {
475
+ "end": Object {
476
+ "column": 12,
477
+ "index": 11,
478
+ "line": 1,
479
+ },
480
+ "left": Object {
481
+ "end": Object {
482
+ "column": 2,
483
+ "index": 1,
484
+ "line": 1,
485
+ },
486
+ "name": "a",
487
+ "start": Object {
488
+ "column": 1,
489
+ "index": 0,
490
+ "line": 1,
491
+ },
492
+ "type": "variable",
493
+ },
494
+ "op": "||",
495
+ "right": Object {
496
+ "end": Object {
497
+ "column": 12,
498
+ "index": 11,
499
+ "line": 1,
500
+ },
501
+ "left": Object {
502
+ "end": Object {
503
+ "column": 7,
504
+ "index": 6,
505
+ "line": 1,
506
+ },
507
+ "name": "b",
508
+ "start": Object {
509
+ "column": 6,
510
+ "index": 5,
511
+ "line": 1,
512
+ },
513
+ "type": "variable",
514
+ },
515
+ "op": "&&",
516
+ "right": Object {
517
+ "end": Object {
518
+ "column": 12,
519
+ "index": 11,
520
+ "line": 1,
521
+ },
522
+ "name": "c",
523
+ "start": Object {
524
+ "column": 11,
525
+ "index": 10,
526
+ "line": 1,
527
+ },
528
+ "type": "variable",
529
+ },
530
+ "start": Object {
531
+ "column": 6,
532
+ "index": 5,
533
+ "line": 1,
534
+ },
535
+ "type": "and",
536
+ },
537
+ "start": Object {
538
+ "column": 1,
539
+ "index": 0,
540
+ "line": 1,
541
+ },
542
+ "type": "or",
543
+ }
544
+ `;
545
+
546
+ exports[`parser:binary-expression 4`] = `
547
+ Object {
548
+ "end": Object {
549
+ "column": 14,
550
+ "index": 13,
551
+ "line": 1,
552
+ },
553
+ "left": Object {
554
+ "end": Object {
555
+ "column": 8,
556
+ "index": 7,
557
+ "line": 1,
558
+ },
559
+ "left": Object {
560
+ "end": Object {
561
+ "column": 2,
562
+ "index": 1,
563
+ "line": 1,
564
+ },
565
+ "name": "a",
566
+ "start": Object {
567
+ "column": 1,
568
+ "index": 0,
569
+ "line": 1,
570
+ },
571
+ "type": "variable",
572
+ },
573
+ "op": "!==",
574
+ "right": Object {
575
+ "end": Object {
576
+ "column": 8,
577
+ "index": 7,
578
+ "line": 1,
579
+ },
580
+ "name": "b",
581
+ "start": Object {
582
+ "column": 7,
583
+ "index": 6,
584
+ "line": 1,
585
+ },
586
+ "type": "variable",
587
+ },
588
+ "start": Object {
589
+ "column": 1,
590
+ "index": 0,
591
+ "line": 1,
592
+ },
593
+ "type": "strneq",
594
+ },
595
+ "op": "===",
596
+ "right": Object {
597
+ "end": Object {
598
+ "column": 14,
599
+ "index": 13,
600
+ "line": 1,
601
+ },
602
+ "name": "c",
603
+ "start": Object {
604
+ "column": 13,
605
+ "index": 12,
606
+ "line": 1,
607
+ },
608
+ "type": "variable",
609
+ },
610
+ "start": Object {
611
+ "column": 1,
612
+ "index": 0,
613
+ "line": 1,
614
+ },
615
+ "type": "streq",
616
+ }
617
+ `;
618
+
619
+ exports[`parser:complex 1`] = `
620
+ Object {
621
+ "body": Array [
622
+ Object {
623
+ "end": Object {
624
+ "column": 13,
625
+ "index": 12,
626
+ "line": 1,
627
+ },
628
+ "start": Object {
629
+ "column": 1,
630
+ "index": 0,
631
+ "line": 1,
632
+ },
633
+ "type": "raw",
634
+ "value": "raw content ",
635
+ },
636
+ Object {
637
+ "body": Object {
638
+ "body": Array [
639
+ Object {
640
+ "end": Object {
641
+ "column": 28,
642
+ "index": 27,
643
+ "line": 1,
644
+ },
645
+ "start": Object {
646
+ "column": 16,
647
+ "index": 15,
648
+ "line": 1,
649
+ },
650
+ "type": "template_raw",
651
+ "value": "es tempalte ",
652
+ },
653
+ Object {
654
+ "body": Array [
655
+ Object {
656
+ "end": Object {
657
+ "column": 37,
658
+ "index": 36,
659
+ "line": 1,
660
+ },
661
+ "start": Object {
662
+ "column": 31,
663
+ "index": 30,
664
+ "line": 1,
665
+ },
666
+ "type": "template_raw",
667
+ "value": "deeper",
668
+ },
669
+ Object {
670
+ "end": Object {
671
+ "column": 44,
672
+ "index": 43,
673
+ "line": 1,
674
+ },
675
+ "left": Object {
676
+ "end": Object {
677
+ "column": 40,
678
+ "index": 39,
679
+ "line": 1,
680
+ },
681
+ "name": "a",
682
+ "start": Object {
683
+ "column": 39,
684
+ "index": 38,
685
+ "line": 1,
686
+ },
687
+ "type": "variable",
688
+ },
689
+ "op": "+",
690
+ "right": Object {
691
+ "end": Object {
692
+ "column": 44,
693
+ "index": 43,
694
+ "line": 1,
695
+ },
696
+ "start": Object {
697
+ "column": 43,
698
+ "index": 42,
699
+ "line": 1,
700
+ },
701
+ "type": "literal",
702
+ "value": 3,
703
+ },
704
+ "start": Object {
705
+ "column": 39,
706
+ "index": 38,
707
+ "line": 1,
708
+ },
709
+ "type": "add",
710
+ },
711
+ ],
712
+ "end": Object {
713
+ "column": 46,
714
+ "index": 45,
715
+ "line": 1,
716
+ },
717
+ "start": Object {
718
+ "column": 30,
719
+ "index": 29,
720
+ "line": 1,
721
+ },
722
+ "type": "template",
723
+ },
724
+ ],
725
+ "end": Object {
726
+ "column": 48,
727
+ "index": 47,
728
+ "line": 1,
729
+ },
730
+ "start": Object {
731
+ "column": 15,
732
+ "index": 14,
733
+ "line": 1,
734
+ },
735
+ "type": "template",
736
+ },
737
+ "end": Object {
738
+ "column": 49,
739
+ "index": 48,
740
+ "line": 1,
741
+ },
742
+ "start": Object {
743
+ "column": 13,
744
+ "index": 12,
745
+ "line": 1,
746
+ },
747
+ "type": "script",
748
+ },
749
+ ],
750
+ "end": Object {
751
+ "column": 49,
752
+ "index": 48,
753
+ "line": 1,
754
+ },
755
+ "start": Object {
756
+ "column": 1,
757
+ "index": 0,
758
+ "line": 1,
759
+ },
760
+ "type": "document",
761
+ }
762
+ `;
763
+
764
+ exports[`parser:conditional 1`] = `
765
+ Object {
766
+ "alternate": Object {
767
+ "end": Object {
768
+ "column": 10,
769
+ "index": 9,
770
+ "line": 1,
771
+ },
772
+ "name": "c",
773
+ "start": Object {
774
+ "column": 9,
775
+ "index": 8,
776
+ "line": 1,
777
+ },
778
+ "type": "variable",
779
+ },
780
+ "consequent": Object {
781
+ "end": Object {
782
+ "column": 6,
783
+ "index": 5,
784
+ "line": 1,
785
+ },
786
+ "name": "b",
787
+ "start": Object {
788
+ "column": 5,
789
+ "index": 4,
790
+ "line": 1,
791
+ },
792
+ "type": "variable",
793
+ },
794
+ "end": Object {
795
+ "column": 10,
796
+ "index": 9,
797
+ "line": 1,
798
+ },
799
+ "start": Object {
800
+ "column": 1,
801
+ "index": 0,
802
+ "line": 1,
803
+ },
804
+ "test": Object {
805
+ "end": Object {
806
+ "column": 2,
807
+ "index": 1,
808
+ "line": 1,
809
+ },
810
+ "name": "a",
811
+ "start": Object {
812
+ "column": 1,
813
+ "index": 0,
814
+ "line": 1,
815
+ },
816
+ "type": "variable",
817
+ },
818
+ "type": "conditional",
819
+ }
820
+ `;
821
+
822
+ exports[`parser:evalMode 1`] = `
823
+ Object {
824
+ "end": Object {
825
+ "column": 6,
826
+ "index": 5,
827
+ "line": 1,
828
+ },
829
+ "left": Object {
830
+ "end": Object {
831
+ "column": 2,
832
+ "index": 1,
833
+ "line": 1,
834
+ },
835
+ "name": "a",
836
+ "start": Object {
837
+ "column": 1,
838
+ "index": 0,
839
+ "line": 1,
840
+ },
841
+ "type": "variable",
842
+ },
843
+ "op": "+",
844
+ "right": Object {
845
+ "end": Object {
846
+ "column": 6,
847
+ "index": 5,
848
+ "line": 1,
849
+ },
850
+ "name": "b",
851
+ "start": Object {
852
+ "column": 5,
853
+ "index": 4,
854
+ "line": 1,
855
+ },
856
+ "type": "variable",
857
+ },
858
+ "start": Object {
859
+ "column": 1,
860
+ "index": 0,
861
+ "line": 1,
862
+ },
863
+ "type": "add",
864
+ }
865
+ `;
866
+
867
+ exports[`parser:filter 1`] = `
868
+ Object {
869
+ "body": Array [
870
+ Object {
871
+ "end": Object {
872
+ "column": 10,
873
+ "index": 9,
874
+ "line": 1,
875
+ },
876
+ "start": Object {
877
+ "column": 1,
878
+ "index": 0,
879
+ "line": 1,
880
+ },
881
+ "type": "raw",
882
+ "value": "$abc is ",
883
+ },
884
+ Object {
885
+ "body": Object {
886
+ "end": undefined,
887
+ "filters": Array [
888
+ Object {
889
+ "args": Array [],
890
+ "name": "html",
891
+ },
892
+ ],
893
+ "input": Object {
894
+ "end": Object {
895
+ "column": 15,
896
+ "index": 14,
897
+ "line": 1,
898
+ },
899
+ "name": "abc",
900
+ "start": Object {
901
+ "column": 12,
902
+ "index": 11,
903
+ "line": 1,
904
+ },
905
+ "type": "variable",
906
+ },
907
+ "start": Object {
908
+ "column": 12,
909
+ "index": 11,
910
+ "line": 1,
911
+ },
912
+ "type": "filter",
913
+ },
914
+ "end": Object {
915
+ "column": 23,
916
+ "index": 22,
917
+ "line": 1,
918
+ },
919
+ "start": Object {
920
+ "column": 10,
921
+ "index": 9,
922
+ "line": 1,
923
+ },
924
+ "type": "script",
925
+ },
926
+ ],
927
+ "end": Object {
928
+ "column": 23,
929
+ "index": 22,
930
+ "line": 1,
931
+ },
932
+ "start": Object {
933
+ "column": 1,
934
+ "index": 0,
935
+ "line": 1,
936
+ },
937
+ "type": "document",
938
+ }
939
+ `;
940
+
941
+ exports[`parser:filter-escape 1`] = `
942
+ Object {
943
+ "body": Array [
944
+ Object {
945
+ "end": Object {
946
+ "column": 10,
947
+ "index": 9,
948
+ "line": 1,
949
+ },
950
+ "start": Object {
951
+ "column": 1,
952
+ "index": 0,
953
+ "line": 1,
954
+ },
955
+ "type": "raw",
956
+ "value": "$abc is ",
957
+ },
958
+ Object {
959
+ "body": Object {
960
+ "end": undefined,
961
+ "filters": Array [
962
+ Object {
963
+ "args": Array [
964
+ "YYYY-MM-DD HH:mm:ss",
965
+ ],
966
+ "name": "date",
967
+ },
968
+ ],
969
+ "input": Object {
970
+ "end": Object {
971
+ "column": 15,
972
+ "index": 14,
973
+ "line": 1,
974
+ },
975
+ "name": "abc",
976
+ "start": Object {
977
+ "column": 12,
978
+ "index": 11,
979
+ "line": 1,
980
+ },
981
+ "type": "variable",
982
+ },
983
+ "start": Object {
984
+ "column": 12,
985
+ "index": 11,
986
+ "line": 1,
987
+ },
988
+ "type": "filter",
989
+ },
990
+ "end": Object {
991
+ "column": 46,
992
+ "index": 45,
993
+ "line": 1,
994
+ },
995
+ "start": Object {
996
+ "column": 10,
997
+ "index": 9,
998
+ "line": 1,
999
+ },
1000
+ "type": "script",
1001
+ },
1002
+ ],
1003
+ "end": Object {
1004
+ "column": 46,
1005
+ "index": 45,
1006
+ "line": 1,
1007
+ },
1008
+ "start": Object {
1009
+ "column": 1,
1010
+ "index": 0,
1011
+ "line": 1,
1012
+ },
1013
+ "type": "document",
1014
+ }
1015
+ `;
1016
+
1017
+ exports[`parser:functionCall 1`] = `
1018
+ Object {
1019
+ "args": Array [
1020
+ Object {
1021
+ "end": Object {
1022
+ "column": 11,
1023
+ "index": 10,
1024
+ "line": 1,
1025
+ },
1026
+ "name": "a",
1027
+ "start": Object {
1028
+ "column": 10,
1029
+ "index": 9,
1030
+ "line": 1,
1031
+ },
1032
+ "type": "variable",
1033
+ },
1034
+ Object {
1035
+ "args": Array [
1036
+ Object {
1037
+ "end": Object {
1038
+ "column": 23,
1039
+ "index": 22,
1040
+ "line": 1,
1041
+ },
1042
+ "name": "b",
1043
+ "start": Object {
1044
+ "column": 22,
1045
+ "index": 21,
1046
+ "line": 1,
1047
+ },
1048
+ "type": "variable",
1049
+ },
1050
+ ],
1051
+ "end": Object {
1052
+ "column": 24,
1053
+ "index": 23,
1054
+ "line": 1,
1055
+ },
1056
+ "identifier": "doAction",
1057
+ "start": Object {
1058
+ "column": 13,
1059
+ "index": 12,
1060
+ "line": 1,
1061
+ },
1062
+ "type": "func_call",
1063
+ },
1064
+ ],
1065
+ "end": Object {
1066
+ "column": 25,
1067
+ "index": 24,
1068
+ "line": 1,
1069
+ },
1070
+ "identifier": "doAction",
1071
+ "start": Object {
1072
+ "column": 1,
1073
+ "index": 0,
1074
+ "line": 1,
1075
+ },
1076
+ "type": "func_call",
1077
+ }
1078
+ `;
1079
+
1080
+ exports[`parser:group-expression 1`] = `
1081
+ Object {
1082
+ "end": Object {
1083
+ "column": 13,
1084
+ "index": 12,
1085
+ "line": 1,
1086
+ },
1087
+ "left": Object {
1088
+ "end": Object {
1089
+ "column": 2,
1090
+ "index": 1,
1091
+ "line": 1,
1092
+ },
1093
+ "name": "a",
1094
+ "start": Object {
1095
+ "column": 1,
1096
+ "index": 0,
1097
+ "line": 1,
1098
+ },
1099
+ "type": "variable",
1100
+ },
1101
+ "op": "&&",
1102
+ "right": Object {
1103
+ "end": Object {
1104
+ "column": 13,
1105
+ "index": 12,
1106
+ "line": 1,
1107
+ },
1108
+ "left": Object {
1109
+ "end": Object {
1110
+ "column": 8,
1111
+ "index": 7,
1112
+ "line": 1,
1113
+ },
1114
+ "name": "b",
1115
+ "start": Object {
1116
+ "column": 7,
1117
+ "index": 6,
1118
+ "line": 1,
1119
+ },
1120
+ "type": "variable",
1121
+ },
1122
+ "op": "&&",
1123
+ "right": Object {
1124
+ "end": Object {
1125
+ "column": 13,
1126
+ "index": 12,
1127
+ "line": 1,
1128
+ },
1129
+ "name": "c",
1130
+ "start": Object {
1131
+ "column": 12,
1132
+ "index": 11,
1133
+ "line": 1,
1134
+ },
1135
+ "type": "variable",
1136
+ },
1137
+ "start": Object {
1138
+ "column": 7,
1139
+ "index": 6,
1140
+ "line": 1,
1141
+ },
1142
+ "type": "and",
1143
+ },
1144
+ "start": Object {
1145
+ "column": 1,
1146
+ "index": 0,
1147
+ "line": 1,
1148
+ },
1149
+ "type": "and",
1150
+ }
1151
+ `;
1152
+
1153
+ exports[`parser:multi-expression 1`] = `
1154
+ Object {
1155
+ "body": Array [
1156
+ Object {
1157
+ "end": Object {
1158
+ "column": 5,
1159
+ "index": 4,
1160
+ "line": 1,
1161
+ },
1162
+ "host": Object {
1163
+ "end": Object {
1164
+ "column": 3,
1165
+ "index": 2,
1166
+ "line": 1,
1167
+ },
1168
+ "name": "a",
1169
+ "start": Object {
1170
+ "column": 2,
1171
+ "index": 1,
1172
+ "line": 1,
1173
+ },
1174
+ "type": "variable",
1175
+ },
1176
+ "key": Object {
1177
+ "end": Object {
1178
+ "column": 5,
1179
+ "index": 4,
1180
+ "line": 1,
1181
+ },
1182
+ "name": "b",
1183
+ "start": Object {
1184
+ "column": 4,
1185
+ "index": 3,
1186
+ "line": 1,
1187
+ },
1188
+ "type": "identifier",
1189
+ },
1190
+ "start": Object {
1191
+ "column": 2,
1192
+ "index": 1,
1193
+ "line": 1,
1194
+ },
1195
+ "type": "getter",
1196
+ },
1197
+ Object {
1198
+ "end": Object {
1199
+ "column": 10,
1200
+ "index": 9,
1201
+ "line": 1,
1202
+ },
1203
+ "host": Object {
1204
+ "end": Object {
1205
+ "column": 8,
1206
+ "index": 7,
1207
+ "line": 1,
1208
+ },
1209
+ "name": "a",
1210
+ "start": Object {
1211
+ "column": 7,
1212
+ "index": 6,
1213
+ "line": 1,
1214
+ },
1215
+ "type": "variable",
1216
+ },
1217
+ "key": Object {
1218
+ "end": Object {
1219
+ "column": 10,
1220
+ "index": 9,
1221
+ "line": 1,
1222
+ },
1223
+ "name": "b",
1224
+ "start": Object {
1225
+ "column": 9,
1226
+ "index": 8,
1227
+ "line": 1,
1228
+ },
1229
+ "type": "variable",
1230
+ },
1231
+ "start": Object {
1232
+ "column": 7,
1233
+ "index": 6,
1234
+ "line": 1,
1235
+ },
1236
+ "type": "getter",
1237
+ },
1238
+ Object {
1239
+ "end": Object {
1240
+ "column": 18,
1241
+ "index": 17,
1242
+ "line": 1,
1243
+ },
1244
+ "host": Object {
1245
+ "end": Object {
1246
+ "column": 14,
1247
+ "index": 13,
1248
+ "line": 1,
1249
+ },
1250
+ "name": "a",
1251
+ "start": Object {
1252
+ "column": 13,
1253
+ "index": 12,
1254
+ "line": 1,
1255
+ },
1256
+ "type": "variable",
1257
+ },
1258
+ "key": Object {
1259
+ "end": Object {
1260
+ "column": 18,
1261
+ "index": 17,
1262
+ "line": 1,
1263
+ },
1264
+ "start": Object {
1265
+ "column": 15,
1266
+ "index": 14,
1267
+ "line": 1,
1268
+ },
1269
+ "type": "string",
1270
+ "value": "c",
1271
+ },
1272
+ "start": Object {
1273
+ "column": 13,
1274
+ "index": 12,
1275
+ "line": 1,
1276
+ },
1277
+ "type": "getter",
1278
+ },
1279
+ Object {
1280
+ "end": Object {
1281
+ "column": 26,
1282
+ "index": 25,
1283
+ "line": 1,
1284
+ },
1285
+ "host": Object {
1286
+ "end": Object {
1287
+ "column": 22,
1288
+ "index": 21,
1289
+ "line": 1,
1290
+ },
1291
+ "name": "a",
1292
+ "start": Object {
1293
+ "column": 21,
1294
+ "index": 20,
1295
+ "line": 1,
1296
+ },
1297
+ "type": "variable",
1298
+ },
1299
+ "key": Object {
1300
+ "body": Array [
1301
+ Object {
1302
+ "end": Object {
1303
+ "column": 25,
1304
+ "index": 24,
1305
+ "line": 1,
1306
+ },
1307
+ "start": Object {
1308
+ "column": 24,
1309
+ "index": 23,
1310
+ "line": 1,
1311
+ },
1312
+ "type": "template_raw",
1313
+ "value": "d",
1314
+ },
1315
+ ],
1316
+ "end": Object {
1317
+ "column": 26,
1318
+ "index": 25,
1319
+ "line": 1,
1320
+ },
1321
+ "start": Object {
1322
+ "column": 23,
1323
+ "index": 22,
1324
+ "line": 1,
1325
+ },
1326
+ "type": "template",
1327
+ },
1328
+ "start": Object {
1329
+ "column": 21,
1330
+ "index": 20,
1331
+ "line": 1,
1332
+ },
1333
+ "type": "getter",
1334
+ },
1335
+ ],
1336
+ "end": Object {
1337
+ "column": 28,
1338
+ "index": 27,
1339
+ "line": 1,
1340
+ },
1341
+ "start": Object {
1342
+ "column": 1,
1343
+ "index": 0,
1344
+ "line": 1,
1345
+ },
1346
+ "type": "expression-list",
1347
+ }
1348
+ `;
1349
+
1350
+ exports[`parser:number 1`] = `
1351
+ Object {
1352
+ "end": Object {
1353
+ "column": 13,
1354
+ "index": 12,
1355
+ "line": 1,
1356
+ },
1357
+ "left": Object {
1358
+ "end": Object {
1359
+ "column": 9,
1360
+ "index": 8,
1361
+ "line": 1,
1362
+ },
1363
+ "left": Object {
1364
+ "end": Object {
1365
+ "column": 2,
1366
+ "index": 1,
1367
+ "line": 1,
1368
+ },
1369
+ "op": "-",
1370
+ "start": Object {
1371
+ "column": 1,
1372
+ "index": 0,
1373
+ "line": 1,
1374
+ },
1375
+ "type": "unary",
1376
+ "value": Object {
1377
+ "end": Object {
1378
+ "column": 3,
1379
+ "index": 2,
1380
+ "line": 1,
1381
+ },
1382
+ "start": Object {
1383
+ "column": 2,
1384
+ "index": 1,
1385
+ "line": 1,
1386
+ },
1387
+ "type": "literal",
1388
+ "value": 1,
1389
+ },
1390
+ },
1391
+ "op": "+",
1392
+ "right": Object {
1393
+ "end": Object {
1394
+ "column": 9,
1395
+ "index": 8,
1396
+ "line": 1,
1397
+ },
1398
+ "start": Object {
1399
+ "column": 6,
1400
+ "index": 5,
1401
+ "line": 1,
1402
+ },
1403
+ "type": "literal",
1404
+ "value": 2.5,
1405
+ },
1406
+ "start": Object {
1407
+ "column": 1,
1408
+ "index": 0,
1409
+ "line": 1,
1410
+ },
1411
+ "type": "add",
1412
+ },
1413
+ "op": "+",
1414
+ "right": Object {
1415
+ "end": Object {
1416
+ "column": 13,
1417
+ "index": 12,
1418
+ "line": 1,
1419
+ },
1420
+ "start": Object {
1421
+ "column": 12,
1422
+ "index": 11,
1423
+ "line": 1,
1424
+ },
1425
+ "type": "literal",
1426
+ "value": 3,
1427
+ },
1428
+ "start": Object {
1429
+ "column": 1,
1430
+ "index": 0,
1431
+ "line": 1,
1432
+ },
1433
+ "type": "add",
1434
+ }
1435
+ `;
1436
+
1437
+ exports[`parser:object-literall 1`] = `
1438
+ Object {
1439
+ "end": Object {
1440
+ "column": 32,
1441
+ "index": 31,
1442
+ "line": 1,
1443
+ },
1444
+ "members": Array [
1445
+ Object {
1446
+ "key": Object {
1447
+ "end": Object {
1448
+ "column": 3,
1449
+ "index": 2,
1450
+ "line": 1,
1451
+ },
1452
+ "name": "a",
1453
+ "start": Object {
1454
+ "column": 2,
1455
+ "index": 1,
1456
+ "line": 1,
1457
+ },
1458
+ "type": "identifier",
1459
+ },
1460
+ "value": Object {
1461
+ "end": Object {
1462
+ "column": 6,
1463
+ "index": 5,
1464
+ "line": 1,
1465
+ },
1466
+ "start": Object {
1467
+ "column": 5,
1468
+ "index": 4,
1469
+ "line": 1,
1470
+ },
1471
+ "type": "literal",
1472
+ "value": 1,
1473
+ },
1474
+ },
1475
+ Object {
1476
+ "key": Object {
1477
+ "end": Object {
1478
+ "column": 11,
1479
+ "index": 10,
1480
+ "line": 1,
1481
+ },
1482
+ "start": Object {
1483
+ "column": 8,
1484
+ "index": 7,
1485
+ "line": 1,
1486
+ },
1487
+ "type": "string",
1488
+ "value": "b",
1489
+ },
1490
+ "value": Object {
1491
+ "end": Object {
1492
+ "column": 14,
1493
+ "index": 13,
1494
+ "line": 1,
1495
+ },
1496
+ "start": Object {
1497
+ "column": 13,
1498
+ "index": 12,
1499
+ "line": 1,
1500
+ },
1501
+ "type": "literal",
1502
+ "value": 2,
1503
+ },
1504
+ },
1505
+ Object {
1506
+ "key": Object {
1507
+ "body": Array [
1508
+ Object {
1509
+ "end": Object {
1510
+ "column": 19,
1511
+ "index": 18,
1512
+ "line": 1,
1513
+ },
1514
+ "start": Object {
1515
+ "column": 18,
1516
+ "index": 17,
1517
+ "line": 1,
1518
+ },
1519
+ "type": "template_raw",
1520
+ "value": "c",
1521
+ },
1522
+ ],
1523
+ "end": Object {
1524
+ "column": 20,
1525
+ "index": 19,
1526
+ "line": 1,
1527
+ },
1528
+ "start": Object {
1529
+ "column": 17,
1530
+ "index": 16,
1531
+ "line": 1,
1532
+ },
1533
+ "type": "template",
1534
+ },
1535
+ "value": Object {
1536
+ "end": Object {
1537
+ "column": 24,
1538
+ "index": 23,
1539
+ "line": 1,
1540
+ },
1541
+ "start": Object {
1542
+ "column": 23,
1543
+ "index": 22,
1544
+ "line": 1,
1545
+ },
1546
+ "type": "literal",
1547
+ "value": 3,
1548
+ },
1549
+ },
1550
+ Object {
1551
+ "key": Object {
1552
+ "end": Object {
1553
+ "column": 27,
1554
+ "index": 26,
1555
+ "line": 1,
1556
+ },
1557
+ "name": "d",
1558
+ "start": Object {
1559
+ "column": 26,
1560
+ "index": 25,
1561
+ "line": 1,
1562
+ },
1563
+ "type": "identifier",
1564
+ },
1565
+ "value": Object {
1566
+ "end": Object {
1567
+ "column": 31,
1568
+ "index": 30,
1569
+ "line": 1,
1570
+ },
1571
+ "members": Array [],
1572
+ "start": Object {
1573
+ "column": 29,
1574
+ "index": 28,
1575
+ "line": 1,
1576
+ },
1577
+ "type": "object",
1578
+ },
1579
+ },
1580
+ ],
1581
+ "start": Object {
1582
+ "column": 1,
1583
+ "index": 0,
1584
+ "line": 1,
1585
+ },
1586
+ "type": "object",
1587
+ }
1588
+ `;
1589
+
1590
+ exports[`parser:simple 1`] = `
1591
+ Object {
1592
+ "body": Array [
1593
+ Object {
1594
+ "end": Object {
1595
+ "column": 22,
1596
+ "index": 21,
1597
+ "line": 1,
1598
+ },
1599
+ "start": Object {
1600
+ "column": 1,
1601
+ "index": 0,
1602
+ "line": 1,
1603
+ },
1604
+ "type": "raw",
1605
+ "value": "expression result is ",
1606
+ },
1607
+ Object {
1608
+ "body": Object {
1609
+ "end": Object {
1610
+ "column": 29,
1611
+ "index": 28,
1612
+ "line": 1,
1613
+ },
1614
+ "left": Object {
1615
+ "end": Object {
1616
+ "column": 25,
1617
+ "index": 24,
1618
+ "line": 1,
1619
+ },
1620
+ "name": "a",
1621
+ "start": Object {
1622
+ "column": 24,
1623
+ "index": 23,
1624
+ "line": 1,
1625
+ },
1626
+ "type": "variable",
1627
+ },
1628
+ "op": "+",
1629
+ "right": Object {
1630
+ "end": Object {
1631
+ "column": 29,
1632
+ "index": 28,
1633
+ "line": 1,
1634
+ },
1635
+ "name": "b",
1636
+ "start": Object {
1637
+ "column": 28,
1638
+ "index": 27,
1639
+ "line": 1,
1640
+ },
1641
+ "type": "variable",
1642
+ },
1643
+ "start": Object {
1644
+ "column": 24,
1645
+ "index": 23,
1646
+ "line": 1,
1647
+ },
1648
+ "type": "add",
1649
+ },
1650
+ "end": Object {
1651
+ "column": 30,
1652
+ "index": 29,
1653
+ "line": 1,
1654
+ },
1655
+ "start": Object {
1656
+ "column": 22,
1657
+ "index": 21,
1658
+ "line": 1,
1659
+ },
1660
+ "type": "script",
1661
+ },
1662
+ ],
1663
+ "end": Object {
1664
+ "column": 30,
1665
+ "index": 29,
1666
+ "line": 1,
1667
+ },
1668
+ "start": Object {
1669
+ "column": 1,
1670
+ "index": 0,
1671
+ "line": 1,
1672
+ },
1673
+ "type": "document",
1674
+ }
1675
+ `;
1676
+
1677
+ exports[`parser:single-string 1`] = `
1678
+ Object {
1679
+ "end": Object {
1680
+ "column": 9,
1681
+ "index": 8,
1682
+ "line": 1,
1683
+ },
1684
+ "start": Object {
1685
+ "column": 1,
1686
+ "index": 0,
1687
+ "line": 1,
1688
+ },
1689
+ "type": "string",
1690
+ "value": "string",
1691
+ }
1692
+ `;
1693
+
1694
+ exports[`parser:string 1`] = `
1695
+ Object {
1696
+ "end": Object {
1697
+ "column": 29,
1698
+ "index": 28,
1699
+ "line": 1,
1700
+ },
1701
+ "start": Object {
1702
+ "column": 1,
1703
+ "index": 0,
1704
+ "line": 1,
1705
+ },
1706
+ "type": "string",
1707
+ "value": "string literall, escape \\"",
1708
+ }
1709
+ `;
1710
+
1711
+ exports[`parser:template 1`] = `
1712
+ Object {
1713
+ "body": Array [
1714
+ Object {
1715
+ "end": Object {
1716
+ "column": 5,
1717
+ "index": 4,
1718
+ "line": 1,
1719
+ },
1720
+ "start": Object {
1721
+ "column": 2,
1722
+ "index": 1,
1723
+ "line": 1,
1724
+ },
1725
+ "type": "template_raw",
1726
+ "value": "abc",
1727
+ },
1728
+ Object {
1729
+ "end": Object {
1730
+ "column": 12,
1731
+ "index": 11,
1732
+ "line": 1,
1733
+ },
1734
+ "left": Object {
1735
+ "end": Object {
1736
+ "column": 8,
1737
+ "index": 7,
1738
+ "line": 1,
1739
+ },
1740
+ "name": "a",
1741
+ "start": Object {
1742
+ "column": 7,
1743
+ "index": 6,
1744
+ "line": 1,
1745
+ },
1746
+ "type": "variable",
1747
+ },
1748
+ "op": "+",
1749
+ "right": Object {
1750
+ "end": Object {
1751
+ "column": 12,
1752
+ "index": 11,
1753
+ "line": 1,
1754
+ },
1755
+ "name": "b",
1756
+ "start": Object {
1757
+ "column": 11,
1758
+ "index": 10,
1759
+ "line": 1,
1760
+ },
1761
+ "type": "variable",
1762
+ },
1763
+ "start": Object {
1764
+ "column": 7,
1765
+ "index": 6,
1766
+ "line": 1,
1767
+ },
1768
+ "type": "add",
1769
+ },
1770
+ ],
1771
+ "end": Object {
1772
+ "column": 14,
1773
+ "index": 13,
1774
+ "line": 1,
1775
+ },
1776
+ "start": Object {
1777
+ "column": 1,
1778
+ "index": 0,
1779
+ "line": 1,
1780
+ },
1781
+ "type": "template",
1782
+ }
1783
+ `;
1784
+
1785
+ exports[`parser:unary-expression 1`] = `
1786
+ Object {
1787
+ "end": Object {
1788
+ "column": 2,
1789
+ "index": 1,
1790
+ "line": 1,
1791
+ },
1792
+ "op": "!",
1793
+ "start": Object {
1794
+ "column": 1,
1795
+ "index": 0,
1796
+ "line": 1,
1797
+ },
1798
+ "type": "unary",
1799
+ "value": Object {
1800
+ "end": Object {
1801
+ "column": 3,
1802
+ "index": 2,
1803
+ "line": 1,
1804
+ },
1805
+ "op": "!",
1806
+ "start": Object {
1807
+ "column": 2,
1808
+ "index": 1,
1809
+ "line": 1,
1810
+ },
1811
+ "type": "unary",
1812
+ "value": Object {
1813
+ "end": Object {
1814
+ "column": 4,
1815
+ "index": 3,
1816
+ "line": 1,
1817
+ },
1818
+ "name": "a",
1819
+ "start": Object {
1820
+ "column": 3,
1821
+ "index": 2,
1822
+ "line": 1,
1823
+ },
1824
+ "type": "variable",
1825
+ },
1826
+ },
1827
+ }
1828
+ `;
1829
+
1830
+ exports[`parser:variable-geter 1`] = `
1831
+ Object {
1832
+ "args": Array [
1833
+ Object {
1834
+ "end": Object {
1835
+ "column": 13,
1836
+ "index": 12,
1837
+ "line": 1,
1838
+ },
1839
+ "host": Object {
1840
+ "end": Object {
1841
+ "column": 11,
1842
+ "index": 10,
1843
+ "line": 1,
1844
+ },
1845
+ "name": "a",
1846
+ "start": Object {
1847
+ "column": 10,
1848
+ "index": 9,
1849
+ "line": 1,
1850
+ },
1851
+ "type": "variable",
1852
+ },
1853
+ "key": Object {
1854
+ "end": Object {
1855
+ "column": 13,
1856
+ "index": 12,
1857
+ "line": 1,
1858
+ },
1859
+ "name": "b",
1860
+ "start": Object {
1861
+ "column": 12,
1862
+ "index": 11,
1863
+ "line": 1,
1864
+ },
1865
+ "type": "identifier",
1866
+ },
1867
+ "start": Object {
1868
+ "column": 10,
1869
+ "index": 9,
1870
+ "line": 1,
1871
+ },
1872
+ "type": "getter",
1873
+ },
1874
+ Object {
1875
+ "end": Object {
1876
+ "column": 18,
1877
+ "index": 17,
1878
+ "line": 1,
1879
+ },
1880
+ "host": Object {
1881
+ "end": Object {
1882
+ "column": 16,
1883
+ "index": 15,
1884
+ "line": 1,
1885
+ },
1886
+ "name": "a",
1887
+ "start": Object {
1888
+ "column": 15,
1889
+ "index": 14,
1890
+ "line": 1,
1891
+ },
1892
+ "type": "variable",
1893
+ },
1894
+ "key": Object {
1895
+ "end": Object {
1896
+ "column": 18,
1897
+ "index": 17,
1898
+ "line": 1,
1899
+ },
1900
+ "name": "b",
1901
+ "start": Object {
1902
+ "column": 17,
1903
+ "index": 16,
1904
+ "line": 1,
1905
+ },
1906
+ "type": "variable",
1907
+ },
1908
+ "start": Object {
1909
+ "column": 15,
1910
+ "index": 14,
1911
+ "line": 1,
1912
+ },
1913
+ "type": "getter",
1914
+ },
1915
+ Object {
1916
+ "end": Object {
1917
+ "column": 26,
1918
+ "index": 25,
1919
+ "line": 1,
1920
+ },
1921
+ "host": Object {
1922
+ "end": Object {
1923
+ "column": 22,
1924
+ "index": 21,
1925
+ "line": 1,
1926
+ },
1927
+ "name": "a",
1928
+ "start": Object {
1929
+ "column": 21,
1930
+ "index": 20,
1931
+ "line": 1,
1932
+ },
1933
+ "type": "variable",
1934
+ },
1935
+ "key": Object {
1936
+ "end": Object {
1937
+ "column": 26,
1938
+ "index": 25,
1939
+ "line": 1,
1940
+ },
1941
+ "start": Object {
1942
+ "column": 23,
1943
+ "index": 22,
1944
+ "line": 1,
1945
+ },
1946
+ "type": "string",
1947
+ "value": "c",
1948
+ },
1949
+ "start": Object {
1950
+ "column": 21,
1951
+ "index": 20,
1952
+ "line": 1,
1953
+ },
1954
+ "type": "getter",
1955
+ },
1956
+ Object {
1957
+ "end": Object {
1958
+ "column": 34,
1959
+ "index": 33,
1960
+ "line": 1,
1961
+ },
1962
+ "host": Object {
1963
+ "end": Object {
1964
+ "column": 30,
1965
+ "index": 29,
1966
+ "line": 1,
1967
+ },
1968
+ "name": "a",
1969
+ "start": Object {
1970
+ "column": 29,
1971
+ "index": 28,
1972
+ "line": 1,
1973
+ },
1974
+ "type": "variable",
1975
+ },
1976
+ "key": Object {
1977
+ "body": Array [
1978
+ Object {
1979
+ "end": Object {
1980
+ "column": 33,
1981
+ "index": 32,
1982
+ "line": 1,
1983
+ },
1984
+ "start": Object {
1985
+ "column": 32,
1986
+ "index": 31,
1987
+ "line": 1,
1988
+ },
1989
+ "type": "template_raw",
1990
+ "value": "d",
1991
+ },
1992
+ ],
1993
+ "end": Object {
1994
+ "column": 34,
1995
+ "index": 33,
1996
+ "line": 1,
1997
+ },
1998
+ "start": Object {
1999
+ "column": 31,
2000
+ "index": 30,
2001
+ "line": 1,
2002
+ },
2003
+ "type": "template",
2004
+ },
2005
+ "start": Object {
2006
+ "column": 29,
2007
+ "index": 28,
2008
+ "line": 1,
2009
+ },
2010
+ "type": "getter",
2011
+ },
2012
+ ],
2013
+ "end": Object {
2014
+ "column": 36,
2015
+ "index": 35,
2016
+ "line": 1,
2017
+ },
2018
+ "identifier": "doAction",
2019
+ "start": Object {
2020
+ "column": 1,
2021
+ "index": 0,
2022
+ "line": 1,
2023
+ },
2024
+ "type": "func_call",
2025
+ }
2026
+ `;
2027
+
2028
+ exports[`parser:variable-geter2 1`] = `
2029
+ Object {
2030
+ "end": Object {
2031
+ "column": 17,
2032
+ "index": 16,
2033
+ "line": 1,
2034
+ },
2035
+ "host": Object {
2036
+ "end": Object {
2037
+ "column": 12,
2038
+ "index": 11,
2039
+ "line": 1,
2040
+ },
2041
+ "host": Object {
2042
+ "end": Object {
2043
+ "column": 9,
2044
+ "index": 8,
2045
+ "line": 1,
2046
+ },
2047
+ "host": Object {
2048
+ "end": Object {
2049
+ "column": 4,
2050
+ "index": 3,
2051
+ "line": 1,
2052
+ },
2053
+ "host": Object {
2054
+ "end": Object {
2055
+ "column": 2,
2056
+ "index": 1,
2057
+ "line": 1,
2058
+ },
2059
+ "name": "a",
2060
+ "start": Object {
2061
+ "column": 1,
2062
+ "index": 0,
2063
+ "line": 1,
2064
+ },
2065
+ "type": "variable",
2066
+ },
2067
+ "key": Object {
2068
+ "end": Object {
2069
+ "column": 4,
2070
+ "index": 3,
2071
+ "line": 1,
2072
+ },
2073
+ "name": "b",
2074
+ "start": Object {
2075
+ "column": 3,
2076
+ "index": 2,
2077
+ "line": 1,
2078
+ },
2079
+ "type": "variable",
2080
+ },
2081
+ "start": Object {
2082
+ "column": 1,
2083
+ "index": 0,
2084
+ "line": 1,
2085
+ },
2086
+ "type": "getter",
2087
+ },
2088
+ "key": Object {
2089
+ "end": Object {
2090
+ "column": 9,
2091
+ "index": 8,
2092
+ "line": 1,
2093
+ },
2094
+ "start": Object {
2095
+ "column": 6,
2096
+ "index": 5,
2097
+ "line": 1,
2098
+ },
2099
+ "type": "string",
2100
+ "value": "c",
2101
+ },
2102
+ "start": Object {
2103
+ "column": 1,
2104
+ "index": 0,
2105
+ "line": 1,
2106
+ },
2107
+ "type": "getter",
2108
+ },
2109
+ "key": Object {
2110
+ "end": Object {
2111
+ "column": 12,
2112
+ "index": 11,
2113
+ "line": 1,
2114
+ },
2115
+ "name": "d",
2116
+ "start": Object {
2117
+ "column": 11,
2118
+ "index": 10,
2119
+ "line": 1,
2120
+ },
2121
+ "type": "variable",
2122
+ },
2123
+ "start": Object {
2124
+ "column": 1,
2125
+ "index": 0,
2126
+ "line": 1,
2127
+ },
2128
+ "type": "getter",
2129
+ },
2130
+ "key": Object {
2131
+ "body": Array [
2132
+ Object {
2133
+ "end": Object {
2134
+ "column": 16,
2135
+ "index": 15,
2136
+ "line": 1,
2137
+ },
2138
+ "start": Object {
2139
+ "column": 15,
2140
+ "index": 14,
2141
+ "line": 1,
2142
+ },
2143
+ "type": "template_raw",
2144
+ "value": "x",
2145
+ },
2146
+ ],
2147
+ "end": Object {
2148
+ "column": 17,
2149
+ "index": 16,
2150
+ "line": 1,
2151
+ },
2152
+ "start": Object {
2153
+ "column": 14,
2154
+ "index": 13,
2155
+ "line": 1,
2156
+ },
2157
+ "type": "template",
2158
+ },
2159
+ "start": Object {
2160
+ "column": 1,
2161
+ "index": 0,
2162
+ "line": 1,
2163
+ },
2164
+ "type": "getter",
2165
+ }
2166
+ `;
2167
+
2168
+ exports[`parser:variable-geter2 2`] = `
2169
+ Object {
2170
+ "end": Object {
2171
+ "column": 16,
2172
+ "index": 15,
2173
+ "line": 1,
2174
+ },
2175
+ "host": Object {
2176
+ "end": Object {
2177
+ "column": 12,
2178
+ "index": 11,
2179
+ "line": 1,
2180
+ },
2181
+ "host": Object {
2182
+ "end": Object {
2183
+ "column": 9,
2184
+ "index": 8,
2185
+ "line": 1,
2186
+ },
2187
+ "host": Object {
2188
+ "end": Object {
2189
+ "column": 4,
2190
+ "index": 3,
2191
+ "line": 1,
2192
+ },
2193
+ "host": Object {
2194
+ "end": Object {
2195
+ "column": 2,
2196
+ "index": 1,
2197
+ "line": 1,
2198
+ },
2199
+ "name": "a",
2200
+ "start": Object {
2201
+ "column": 1,
2202
+ "index": 0,
2203
+ "line": 1,
2204
+ },
2205
+ "type": "variable",
2206
+ },
2207
+ "key": Object {
2208
+ "end": Object {
2209
+ "column": 4,
2210
+ "index": 3,
2211
+ "line": 1,
2212
+ },
2213
+ "name": "b",
2214
+ "start": Object {
2215
+ "column": 3,
2216
+ "index": 2,
2217
+ "line": 1,
2218
+ },
2219
+ "type": "variable",
2220
+ },
2221
+ "start": Object {
2222
+ "column": 1,
2223
+ "index": 0,
2224
+ "line": 1,
2225
+ },
2226
+ "type": "getter",
2227
+ },
2228
+ "key": Object {
2229
+ "end": Object {
2230
+ "column": 9,
2231
+ "index": 8,
2232
+ "line": 1,
2233
+ },
2234
+ "start": Object {
2235
+ "column": 6,
2236
+ "index": 5,
2237
+ "line": 1,
2238
+ },
2239
+ "type": "string",
2240
+ "value": "c",
2241
+ },
2242
+ "start": Object {
2243
+ "column": 1,
2244
+ "index": 0,
2245
+ "line": 1,
2246
+ },
2247
+ "type": "getter",
2248
+ },
2249
+ "key": Object {
2250
+ "end": Object {
2251
+ "column": 12,
2252
+ "index": 11,
2253
+ "line": 1,
2254
+ },
2255
+ "name": "d",
2256
+ "start": Object {
2257
+ "column": 11,
2258
+ "index": 10,
2259
+ "line": 1,
2260
+ },
2261
+ "type": "identifier",
2262
+ },
2263
+ "start": Object {
2264
+ "column": 1,
2265
+ "index": 0,
2266
+ "line": 1,
2267
+ },
2268
+ "type": "getter",
2269
+ },
2270
+ "key": Object {
2271
+ "body": Array [
2272
+ Object {
2273
+ "end": Object {
2274
+ "column": 15,
2275
+ "index": 14,
2276
+ "line": 1,
2277
+ },
2278
+ "start": Object {
2279
+ "column": 14,
2280
+ "index": 13,
2281
+ "line": 1,
2282
+ },
2283
+ "type": "template_raw",
2284
+ "value": "x",
2285
+ },
2286
+ ],
2287
+ "end": Object {
2288
+ "column": 16,
2289
+ "index": 15,
2290
+ "line": 1,
2291
+ },
2292
+ "start": Object {
2293
+ "column": 13,
2294
+ "index": 12,
2295
+ "line": 1,
2296
+ },
2297
+ "type": "template",
2298
+ },
2299
+ "start": Object {
2300
+ "column": 1,
2301
+ "index": 0,
2302
+ "line": 1,
2303
+ },
2304
+ "type": "getter",
2305
+ }
2306
+ `;