@@ -561,23 +561,23 @@ _==_(size(x~google.expr.proto3.test.TestAllTypes^x.map_int64_nested_type
561
561
// Target
562
562
x~bool^x,
563
563
// Accumulator
564
- __result__ ,
564
+ @result ,
565
565
// Init
566
566
true~bool,
567
567
// LoopCondition
568
568
@not_strictly_false(
569
- __result__ ~bool^__result__
569
+ @result ~bool^@result
570
570
)~bool^not_strictly_false,
571
571
// LoopStep
572
572
_&&_(
573
- __result__ ~bool^__result__ ,
573
+ @result ~bool^@result ,
574
574
_==_(
575
575
y~!error!^y,
576
576
true~bool
577
577
)~bool^equals
578
578
)~bool^logical_and,
579
579
// Result
580
- __result__ ~bool^__result__ )~bool
580
+ @result ~bool^@result )~bool
581
581
` ,
582
582
err : `ERROR: <input>:1:1: expression of type 'bool' cannot be range of a comprehension (must be list, map, or dynamic)
583
583
| x.all(y, y == true)
@@ -597,22 +597,22 @@ _==_(size(x~google.expr.proto3.test.TestAllTypes^x.map_int64_nested_type
597
597
// Target
598
598
x~google.expr.proto3.test.TestAllTypes^x.repeated_int64~list(int),
599
599
// Accumulator
600
- __result__ ,
600
+ @result ,
601
601
// Init
602
602
[]~list(double),
603
603
// LoopCondition
604
604
true~bool,
605
605
// LoopStep
606
606
_+_(
607
- __result__ ~list(double)^__result__ ,
607
+ @result ~list(double)^@result ,
608
608
[
609
609
double(
610
610
x~int^x
611
611
)~double^int64_to_double
612
612
]~list(double)
613
613
)~list(double)^add_list,
614
614
// Result
615
- __result__ ~list(double)^__result__ )~list(double)
615
+ @result ~list(double)^@result )~list(double)
616
616
` ,
617
617
outType : types .NewListType (types .DoubleType ),
618
618
},
@@ -630,7 +630,7 @@ _==_(size(x~google.expr.proto3.test.TestAllTypes^x.map_int64_nested_type
630
630
// Target
631
631
x~google.expr.proto3.test.TestAllTypes^x.repeated_int64~list(int),
632
632
// Accumulator
633
- __result__ ,
633
+ @result ,
634
634
// Init
635
635
[]~list(double),
636
636
// LoopCondition
@@ -642,17 +642,17 @@ _==_(size(x~google.expr.proto3.test.TestAllTypes^x.map_int64_nested_type
642
642
0~int
643
643
)~bool^greater_int64,
644
644
_+_(
645
- __result__ ~list(double)^__result__ ,
645
+ @result ~list(double)^@result ,
646
646
[
647
647
double(
648
648
x~int^x
649
649
)~double^int64_to_double
650
650
]~list(double)
651
651
)~list(double)^add_list,
652
- __result__ ~list(double)^__result__
652
+ @result ~list(double)^@result
653
653
)~list(double)^conditional,
654
654
// Result
655
- __result__ ~list(double)^__result__ )~list(double)
655
+ @result ~list(double)^@result )~list(double)
656
656
` ,
657
657
outType : types .NewListType (types .DoubleType ),
658
658
},
@@ -887,56 +887,56 @@ ERROR: <input>:1:16: found no matching overload for '_!=_' applied to '(int, nul
887
887
// Target
888
888
x~google.expr.proto3.test.TestAllTypes^x.repeated_int64~list(int),
889
889
// Accumulator
890
- __result__ ,
890
+ @result ,
891
891
// Init
892
892
true~bool,
893
893
// LoopCondition
894
894
@not_strictly_false(
895
- __result__ ~bool^__result__
895
+ @result ~bool^@result
896
896
)~bool^not_strictly_false,
897
897
// LoopStep
898
898
_&&_(
899
- __result__ ~bool^__result__ ,
899
+ @result ~bool^@result ,
900
900
_>_(
901
901
e~int^e,
902
902
0~int
903
903
)~bool^greater_int64
904
904
)~bool^logical_and,
905
905
// Result
906
- __result__ ~bool^__result__ )~bool,
906
+ @result ~bool^@result )~bool,
907
907
__comprehension__(
908
908
// Variable
909
909
e,
910
910
// Target
911
911
x~google.expr.proto3.test.TestAllTypes^x.repeated_int64~list(int),
912
912
// Accumulator
913
- __result__ ,
913
+ @result ,
914
914
// Init
915
915
false~bool,
916
916
// LoopCondition
917
917
@not_strictly_false(
918
918
!_(
919
- __result__ ~bool^__result__
919
+ @result ~bool^@result
920
920
)~bool^logical_not
921
921
)~bool^not_strictly_false,
922
922
// LoopStep
923
923
_||_(
924
- __result__ ~bool^__result__ ,
924
+ @result ~bool^@result ,
925
925
_<_(
926
926
e~int^e,
927
927
0~int
928
928
)~bool^less_int64
929
929
)~bool^logical_or,
930
930
// Result
931
- __result__ ~bool^__result__ )~bool
931
+ @result ~bool^@result )~bool
932
932
)~bool^logical_and,
933
933
__comprehension__(
934
934
// Variable
935
935
e,
936
936
// Target
937
937
x~google.expr.proto3.test.TestAllTypes^x.repeated_int64~list(int),
938
938
// Accumulator
939
- __result__ ,
939
+ @result ,
940
940
// Init
941
941
0~int,
942
942
// LoopCondition
@@ -948,14 +948,14 @@ ERROR: <input>:1:16: found no matching overload for '_!=_' applied to '(int, nul
948
948
0~int
949
949
)~bool^equals,
950
950
_+_(
951
- __result__ ~int^__result__ ,
951
+ @result ~int^@result ,
952
952
1~int
953
953
)~int^add_int64,
954
- __result__ ~int^__result__
954
+ @result ~int^@result
955
955
)~int^conditional,
956
956
// Result
957
957
_==_(
958
- __result__ ~int^__result__ ,
958
+ @result ~int^@result ,
959
959
1~int
960
960
)~bool^equals)~bool
961
961
)~bool^logical_and` ,
@@ -986,7 +986,7 @@ ERROR: <input>:1:10: expected type 'bool' but found 'int'
986
986
// Target
987
987
lists~dyn^lists,
988
988
// Accumulator
989
- __result__ ,
989
+ @result ,
990
990
// Init
991
991
[]~list(dyn),
992
992
// LoopCondition
@@ -998,15 +998,15 @@ ERROR: <input>:1:10: expected type 'bool' but found 'int'
998
998
1.5~double
999
999
)~bool^greater_double|greater_int64_double|greater_uint64_double,
1000
1000
_+_(
1001
- __result__ ~list(dyn)^__result__ ,
1001
+ @result ~list(dyn)^@result ,
1002
1002
[
1003
1003
x~dyn^x
1004
1004
]~list(dyn)
1005
1005
)~list(dyn)^add_list,
1006
- __result__ ~list(dyn)^__result__
1006
+ @result ~list(dyn)^@result
1007
1007
)~list(dyn)^conditional,
1008
1008
// Result
1009
- __result__ ~list(dyn)^__result__ )~list(dyn)` ,
1009
+ @result ~list(dyn)^@result )~list(dyn)` ,
1010
1010
outType : types .NewListType (types .DynType ),
1011
1011
env : testEnv {
1012
1012
idents : []* decls.VariableDecl {
@@ -1381,7 +1381,7 @@ _&&_(_==_(list~type(list(dyn))^list,
1381
1381
"myextension"~string
1382
1382
)~dyn^index_map.customAttributes~dyn,
1383
1383
// Accumulator
1384
- __result__ ,
1384
+ @result ,
1385
1385
// Init
1386
1386
[]~list(dyn),
1387
1387
// LoopCondition
@@ -1393,15 +1393,15 @@ _&&_(_==_(list~type(list(dyn))^list,
1393
1393
"hobbies"~string
1394
1394
)~bool^equals,
1395
1395
_+_(
1396
- __result__ ~list(dyn)^__result__ ,
1396
+ @result ~list(dyn)^@result ,
1397
1397
[
1398
1398
x~dyn^x
1399
1399
]~list(dyn)
1400
1400
)~list(dyn)^add_list,
1401
- __result__ ~list(dyn)^__result__
1401
+ @result ~list(dyn)^@result
1402
1402
)~list(dyn)^conditional,
1403
1403
// Result
1404
- __result__ ~list(dyn)^__result__ )~list(dyn)` ,
1404
+ @result ~list(dyn)^@result )~list(dyn)` ,
1405
1405
env : testEnv {
1406
1406
idents : []* decls.VariableDecl {
1407
1407
decls .NewVariable ("args" , types .NewMapType (types .StringType , types .DynType )),
@@ -1867,14 +1867,14 @@ _&&_(_==_(list~type(list(dyn))^list,
1867
1867
1~int
1868
1868
]~list(int),
1869
1869
// Accumulator
1870
- __result__ ,
1870
+ @result ,
1871
1871
// Init
1872
1872
[]~list(list(int)),
1873
1873
// LoopCondition
1874
1874
true~bool,
1875
1875
// LoopStep
1876
1876
_+_(
1877
- __result__ ~list(list(int))^__result__ ,
1877
+ @result ~list(list(int))^@result ,
1878
1878
[
1879
1879
[
1880
1880
x~int^x,
@@ -1883,16 +1883,16 @@ _&&_(_==_(list~type(list(dyn))^list,
1883
1883
]~list(list(int))
1884
1884
)~list(list(int))^add_list,
1885
1885
// Result
1886
- __result__ ~list(list(int))^__result__ )~list(list(int)),
1886
+ @result ~list(list(int))^@result )~list(list(int)),
1887
1887
// Accumulator
1888
- __result__ ,
1888
+ @result ,
1889
1889
// Init
1890
1890
[]~list(list(list(int))),
1891
1891
// LoopCondition
1892
1892
true~bool,
1893
1893
// LoopStep
1894
1894
_+_(
1895
- __result__ ~list(list(list(int)))^__result__ ,
1895
+ @result ~list(list(list(int)))^@result ,
1896
1896
[
1897
1897
[
1898
1898
x~list(int)^x,
@@ -1901,7 +1901,7 @@ _&&_(_==_(list~type(list(dyn))^list,
1901
1901
]~list(list(list(int)))
1902
1902
)~list(list(list(int)))^add_list,
1903
1903
// Result
1904
- __result__ ~list(list(list(int)))^__result__ )~list(list(list(int)))
1904
+ @result ~list(list(list(int)))^@result )~list(list(list(int)))
1905
1905
` ,
1906
1906
},
1907
1907
{
@@ -1922,7 +1922,7 @@ _&&_(_==_(list~type(list(dyn))^list,
1922
1922
// Target
1923
1923
values~list(map(string, string))^values,
1924
1924
// Accumulator
1925
- __result__ ,
1925
+ @result ,
1926
1926
// Init
1927
1927
[]~list(map(string, string)),
1928
1928
// LoopCondition
@@ -1934,30 +1934,30 @@ _&&_(_==_(list~type(list(dyn))^list,
1934
1934
""~string
1935
1935
)~bool^not_equals,
1936
1936
_+_(
1937
- __result__ ~list(map(string, string))^__result__ ,
1937
+ @result ~list(map(string, string))^@result ,
1938
1938
[
1939
1939
i~map(string, string)^i
1940
1940
]~list(map(string, string))
1941
1941
)~list(map(string, string))^add_list,
1942
- __result__ ~list(map(string, string))^__result__
1942
+ @result ~list(map(string, string))^@result
1943
1943
)~list(map(string, string))^conditional,
1944
1944
// Result
1945
- __result__ ~list(map(string, string))^__result__ )~list(map(string, string)),
1945
+ @result ~list(map(string, string))^@result )~list(map(string, string)),
1946
1946
// Accumulator
1947
- __result__ ,
1947
+ @result ,
1948
1948
// Init
1949
1949
[]~list(string),
1950
1950
// LoopCondition
1951
1951
true~bool,
1952
1952
// LoopStep
1953
1953
_+_(
1954
- __result__ ~list(string)^__result__ ,
1954
+ @result ~list(string)^@result ,
1955
1955
[
1956
1956
i~map(string, string)^i.content~string
1957
1957
]~list(string)
1958
1958
)~list(string)^add_list,
1959
1959
// Result
1960
- __result__ ~list(string)^__result__ )~list(string)` ,
1960
+ @result ~list(string)^@result )~list(string)` ,
1961
1961
},
1962
1962
{
1963
1963
in : `[{}.map(c,c,c)]+[{}.map(c,c,c)]` ,
@@ -1970,7 +1970,7 @@ _&&_(_==_(list~type(list(dyn))^list,
1970
1970
// Target
1971
1971
{}~map(bool, dyn),
1972
1972
// Accumulator
1973
- __result__ ,
1973
+ @result ,
1974
1974
// Init
1975
1975
[]~list(bool),
1976
1976
// LoopCondition
@@ -1979,15 +1979,15 @@ _&&_(_==_(list~type(list(dyn))^list,
1979
1979
_?_:_(
1980
1980
c~bool^c,
1981
1981
_+_(
1982
- __result__ ~list(bool)^__result__ ,
1982
+ @result ~list(bool)^@result ,
1983
1983
[
1984
1984
c~bool^c
1985
1985
]~list(bool)
1986
1986
)~list(bool)^add_list,
1987
- __result__ ~list(bool)^__result__
1987
+ @result ~list(bool)^@result
1988
1988
)~list(bool)^conditional,
1989
1989
// Result
1990
- __result__ ~list(bool)^__result__ )~list(bool)
1990
+ @result ~list(bool)^@result )~list(bool)
1991
1991
]~list(list(bool)),
1992
1992
[
1993
1993
__comprehension__(
@@ -1996,7 +1996,7 @@ _&&_(_==_(list~type(list(dyn))^list,
1996
1996
// Target
1997
1997
{}~map(bool, dyn),
1998
1998
// Accumulator
1999
- __result__ ,
1999
+ @result ,
2000
2000
// Init
2001
2001
[]~list(bool),
2002
2002
// LoopCondition
@@ -2005,15 +2005,15 @@ _&&_(_==_(list~type(list(dyn))^list,
2005
2005
_?_:_(
2006
2006
c~bool^c,
2007
2007
_+_(
2008
- __result__ ~list(bool)^__result__ ,
2008
+ @result ~list(bool)^@result ,
2009
2009
[
2010
2010
c~bool^c
2011
2011
]~list(bool)
2012
2012
)~list(bool)^add_list,
2013
- __result__ ~list(bool)^__result__
2013
+ @result ~list(bool)^@result
2014
2014
)~list(bool)^conditional,
2015
2015
// Result
2016
- __result__ ~list(bool)^__result__ )~list(bool)
2016
+ @result ~list(bool)^@result )~list(bool)
2017
2017
]~list(list(bool))
2018
2018
)~list(list(bool))^add_list` ,
2019
2019
},
@@ -2241,14 +2241,14 @@ _&&_(_==_(list~type(list(dyn))^list,
2241
2241
// Target
2242
2242
{}~map(dyn, dyn),
2243
2243
// Accumulator
2244
- __result__ ,
2244
+ @result ,
2245
2245
// Init
2246
2246
[]~list(list(dyn)),
2247
2247
// LoopCondition
2248
2248
true~bool,
2249
2249
// LoopStep
2250
2250
_+_(
2251
- __result__ ~list(list(dyn))^__result__ ,
2251
+ @result ~list(list(dyn))^@result ,
2252
2252
[
2253
2253
[
2254
2254
c~dyn^c,
@@ -2259,7 +2259,7 @@ _&&_(_==_(list~type(list(dyn))^list,
2259
2259
]~list(list(dyn))
2260
2260
)~list(list(dyn))^add_list,
2261
2261
// Result
2262
- __result__ ~list(list(dyn))^__result__ )~list(list(dyn))` ,
2262
+ @result ~list(list(dyn))^@result )~list(list(dyn))` ,
2263
2263
outType : types .NewListType (types .NewListType (types .DynType )),
2264
2264
},
2265
2265
}
0 commit comments