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

@ -8,7 +8,7 @@ type Argument struct {
} }
func NewArgument(expression Node, variadic bool) Node { func NewArgument(expression Node, variadic bool) Node {
return Argument{ return &Argument{
map[string]interface{}{ map[string]interface{}{
"variadic": variadic, "variadic": variadic,
}, },

View File

@ -11,7 +11,7 @@ type Array struct {
} }
func NewArray(items []node.Node) node.Node { func NewArray(items []node.Node) node.Node {
return Array{ return &Array{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
items, items,

View File

@ -12,7 +12,7 @@ type ArrayDimFetch struct {
} }
func NewArrayDimFetch(variable node.Node, dim node.Node) node.Node { func NewArrayDimFetch(variable node.Node, dim node.Node) node.Node {
return ArrayDimFetch{ return &ArrayDimFetch{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
variable, variable,

View File

@ -12,7 +12,7 @@ type ArrayItem struct {
} }
func NewArrayItem(key node.Node, val node.Node, byRef bool) node.Node { func NewArrayItem(key node.Node, val node.Node, byRef bool) node.Node {
return ArrayItem{ return &ArrayItem{
map[string]interface{}{ map[string]interface{}{
"byRef": byRef, "byRef": byRef,
}, },

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -11,7 +11,7 @@ type BitwiseNot struct {
} }
func NewBitwiseNot(expression node.Node) node.Node { func NewBitwiseNot(expression node.Node) node.Node {
return BitwiseNot{ return &BitwiseNot{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type BooleanNot struct {
} }
func NewBooleanNot(expression node.Node) node.Node { func NewBooleanNot(expression node.Node) node.Node {
return BooleanNot{ return &BooleanNot{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -9,7 +9,7 @@ type CastArray struct {
} }
func NewCastArray(expr node.Node) node.Node { func NewCastArray(expr node.Node) node.Node {
return CastArray{ return &CastArray{
Cast{ Cast{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -9,7 +9,7 @@ type CastBool struct {
} }
func NewCastBool(expr node.Node) node.Node { func NewCastBool(expr node.Node) node.Node {
return CastBool{ return &CastBool{
Cast{ Cast{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -9,7 +9,7 @@ type CastDouble struct {
} }
func NewCastDouble(expr node.Node) node.Node { func NewCastDouble(expr node.Node) node.Node {
return CastDouble{ return &CastDouble{
Cast{ Cast{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -9,7 +9,7 @@ type CastInt struct {
} }
func NewCastInt(expr node.Node) node.Node { func NewCastInt(expr node.Node) node.Node {
return CastInt{ return &CastInt{
Cast{ Cast{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -9,7 +9,7 @@ type CastObject struct {
} }
func NewCastObject(expr node.Node) node.Node { func NewCastObject(expr node.Node) node.Node {
return CastObject{ return &CastObject{
Cast{ Cast{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -9,7 +9,7 @@ type CastString struct {
} }
func NewCastString(expr node.Node) node.Node { func NewCastString(expr node.Node) node.Node {
return CastString{ return &CastString{
Cast{ Cast{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -9,7 +9,7 @@ type CastUnset struct {
} }
func NewCastUnset(expr node.Node) node.Node { func NewCastUnset(expr node.Node) node.Node {
return CastUnset{ return &CastUnset{
Cast{ Cast{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -12,7 +12,7 @@ type ClassConstFetch struct {
} }
func NewClassConstFetch(class node.Node, constantName node.Node) node.Node { func NewClassConstFetch(class node.Node, constantName node.Node) node.Node {
return ClassConstFetch{ return &ClassConstFetch{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
class, class,

View File

@ -11,7 +11,7 @@ type Clone struct {
} }
func NewClone(expression node.Node) node.Node { func NewClone(expression node.Node) node.Node {
return Clone{ return &Clone{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -14,7 +14,7 @@ type Closure struct {
} }
func NewClosure(params []node.Node, uses []node.Node, returnType node.Node, stmts []node.Node, isStatic bool, isReturnRef bool, phpDocComment string) node.Node { func NewClosure(params []node.Node, uses []node.Node, returnType node.Node, stmts []node.Node, isStatic bool, isReturnRef bool, phpDocComment string) node.Node {
return Closure{ return &Closure{
map[string]interface{}{ map[string]interface{}{
"isReturnRef": isReturnRef, "isReturnRef": isReturnRef,
"isStatic": isStatic, "isStatic": isStatic,

View File

@ -11,7 +11,7 @@ type ClusureUse struct {
} }
func NewClusureUse(variable node.Node, byRef bool) node.Node { func NewClusureUse(variable node.Node, byRef bool) node.Node {
return ClusureUse{ return &ClusureUse{
map[string]interface{}{ map[string]interface{}{
"byRef": byRef, "byRef": byRef,
}, },

View File

@ -11,7 +11,7 @@ type ConstFetch struct {
} }
func NewConstFetch(constant node.Node) node.Node { func NewConstFetch(constant node.Node) node.Node {
return ConstFetch{ return &ConstFetch{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
constant, constant,

View File

@ -11,7 +11,7 @@ type Empty struct {
} }
func NewEmpty(expression node.Node) node.Node { func NewEmpty(expression node.Node) node.Node {
return Empty{ return &Empty{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type ErrorSuppress struct {
} }
func NewErrorSuppress(expression node.Node) node.Node { func NewErrorSuppress(expression node.Node) node.Node {
return ErrorSuppress{ return &ErrorSuppress{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type Eval struct {
} }
func NewEval(expression node.Node) node.Node { func NewEval(expression node.Node) node.Node {
return Eval{ return &Eval{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type Exit struct {
} }
func NewExit(expr node.Node, isDie bool) node.Node { func NewExit(expr node.Node, isDie bool) node.Node {
return Exit{ return &Exit{
map[string]interface{}{ map[string]interface{}{
"isDie": isDie, "isDie": isDie,
}, },

View File

@ -12,7 +12,7 @@ type FunctionCall struct {
} }
func NewFunctionCall(function node.Node, arguments []node.Node) node.Node { func NewFunctionCall(function node.Node, arguments []node.Node) node.Node {
return FunctionCall{ return &FunctionCall{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
function, function,

View File

@ -11,7 +11,7 @@ type Include struct {
} }
func NewInclude(expression node.Node) node.Node { func NewInclude(expression node.Node) node.Node {
return Include{ return &Include{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type IncludeOnce struct {
} }
func NewIncludeOnce(expression node.Node) node.Node { func NewIncludeOnce(expression node.Node) node.Node {
return IncludeOnce{ return &IncludeOnce{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -12,7 +12,7 @@ type InstanceOf struct {
} }
func NewInstanceOf(expr node.Node, class node.Node) node.Node { func NewInstanceOf(expr node.Node, class node.Node) node.Node {
return InstanceOf{ return &InstanceOf{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expr, expr,

View File

@ -11,7 +11,7 @@ type Isset struct {
} }
func NewIsset(variables []node.Node) node.Node { func NewIsset(variables []node.Node) node.Node {
return Isset{ return &Isset{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
variables, variables,

View File

@ -11,7 +11,7 @@ type List struct {
} }
func NewList(items []node.Node) node.Node { func NewList(items []node.Node) node.Node {
return List{ return &List{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
items, items,

View File

@ -13,7 +13,7 @@ type MethodCall struct {
} }
func NewMethodCall(variable node.Node, method node.Node, arguments []node.Node) node.Node { func NewMethodCall(variable node.Node, method node.Node, arguments []node.Node) node.Node {
return MethodCall{ return &MethodCall{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
variable, variable,

View File

@ -12,7 +12,7 @@ type New struct {
} }
func NewNew(class node.Node, arguments []node.Node) node.Node { func NewNew(class node.Node, arguments []node.Node) node.Node {
return New{ return &New{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
class, class,

View File

@ -11,7 +11,7 @@ type PostDec struct {
} }
func NewPostDec(variable node.Node) node.Node { func NewPostDec(variable node.Node) node.Node {
return PostDec{ return &PostDec{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
variable, variable,

View File

@ -11,7 +11,7 @@ type PostInc struct {
} }
func NewPostInc(variable node.Node) node.Node { func NewPostInc(variable node.Node) node.Node {
return PostInc{ return &PostInc{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
variable, variable,

View File

@ -11,7 +11,7 @@ type PreDec struct {
} }
func NewPreDec(variable node.Node) node.Node { func NewPreDec(variable node.Node) node.Node {
return PreDec{ return &PreDec{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
variable, variable,

View File

@ -11,7 +11,7 @@ type PreInc struct {
} }
func NewPreInc(variable node.Node) node.Node { func NewPreInc(variable node.Node) node.Node {
return PreInc{ return &PreInc{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
variable, variable,

View File

@ -11,7 +11,7 @@ type Print struct {
} }
func NewPrint(expression node.Node) node.Node { func NewPrint(expression node.Node) node.Node {
return Print{ return &Print{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -12,7 +12,7 @@ type PropertyFetch struct {
} }
func NewPropertyFetch(variable node.Node, property node.Node) node.Node { func NewPropertyFetch(variable node.Node, property node.Node) node.Node {
return PropertyFetch{ return &PropertyFetch{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
variable, variable,

View File

@ -11,7 +11,7 @@ type Require struct {
} }
func NewRequire(expression node.Node) node.Node { func NewRequire(expression node.Node) node.Node {
return Require{ return &Require{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type RequireOnce struct {
} }
func NewRequireOnce(expression node.Node) node.Node { func NewRequireOnce(expression node.Node) node.Node {
return RequireOnce{ return &RequireOnce{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type ShellExec struct {
} }
func NewShellExec(parts []node.Node) node.Node { func NewShellExec(parts []node.Node) node.Node {
return ShellExec{ return &ShellExec{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
parts, parts,

View File

@ -11,7 +11,7 @@ type ShortArray struct {
} }
func NewShortArray(items []node.Node) node.Node { func NewShortArray(items []node.Node) node.Node {
return ShortArray{ return &ShortArray{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
items, items,

View File

@ -11,7 +11,7 @@ type ShortList struct {
} }
func NewShortList(items []node.Node) node.Node { func NewShortList(items []node.Node) node.Node {
return ShortList{ return &ShortList{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
items, items,

View File

@ -13,7 +13,7 @@ type StaticCall struct {
} }
func NewStaticCall(class node.Node, call node.Node, arguments []node.Node) node.Node { func NewStaticCall(class node.Node, call node.Node, arguments []node.Node) node.Node {
return StaticCall{ return &StaticCall{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
class, class,

View File

@ -12,7 +12,7 @@ type StaticPropertyFetch struct {
} }
func NewStaticPropertyFetch(class node.Node, property node.Node) node.Node { func NewStaticPropertyFetch(class node.Node, property node.Node) node.Node {
return StaticPropertyFetch{ return &StaticPropertyFetch{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
class, class,

View File

@ -13,7 +13,7 @@ type Ternary struct {
} }
func NewTernary(condition node.Node, ifTrue node.Node, ifFalse node.Node) node.Node { func NewTernary(condition node.Node, ifTrue node.Node, ifFalse node.Node) node.Node {
return Ternary{ return &Ternary{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
condition, condition,

View File

@ -11,7 +11,7 @@ type UnaryMinus struct {
} }
func NewUnaryMinus(expression node.Node) node.Node { func NewUnaryMinus(expression node.Node) node.Node {
return UnaryMinus{ return &UnaryMinus{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type UnaryPlus struct {
} }
func NewUnaryPlus(expression node.Node) node.Node { func NewUnaryPlus(expression node.Node) node.Node {
return UnaryPlus{ return &UnaryPlus{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -11,7 +11,7 @@ type Variable struct {
} }
func NewVariable(varName node.Node) node.Node { func NewVariable(varName node.Node) node.Node {
return Variable{ return &Variable{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
varName, varName,

View File

@ -12,7 +12,7 @@ type Yield struct {
} }
func NewYield(key node.Node, value node.Node) node.Node { func NewYield(key node.Node, value node.Node) node.Node {
return Yield{ return &Yield{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
key, key,

View File

@ -11,7 +11,7 @@ type YieldFrom struct {
} }
func NewYieldFrom(expression node.Node) node.Node { func NewYieldFrom(expression node.Node) node.Node {
return YieldFrom{ return &YieldFrom{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -10,7 +10,7 @@ type Identifier struct {
} }
func NewIdentifier(token token.Token) Node { func NewIdentifier(token token.Token) Node {
return Identifier{ return &Identifier{
map[string]interface{}{ map[string]interface{}{
"value": token.Value, "value": token.Value,
}, },

View File

@ -9,7 +9,7 @@ type FullyQualified struct {
} }
func NewFullyQualified(parts []node.Node) node.Node { func NewFullyQualified(parts []node.Node) node.Node {
return FullyQualified{ return &FullyQualified{
Name{ Name{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -11,7 +11,7 @@ type Name struct {
} }
func NewName(parts []node.Node) node.Node { func NewName(parts []node.Node) node.Node {
return Name{ return &Name{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
parts, parts,

View File

@ -10,7 +10,7 @@ type NamePart struct {
} }
func NewNamePart(value string) node.Node { func NewNamePart(value string) node.Node {
return NamePart{ return &NamePart{
map[string]interface{}{ map[string]interface{}{
"value": value, "value": value,
}, },

View File

@ -9,7 +9,7 @@ type Relative struct {
} }
func NewRelative(parts []node.Node) node.Node { func NewRelative(parts []node.Node) node.Node {
return Relative{ return &Relative{
Name{ Name{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,

View File

@ -7,7 +7,7 @@ type Nullable struct {
} }
func NewNullable(expression Node) Node { func NewNullable(expression Node) Node {
return Nullable{ return &Nullable{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
expression, expression,

View File

@ -9,7 +9,7 @@ type Parameter struct {
} }
func NewParameter(variableType Node, variable Node, defaultValue Node, byRef bool, variadic bool) Node { func NewParameter(variableType Node, variable Node, defaultValue Node, byRef bool, variadic bool) Node {
return Parameter{ return &Parameter{
map[string]interface{}{ map[string]interface{}{
"byRef": byRef, "byRef": byRef,
"variadic": variadic, "variadic": variadic,

View File

@ -10,7 +10,7 @@ type Dnumber struct {
} }
func NewDnumber(value string) node.Node { func NewDnumber(value string) node.Node {
return Dnumber{ return &Dnumber{
map[string]interface{}{ map[string]interface{}{
"value": value, "value": value,
}, },

View File

@ -11,7 +11,7 @@ type Encapsed struct {
} }
func NewEncapsed(parts []node.Node) node.Node { func NewEncapsed(parts []node.Node) node.Node {
return Encapsed{ return &Encapsed{
map[string]interface{}{}, map[string]interface{}{},
nil, nil,
parts, parts,

View File

@ -10,7 +10,7 @@ type EncapsedStringPart struct {
} }
func NewEncapsedStringPart(value string) node.Node { func NewEncapsedStringPart(value string) node.Node {
return EncapsedStringPart{ return &EncapsedStringPart{
map[string]interface{}{ map[string]interface{}{
"value": value, "value": value,
}, },

Some files were not shown because too many files have changed in this diff Show More