constructors return pointer

This commit is contained in:
z7zmey
2018-01-04 20:42:44 +02:00
parent 383a245370
commit dc8808a7d6
154 changed files with 154 additions and 154 deletions

View File

@@ -9,7 +9,7 @@ type BitwiseAnd struct {
}
func NewBitwiseAnd(variable node.Node, expression node.Node) node.Node {
return BitwiseAnd{
return &BitwiseAnd{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type BitwiseOr struct {
}
func NewBitwiseOr(variable node.Node, expression node.Node) node.Node {
return BitwiseOr{
return &BitwiseOr{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type BitwiseXor struct {
}
func NewBitwiseXor(variable node.Node, expression node.Node) node.Node {
return BitwiseXor{
return &BitwiseXor{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type BooleanAnd struct {
}
func NewBooleanAnd(variable node.Node, expression node.Node) node.Node {
return BooleanAnd{
return &BooleanAnd{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type BooleanOr struct {
}
func NewBooleanOr(variable node.Node, expression node.Node) node.Node {
return BooleanOr{
return &BooleanOr{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Coalesce struct {
}
func NewCoalesce(variable node.Node, expression node.Node) node.Node {
return Coalesce{
return &Coalesce{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Concat struct {
}
func NewConcat(variable node.Node, expression node.Node) node.Node {
return Concat{
return &Concat{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Div struct {
}
func NewDiv(variable node.Node, expression node.Node) node.Node {
return Div{
return &Div{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Equal struct {
}
func NewEqual(variable node.Node, expression node.Node) node.Node {
return Equal{
return &Equal{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Greater struct {
}
func NewGreater(variable node.Node, expression node.Node) node.Node {
return Greater{
return &Greater{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type GreaterOrEqual struct {
}
func NewGreaterOrEqual(variable node.Node, expression node.Node) node.Node {
return GreaterOrEqual{
return &GreaterOrEqual{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Identical struct {
}
func NewIdentical(variable node.Node, expression node.Node) node.Node {
return Identical{
return &Identical{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type LogicalAnd struct {
}
func NewLogicalAnd(variable node.Node, expression node.Node) node.Node {
return LogicalAnd{
return &LogicalAnd{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type LogicalOr struct {
}
func NewLogicalOr(variable node.Node, expression node.Node) node.Node {
return LogicalOr{
return &LogicalOr{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type LogicalXor struct {
}
func NewLogicalXor(variable node.Node, expression node.Node) node.Node {
return LogicalXor{
return &LogicalXor{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Minus struct {
}
func NewMinus(variable node.Node, expression node.Node) node.Node {
return Minus{
return &Minus{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Mod struct {
}
func NewMod(variable node.Node, expression node.Node) node.Node {
return Mod{
return &Mod{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Mul struct {
}
func NewMul(variable node.Node, expression node.Node) node.Node {
return Mul{
return &Mul{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type NotEqual struct {
}
func NewNotEqual(variable node.Node, expression node.Node) node.Node {
return NotEqual{
return &NotEqual{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type NotIdentical struct {
}
func NewNotIdentical(variable node.Node, expression node.Node) node.Node {
return NotIdentical{
return &NotIdentical{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Plus struct {
}
func NewPlus(variable node.Node, expression node.Node) node.Node {
return Plus{
return &Plus{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Pow struct {
}
func NewPow(variable node.Node, expression node.Node) node.Node {
return Pow{
return &Pow{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type ShiftLeft struct {
}
func NewShiftLeft(variable node.Node, expression node.Node) node.Node {
return ShiftLeft{
return &ShiftLeft{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type ShiftRight struct {
}
func NewShiftRight(variable node.Node, expression node.Node) node.Node {
return ShiftRight{
return &ShiftRight{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Smaller struct {
}
func NewSmaller(variable node.Node, expression node.Node) node.Node {
return Smaller{
return &Smaller{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type SmallerOrEqual struct {
}
func NewSmallerOrEqual(variable node.Node, expression node.Node) node.Node {
return SmallerOrEqual{
return &SmallerOrEqual{
BinaryOp{
map[string]interface{}{},
nil,

View File

@@ -9,7 +9,7 @@ type Spaceship struct {
}
func NewSpaceship(variable node.Node, expression node.Node) node.Node {
return Spaceship{
return &Spaceship{
BinaryOp{
map[string]interface{}{},
nil,