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 Assign struct {
}
func NewAssign(variable node.Node, expression node.Node) node.Node {
return Assign{
return &Assign{
AssignOp{
map[string]interface{}{},
nil,

View File

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

View File

@@ -9,7 +9,7 @@ type BitwiseAnd struct {
}
func NewBitwiseAnd(variable node.Node, expression node.Node) node.Node {
return BitwiseAnd{
return &BitwiseAnd{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
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{
AssignOp{
map[string]interface{}{},
nil,