constructors return pointer
This commit is contained in:
@@ -9,7 +9,7 @@ type CastArray struct {
|
||||
}
|
||||
|
||||
func NewCastArray(expr node.Node) node.Node {
|
||||
return CastArray{
|
||||
return &CastArray{
|
||||
Cast{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
@@ -9,7 +9,7 @@ type CastBool struct {
|
||||
}
|
||||
|
||||
func NewCastBool(expr node.Node) node.Node {
|
||||
return CastBool{
|
||||
return &CastBool{
|
||||
Cast{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
@@ -9,7 +9,7 @@ type CastDouble struct {
|
||||
}
|
||||
|
||||
func NewCastDouble(expr node.Node) node.Node {
|
||||
return CastDouble{
|
||||
return &CastDouble{
|
||||
Cast{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
@@ -9,7 +9,7 @@ type CastInt struct {
|
||||
}
|
||||
|
||||
func NewCastInt(expr node.Node) node.Node {
|
||||
return CastInt{
|
||||
return &CastInt{
|
||||
Cast{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
@@ -9,7 +9,7 @@ type CastObject struct {
|
||||
}
|
||||
|
||||
func NewCastObject(expr node.Node) node.Node {
|
||||
return CastObject{
|
||||
return &CastObject{
|
||||
Cast{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
@@ -9,7 +9,7 @@ type CastString struct {
|
||||
}
|
||||
|
||||
func NewCastString(expr node.Node) node.Node {
|
||||
return CastString{
|
||||
return &CastString{
|
||||
Cast{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
@@ -9,7 +9,7 @@ type CastUnset struct {
|
||||
}
|
||||
|
||||
func NewCastUnset(expr node.Node) node.Node {
|
||||
return CastUnset{
|
||||
return &CastUnset{
|
||||
Cast{
|
||||
map[string]interface{}{},
|
||||
nil,
|
||||
|
||||
Reference in New Issue
Block a user