node constructors return concrete type

This commit is contained in:
z7zmey
2018-01-08 21:18:09 +02:00
parent f2cf2061ee
commit 855665b565
156 changed files with 156 additions and 156 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,