remove underscore from package names
This commit is contained in:
90
php7/php7.go
90
php7/php7.go
@@ -10,8 +10,8 @@ import (
|
||||
|
||||
"github.com/z7zmey/php-parser/node"
|
||||
"github.com/z7zmey/php-parser/node/expr"
|
||||
"github.com/z7zmey/php-parser/node/expr/assign_op"
|
||||
"github.com/z7zmey/php-parser/node/expr/binary_op"
|
||||
"github.com/z7zmey/php-parser/node/expr/assign"
|
||||
"github.com/z7zmey/php-parser/node/expr/binary"
|
||||
"github.com/z7zmey/php-parser/node/expr/cast"
|
||||
"github.com/z7zmey/php-parser/node/name"
|
||||
"github.com/z7zmey/php-parser/node/scalar"
|
||||
@@ -4193,7 +4193,7 @@ yydefault:
|
||||
{
|
||||
list := expr.NewList(yyDollar[3].list)
|
||||
positions.AddPosition(list, positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[4].token))
|
||||
yyVAL.node = assign_op.NewAssign(list, yyDollar[6].node)
|
||||
yyVAL.node = assign.NewAssign(list, yyDollar[6].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[6].node))
|
||||
|
||||
comments.AddComments(list, yyDollar[1].token.Comments())
|
||||
@@ -4205,7 +4205,7 @@ yydefault:
|
||||
{
|
||||
shortList := expr.NewShortList(yyDollar[2].list)
|
||||
positions.AddPosition(shortList, positionBuilder.NewTokensPosition(yyDollar[1].token, yyDollar[3].token))
|
||||
yyVAL.node = assign_op.NewAssign(shortList, yyDollar[5].node)
|
||||
yyVAL.node = assign.NewAssign(shortList, yyDollar[5].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewTokenNodePosition(yyDollar[1].token, yyDollar[5].node))
|
||||
|
||||
comments.AddComments(shortList, yyDollar[1].token.Comments())
|
||||
@@ -4215,7 +4215,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1506
|
||||
{
|
||||
yyVAL.node = assign_op.NewAssign(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewAssign(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4223,7 +4223,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-4 : yypt+1]
|
||||
//line php7/php7.y:1512
|
||||
{
|
||||
yyVAL.node = assign_op.NewAssignRef(yyDollar[1].node, yyDollar[4].node)
|
||||
yyVAL.node = assign.NewAssignRef(yyDollar[1].node, yyDollar[4].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[4].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4239,7 +4239,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1524
|
||||
{
|
||||
yyVAL.node = assign_op.NewPlus(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewPlus(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4247,7 +4247,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1530
|
||||
{
|
||||
yyVAL.node = assign_op.NewMinus(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewMinus(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4255,7 +4255,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1536
|
||||
{
|
||||
yyVAL.node = assign_op.NewMul(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewMul(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4263,7 +4263,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1542
|
||||
{
|
||||
yyVAL.node = assign_op.NewPow(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewPow(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4271,7 +4271,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1548
|
||||
{
|
||||
yyVAL.node = assign_op.NewDiv(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewDiv(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4279,7 +4279,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1554
|
||||
{
|
||||
yyVAL.node = assign_op.NewConcat(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewConcat(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4287,7 +4287,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1560
|
||||
{
|
||||
yyVAL.node = assign_op.NewMod(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewMod(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4295,7 +4295,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1566
|
||||
{
|
||||
yyVAL.node = assign_op.NewBitwiseAnd(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewBitwiseAnd(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4303,7 +4303,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1572
|
||||
{
|
||||
yyVAL.node = assign_op.NewBitwiseOr(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewBitwiseOr(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4311,7 +4311,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1578
|
||||
{
|
||||
yyVAL.node = assign_op.NewBitwiseXor(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewBitwiseXor(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4319,7 +4319,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1584
|
||||
{
|
||||
yyVAL.node = assign_op.NewShiftLeft(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewShiftLeft(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4327,7 +4327,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1590
|
||||
{
|
||||
yyVAL.node = assign_op.NewShiftRight(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = assign.NewShiftRight(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4367,7 +4367,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1620
|
||||
{
|
||||
yyVAL.node = binary_op.NewBooleanOr(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewBooleanOr(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4375,7 +4375,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1626
|
||||
{
|
||||
yyVAL.node = binary_op.NewBooleanAnd(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewBooleanAnd(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4383,7 +4383,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1632
|
||||
{
|
||||
yyVAL.node = binary_op.NewLogicalOr(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewLogicalOr(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4391,7 +4391,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1638
|
||||
{
|
||||
yyVAL.node = binary_op.NewLogicalAnd(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewLogicalAnd(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4399,7 +4399,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1644
|
||||
{
|
||||
yyVAL.node = binary_op.NewLogicalXor(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewLogicalXor(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4407,7 +4407,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1650
|
||||
{
|
||||
yyVAL.node = binary_op.NewBitwiseOr(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewBitwiseOr(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4415,7 +4415,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1656
|
||||
{
|
||||
yyVAL.node = binary_op.NewBitwiseAnd(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewBitwiseAnd(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4423,7 +4423,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1662
|
||||
{
|
||||
yyVAL.node = binary_op.NewBitwiseXor(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewBitwiseXor(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4431,7 +4431,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1668
|
||||
{
|
||||
yyVAL.node = binary_op.NewConcat(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewConcat(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4439,7 +4439,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1674
|
||||
{
|
||||
yyVAL.node = binary_op.NewPlus(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewPlus(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4447,7 +4447,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1680
|
||||
{
|
||||
yyVAL.node = binary_op.NewMinus(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewMinus(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4455,7 +4455,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1686
|
||||
{
|
||||
yyVAL.node = binary_op.NewMul(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewMul(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4463,7 +4463,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1692
|
||||
{
|
||||
yyVAL.node = binary_op.NewPow(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewPow(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4471,7 +4471,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1698
|
||||
{
|
||||
yyVAL.node = binary_op.NewDiv(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewDiv(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4479,7 +4479,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1704
|
||||
{
|
||||
yyVAL.node = binary_op.NewMod(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewMod(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4487,7 +4487,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1710
|
||||
{
|
||||
yyVAL.node = binary_op.NewShiftLeft(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewShiftLeft(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4495,7 +4495,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1716
|
||||
{
|
||||
yyVAL.node = binary_op.NewShiftRight(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewShiftRight(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4535,7 +4535,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1746
|
||||
{
|
||||
yyVAL.node = binary_op.NewIdentical(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewIdentical(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4543,7 +4543,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1752
|
||||
{
|
||||
yyVAL.node = binary_op.NewNotIdentical(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewNotIdentical(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4551,7 +4551,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1758
|
||||
{
|
||||
yyVAL.node = binary_op.NewEqual(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewEqual(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4559,7 +4559,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1764
|
||||
{
|
||||
yyVAL.node = binary_op.NewNotEqual(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewNotEqual(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4567,7 +4567,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1770
|
||||
{
|
||||
yyVAL.node = binary_op.NewSmaller(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewSmaller(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4575,7 +4575,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1776
|
||||
{
|
||||
yyVAL.node = binary_op.NewSmallerOrEqual(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewSmallerOrEqual(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4583,7 +4583,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1782
|
||||
{
|
||||
yyVAL.node = binary_op.NewGreater(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewGreater(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4591,7 +4591,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1788
|
||||
{
|
||||
yyVAL.node = binary_op.NewGreaterOrEqual(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewGreaterOrEqual(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4599,7 +4599,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1794
|
||||
{
|
||||
yyVAL.node = binary_op.NewSpaceship(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewSpaceship(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
@@ -4643,7 +4643,7 @@ yydefault:
|
||||
yyDollar = yyS[yypt-3 : yypt+1]
|
||||
//line php7/php7.y:1820
|
||||
{
|
||||
yyVAL.node = binary_op.NewCoalesce(yyDollar[1].node, yyDollar[3].node)
|
||||
yyVAL.node = binary.NewCoalesce(yyDollar[1].node, yyDollar[3].node)
|
||||
positions.AddPosition(yyVAL.node, positionBuilder.NewNodesPosition(yyDollar[1].node, yyDollar[3].node))
|
||||
comments.AddComments(yyVAL.node, comments[yyDollar[1].node])
|
||||
}
|
||||
|
||||
90
php7/php7.y
90
php7/php7.y
@@ -11,8 +11,8 @@ import (
|
||||
"github.com/z7zmey/php-parser/node/name"
|
||||
"github.com/z7zmey/php-parser/node/stmt"
|
||||
"github.com/z7zmey/php-parser/node/expr"
|
||||
"github.com/z7zmey/php-parser/node/expr/assign_op"
|
||||
"github.com/z7zmey/php-parser/node/expr/binary_op"
|
||||
"github.com/z7zmey/php-parser/node/expr/assign"
|
||||
"github.com/z7zmey/php-parser/node/expr/binary"
|
||||
"github.com/z7zmey/php-parser/node/expr/cast"
|
||||
)
|
||||
|
||||
@@ -1486,7 +1486,7 @@ expr_without_variable:
|
||||
{
|
||||
list := expr.NewList($3)
|
||||
positions.AddPosition(list, positionBuilder.NewTokensPosition($1, $4))
|
||||
$$ = assign_op.NewAssign(list, $6)
|
||||
$$ = assign.NewAssign(list, $6)
|
||||
positions.AddPosition($$, positionBuilder.NewTokenNodePosition($1, $6))
|
||||
|
||||
comments.AddComments(list, $1.Comments())
|
||||
@@ -1496,7 +1496,7 @@ expr_without_variable:
|
||||
{
|
||||
shortList := expr.NewShortList($2)
|
||||
positions.AddPosition(shortList, positionBuilder.NewTokensPosition($1, $3))
|
||||
$$ = assign_op.NewAssign(shortList, $5)
|
||||
$$ = assign.NewAssign(shortList, $5)
|
||||
positions.AddPosition($$, positionBuilder.NewTokenNodePosition($1, $5))
|
||||
|
||||
comments.AddComments(shortList, $1.Comments())
|
||||
@@ -1504,13 +1504,13 @@ expr_without_variable:
|
||||
}
|
||||
| variable '=' expr
|
||||
{
|
||||
$$ = assign_op.NewAssign($1, $3)
|
||||
$$ = assign.NewAssign($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable '=' '&' expr
|
||||
{
|
||||
$$ = assign_op.NewAssignRef($1, $4)
|
||||
$$ = assign.NewAssignRef($1, $4)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $4))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
@@ -1522,73 +1522,73 @@ expr_without_variable:
|
||||
}
|
||||
| variable T_PLUS_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewPlus($1, $3)
|
||||
$$ = assign.NewPlus($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_MINUS_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewMinus($1, $3)
|
||||
$$ = assign.NewMinus($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_MUL_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewMul($1, $3)
|
||||
$$ = assign.NewMul($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_POW_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewPow($1, $3)
|
||||
$$ = assign.NewPow($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_DIV_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewDiv($1, $3)
|
||||
$$ = assign.NewDiv($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_CONCAT_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewConcat($1, $3)
|
||||
$$ = assign.NewConcat($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_MOD_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewMod($1, $3)
|
||||
$$ = assign.NewMod($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_AND_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewBitwiseAnd($1, $3)
|
||||
$$ = assign.NewBitwiseAnd($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_OR_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewBitwiseOr($1, $3)
|
||||
$$ = assign.NewBitwiseOr($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_XOR_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewBitwiseXor($1, $3)
|
||||
$$ = assign.NewBitwiseXor($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_SL_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewShiftLeft($1, $3)
|
||||
$$ = assign.NewShiftLeft($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| variable T_SR_EQUAL expr
|
||||
{
|
||||
$$ = assign_op.NewShiftRight($1, $3)
|
||||
$$ = assign.NewShiftRight($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
@@ -1618,103 +1618,103 @@ expr_without_variable:
|
||||
}
|
||||
| expr T_BOOLEAN_OR expr
|
||||
{
|
||||
$$ = binary_op.NewBooleanOr($1, $3)
|
||||
$$ = binary.NewBooleanOr($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_BOOLEAN_AND expr
|
||||
{
|
||||
$$ = binary_op.NewBooleanAnd($1, $3)
|
||||
$$ = binary.NewBooleanAnd($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_LOGICAL_OR expr
|
||||
{
|
||||
$$ = binary_op.NewLogicalOr($1, $3)
|
||||
$$ = binary.NewLogicalOr($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_LOGICAL_AND expr
|
||||
{
|
||||
$$ = binary_op.NewLogicalAnd($1, $3)
|
||||
$$ = binary.NewLogicalAnd($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_LOGICAL_XOR expr
|
||||
{
|
||||
$$ = binary_op.NewLogicalXor($1, $3)
|
||||
$$ = binary.NewLogicalXor($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '|' expr
|
||||
{
|
||||
$$ = binary_op.NewBitwiseOr($1, $3)
|
||||
$$ = binary.NewBitwiseOr($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '&' expr
|
||||
{
|
||||
$$ = binary_op.NewBitwiseAnd($1, $3)
|
||||
$$ = binary.NewBitwiseAnd($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '^' expr
|
||||
{
|
||||
$$ = binary_op.NewBitwiseXor($1, $3)
|
||||
$$ = binary.NewBitwiseXor($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '.' expr
|
||||
{
|
||||
$$ = binary_op.NewConcat($1, $3)
|
||||
$$ = binary.NewConcat($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '+' expr
|
||||
{
|
||||
$$ = binary_op.NewPlus($1, $3)
|
||||
$$ = binary.NewPlus($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '-' expr
|
||||
{
|
||||
$$ = binary_op.NewMinus($1, $3)
|
||||
$$ = binary.NewMinus($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '*' expr
|
||||
{
|
||||
$$ = binary_op.NewMul($1, $3)
|
||||
$$ = binary.NewMul($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_POW expr
|
||||
{
|
||||
$$ = binary_op.NewPow($1, $3)
|
||||
$$ = binary.NewPow($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '/' expr
|
||||
{
|
||||
$$ = binary_op.NewDiv($1, $3)
|
||||
$$ = binary.NewDiv($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '%' expr
|
||||
{
|
||||
$$ = binary_op.NewMod($1, $3)
|
||||
$$ = binary.NewMod($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_SL expr
|
||||
{
|
||||
$$ = binary_op.NewShiftLeft($1, $3)
|
||||
$$ = binary.NewShiftLeft($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_SR expr
|
||||
{
|
||||
$$ = binary_op.NewShiftRight($1, $3)
|
||||
$$ = binary.NewShiftRight($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
@@ -1744,55 +1744,55 @@ expr_without_variable:
|
||||
}
|
||||
| expr T_IS_IDENTICAL expr
|
||||
{
|
||||
$$ = binary_op.NewIdentical($1, $3)
|
||||
$$ = binary.NewIdentical($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_IS_NOT_IDENTICAL expr
|
||||
{
|
||||
$$ = binary_op.NewNotIdentical($1, $3)
|
||||
$$ = binary.NewNotIdentical($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_IS_EQUAL expr
|
||||
{
|
||||
$$ = binary_op.NewEqual($1, $3)
|
||||
$$ = binary.NewEqual($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_IS_NOT_EQUAL expr
|
||||
{
|
||||
$$ = binary_op.NewNotEqual($1, $3)
|
||||
$$ = binary.NewNotEqual($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '<' expr
|
||||
{
|
||||
$$ = binary_op.NewSmaller($1, $3)
|
||||
$$ = binary.NewSmaller($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_IS_SMALLER_OR_EQUAL expr
|
||||
{
|
||||
$$ = binary_op.NewSmallerOrEqual($1, $3)
|
||||
$$ = binary.NewSmallerOrEqual($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr '>' expr
|
||||
{
|
||||
$$ = binary_op.NewGreater($1, $3)
|
||||
$$ = binary.NewGreater($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_IS_GREATER_OR_EQUAL expr
|
||||
{
|
||||
$$ = binary_op.NewGreaterOrEqual($1, $3)
|
||||
$$ = binary.NewGreaterOrEqual($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
| expr T_SPACESHIP expr
|
||||
{
|
||||
$$ = binary_op.NewSpaceship($1, $3)
|
||||
$$ = binary.NewSpaceship($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
@@ -1818,7 +1818,7 @@ expr_without_variable:
|
||||
}
|
||||
| expr T_COALESCE expr
|
||||
{
|
||||
$$ = binary_op.NewCoalesce($1, $3)
|
||||
$$ = binary.NewCoalesce($1, $3)
|
||||
positions.AddPosition($$, positionBuilder.NewNodesPosition($1, $3))
|
||||
comments.AddComments($$, comments[$1])
|
||||
}
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
"github.com/z7zmey/php-parser/node/expr"
|
||||
"github.com/z7zmey/php-parser/node/expr/assign_op"
|
||||
"github.com/z7zmey/php-parser/node/expr/binary_op"
|
||||
"github.com/z7zmey/php-parser/node/expr/assign"
|
||||
"github.com/z7zmey/php-parser/node/expr/binary"
|
||||
"github.com/z7zmey/php-parser/node/expr/cast"
|
||||
"github.com/z7zmey/php-parser/node/name"
|
||||
"github.com/z7zmey/php-parser/node/scalar"
|
||||
@@ -1126,13 +1126,13 @@ CAD;
|
||||
},
|
||||
&stmt.For{
|
||||
Init: []node.Node{
|
||||
&assign_op.Assign{
|
||||
&assign.Assign{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$i"}},
|
||||
Expression: &scalar.Lnumber{Value: "0"},
|
||||
},
|
||||
},
|
||||
Cond: []node.Node{
|
||||
&binary_op.Smaller{
|
||||
&binary.Smaller{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$i"}},
|
||||
Right: &scalar.Lnumber{Value: "10"},
|
||||
},
|
||||
@@ -1149,7 +1149,7 @@ CAD;
|
||||
},
|
||||
&stmt.AltFor{
|
||||
Cond: []node.Node{
|
||||
&binary_op.Smaller{
|
||||
&binary.Smaller{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$i"}},
|
||||
Right: &scalar.Lnumber{Value: "10"},
|
||||
},
|
||||
@@ -2336,7 +2336,7 @@ CAD;
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Assign{
|
||||
Expr: &assign.Assign{
|
||||
Variable: &expr.List{
|
||||
Items: []node.Node{
|
||||
&expr.ArrayItem{
|
||||
@@ -2349,7 +2349,7 @@ CAD;
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Assign{
|
||||
Expr: &assign.Assign{
|
||||
Variable: &expr.List{
|
||||
Items: []node.Node{
|
||||
&expr.ArrayItem{
|
||||
@@ -2364,7 +2364,7 @@ CAD;
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Assign{
|
||||
Expr: &assign.Assign{
|
||||
Variable: &expr.List{
|
||||
Items: []node.Node{
|
||||
&expr.ArrayItem{
|
||||
@@ -2494,7 +2494,7 @@ CAD;
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Assign{
|
||||
Expr: &assign.Assign{
|
||||
Variable: &expr.ShortList{
|
||||
Items: []node.Node{
|
||||
&expr.ArrayItem{
|
||||
@@ -2507,7 +2507,7 @@ CAD;
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Assign{
|
||||
Expr: &assign.Assign{
|
||||
Variable: &expr.ShortList{
|
||||
Items: []node.Node{
|
||||
&expr.ArrayItem{
|
||||
@@ -2522,7 +2522,7 @@ CAD;
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Assign{
|
||||
Expr: &assign.Assign{
|
||||
Variable: &expr.ShortList{
|
||||
Items: []node.Node{
|
||||
&expr.ArrayItem{
|
||||
@@ -2728,247 +2728,247 @@ CAD;
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.BitwiseAnd{
|
||||
Expr: &binary.BitwiseAnd{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.BitwiseOr{
|
||||
Expr: &binary.BitwiseOr{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.BitwiseXor{
|
||||
Expr: &binary.BitwiseXor{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.BooleanAnd{
|
||||
Expr: &binary.BooleanAnd{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.BooleanOr{
|
||||
Expr: &binary.BooleanOr{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Coalesce{
|
||||
Expr: &binary.Coalesce{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Concat{
|
||||
Expr: &binary.Concat{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Div{
|
||||
Expr: &binary.Div{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Equal{
|
||||
Expr: &binary.Equal{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.GreaterOrEqual{
|
||||
Expr: &binary.GreaterOrEqual{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Greater{
|
||||
Expr: &binary.Greater{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Identical{
|
||||
Expr: &binary.Identical{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.LogicalAnd{
|
||||
Expr: &binary.LogicalAnd{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.LogicalOr{
|
||||
Expr: &binary.LogicalOr{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.LogicalXor{
|
||||
Expr: &binary.LogicalXor{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Minus{
|
||||
Expr: &binary.Minus{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Mod{
|
||||
Expr: &binary.Mod{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Mul{
|
||||
Expr: &binary.Mul{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.NotEqual{
|
||||
Expr: &binary.NotEqual{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.NotIdentical{
|
||||
Expr: &binary.NotIdentical{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Plus{
|
||||
Expr: &binary.Plus{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Pow{
|
||||
Expr: &binary.Pow{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.ShiftLeft{
|
||||
Expr: &binary.ShiftLeft{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.ShiftRight{
|
||||
Expr: &binary.ShiftRight{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.SmallerOrEqual{
|
||||
Expr: &binary.SmallerOrEqual{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Smaller{
|
||||
Expr: &binary.Smaller{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &binary_op.Spaceship{
|
||||
Expr: &binary.Spaceship{
|
||||
Left: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Right: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.AssignRef{
|
||||
Expr: &assign.AssignRef{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Assign{
|
||||
Expr: &assign.Assign{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.BitwiseAnd{
|
||||
Expr: &assign.BitwiseAnd{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.BitwiseOr{
|
||||
Expr: &assign.BitwiseOr{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.BitwiseXor{
|
||||
Expr: &assign.BitwiseXor{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Concat{
|
||||
Expr: &assign.Concat{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Div{
|
||||
Expr: &assign.Div{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Minus{
|
||||
Expr: &assign.Minus{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Mod{
|
||||
Expr: &assign.Mod{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Mul{
|
||||
Expr: &assign.Mul{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Plus{
|
||||
Expr: &assign.Plus{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.Pow{
|
||||
Expr: &assign.Pow{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.ShiftLeft{
|
||||
Expr: &assign.ShiftLeft{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.ShiftRight{
|
||||
Expr: &assign.ShiftRight{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user