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