File tree Expand file tree Collapse file tree 1 file changed +0
-169
lines changed
test/syntax/__snapshots__ Expand file tree Collapse file tree 1 file changed +0
-169
lines changed Original file line number Diff line number Diff line change @@ -3655,172 +3655,3 @@ exports[`molang - syntax should be able to parse and match the syntax tree gener
3655
3655
} ,
3656
3656
]
3657
3657
` ;
3658
-
3659
- exports [` molang - syntax test 1` ] = `
3660
- [
3661
- {
3662
- " _processed" : true ,
3663
- " left" : {
3664
- " names" : [
3665
- " eat_anim" ,
3666
- ],
3667
- " position" : 0 ,
3668
- " scope" : " variable" ,
3669
- " type" : " Variable" ,
3670
- },
3671
- " position" : 18 ,
3672
- " right" : {
3673
- " arguments" : [
3674
- {
3675
- " _processed" : true ,
3676
- " left" : {
3677
- " names" : [
3678
- " eat_anim" ,
3679
- ],
3680
- " position" : 31 ,
3681
- " scope" : " variable" ,
3682
- " type" : " Variable" ,
3683
- },
3684
- " operator" : " +" ,
3685
- " position" : 49 ,
3686
- " right" : {
3687
- " _processed" : true ,
3688
- " left" : {
3689
- " _processed" : true ,
3690
- " left" : {
3691
- " _processed" : true ,
3692
- " condition" : {
3693
- " arguments" : [],
3694
- " names" : [
3695
- " is_grazing" ,
3696
- ],
3697
- " position" : 52 ,
3698
- " scope" : " query" ,
3699
- " type" : " FunctionCall" ,
3700
- },
3701
- " falseExpression" : {
3702
- " _processed" : true ,
3703
- " left" : {
3704
- " _processed" : true ,
3705
- " left" : {
3706
- " _processed" : true ,
3707
- " operand" : {
3708
- " names" : [
3709
- " eat_anim" ,
3710
- ],
3711
- " position" : 115 ,
3712
- " scope" : " variable" ,
3713
- " type" : " Variable" ,
3714
- },
3715
- " operator" : " -" ,
3716
- " position" : 114 ,
3717
- " type" : " UnaryOperation" ,
3718
- },
3719
- " operator" : " *" ,
3720
- " position" : 133 ,
3721
- " right" : {
3722
- " position" : 135 ,
3723
- " type" : " Literal" ,
3724
- " value" : " 0.4" ,
3725
- },
3726
- " type" : " BinaryOperation" ,
3727
- },
3728
- " operator" : " -" ,
3729
- " position" : 139 ,
3730
- " right" : {
3731
- " position" : 141 ,
3732
- " type" : " Literal" ,
3733
- " value" : " 0.05" ,
3734
- },
3735
- " type" : " BinaryOperation" ,
3736
- },
3737
- " position" : 69 ,
3738
- " trueExpression" : {
3739
- " _processed" : true ,
3740
- " left" : {
3741
- " _processed" : true ,
3742
- " left" : {
3743
- " _processed" : true ,
3744
- " left" : {
3745
- " position" : 73 ,
3746
- " type" : " Literal" ,
3747
- " value" : " 1.0" ,
3748
- },
3749
- " operator" : " -" ,
3750
- " position" : 77 ,
3751
- " right" : {
3752
- " names" : [
3753
- " eat_anim" ,
3754
- ],
3755
- " position" : 79 ,
3756
- " scope" : " variable" ,
3757
- " type" : " Variable" ,
3758
- },
3759
- " type" : " BinaryOperation" ,
3760
- },
3761
- " operator" : " *" ,
3762
- " position" : 98 ,
3763
- " right" : {
3764
- " position" : 100 ,
3765
- " type" : " Literal" ,
3766
- " value" : " 0.4" ,
3767
- },
3768
- " type" : " BinaryOperation" ,
3769
- },
3770
- " operator" : " +" ,
3771
- " position" : 104 ,
3772
- " right" : {
3773
- " position" : 106 ,
3774
- " type" : " Literal" ,
3775
- " value" : " 0.05" ,
3776
- },
3777
- " type" : " BinaryOperation" ,
3778
- },
3779
- " type" : " Conditional" ,
3780
- },
3781
- " operator" : " *" ,
3782
- " position" : 147 ,
3783
- " right" : {
3784
- " arguments" : [],
3785
- " names" : [
3786
- " delta_time" ,
3787
- ],
3788
- " position" : 149 ,
3789
- " scope" : " query" ,
3790
- " type" : " FunctionCall" ,
3791
- },
3792
- " type" : " BinaryOperation" ,
3793
- },
3794
- " operator" : " *" ,
3795
- " position" : 166 ,
3796
- " right" : {
3797
- " position" : 168 ,
3798
- " type" : " Literal" ,
3799
- " value" : " 20.0" ,
3800
- },
3801
- " type" : " BinaryOperation" ,
3802
- },
3803
- " type" : " BinaryOperation" ,
3804
- },
3805
- {
3806
- " position" : 174 ,
3807
- " type" : " Literal" ,
3808
- " value" : " 0.0" ,
3809
- },
3810
- {
3811
- " position" : 179 ,
3812
- " type" : " Literal" ,
3813
- " value" : " 1.0" ,
3814
- },
3815
- ],
3816
- " names" : [
3817
- " clamp" ,
3818
- ],
3819
- " position" : 20 ,
3820
- " scope" : " math" ,
3821
- " type" : " FunctionCall" ,
3822
- },
3823
- " type" : " Assignment" ,
3824
- } ,
3825
- ]
3826
- ` ;
You can’t perform that action at this time.
0 commit comments