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 Argument struct {
Expr Node
}
func NewArgument(Expression Node, Variadic bool) Node {
func NewArgument(Expression Node, Variadic bool) *Argument {
return &Argument{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Array struct {
Items []node.Node
}
func NewArray(Items []node.Node) node.Node {
func NewArray(Items []node.Node) *Array {
return &Array{
nil,
nil,

View File

@ -12,7 +12,7 @@ type ArrayDimFetch struct {
Dim node.Node
}
func NewArrayDimFetch(Variable node.Node, Dim node.Node) node.Node {
func NewArrayDimFetch(Variable node.Node, Dim node.Node) *ArrayDimFetch {
return &ArrayDimFetch{
nil,
nil,

View File

@ -13,7 +13,7 @@ type ArrayItem struct {
Val node.Node
}
func NewArrayItem(Key node.Node, Val node.Node, ByRef bool) node.Node {
func NewArrayItem(Key node.Node, Val node.Node, ByRef bool) *ArrayItem {
return &ArrayItem{
nil,
nil,

View File

@ -9,7 +9,7 @@ type Assign struct {
AssignOp
}
func NewAssign(Variable node.Node, Expression node.Node) node.Node {
func NewAssign(Variable node.Node, Expression node.Node) *Assign {
return &Assign{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type AssignRef struct {
AssignOp
}
func NewAssignRef(Variable node.Node, Expression node.Node) node.Node {
func NewAssignRef(Variable node.Node, Expression node.Node) *AssignRef {
return &AssignRef{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type BitwiseAnd struct {
AssignOp
}
func NewBitwiseAnd(Variable node.Node, Expression node.Node) node.Node {
func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {
return &BitwiseAnd{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type BitwiseOr struct {
AssignOp
}
func NewBitwiseOr(Variable node.Node, Expression node.Node) node.Node {
func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
return &BitwiseOr{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type BitwiseXor struct {
AssignOp
}
func NewBitwiseXor(Variable node.Node, Expression node.Node) node.Node {
func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
return &BitwiseXor{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type Concat struct {
AssignOp
}
func NewConcat(Variable node.Node, Expression node.Node) node.Node {
func NewConcat(Variable node.Node, Expression node.Node) *Concat {
return &Concat{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type Div struct {
AssignOp
}
func NewDiv(Variable node.Node, Expression node.Node) node.Node {
func NewDiv(Variable node.Node, Expression node.Node) *Div {
return &Div{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type Minus struct {
AssignOp
}
func NewMinus(Variable node.Node, Expression node.Node) node.Node {
func NewMinus(Variable node.Node, Expression node.Node) *Minus {
return &Minus{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type Mod struct {
AssignOp
}
func NewMod(Variable node.Node, Expression node.Node) node.Node {
func NewMod(Variable node.Node, Expression node.Node) *Mod {
return &Mod{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type Mul struct {
AssignOp
}
func NewMul(Variable node.Node, Expression node.Node) node.Node {
func NewMul(Variable node.Node, Expression node.Node) *Mul {
return &Mul{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type Plus struct {
AssignOp
}
func NewPlus(Variable node.Node, Expression node.Node) node.Node {
func NewPlus(Variable node.Node, Expression node.Node) *Plus {
return &Plus{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type Pow struct {
AssignOp
}
func NewPow(Variable node.Node, Expression node.Node) node.Node {
func NewPow(Variable node.Node, Expression node.Node) *Pow {
return &Pow{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type ShiftLeft struct {
AssignOp
}
func NewShiftLeft(Variable node.Node, Expression node.Node) node.Node {
func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {
return &ShiftLeft{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type ShiftRight struct {
AssignOp
}
func NewShiftRight(Variable node.Node, Expression node.Node) node.Node {
func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
return &ShiftRight{
AssignOp{
nil,

View File

@ -9,7 +9,7 @@ type BitwiseAnd struct {
BinaryOp
}
func NewBitwiseAnd(Variable node.Node, Expression node.Node) node.Node {
func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {
return &BitwiseAnd{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type BitwiseOr struct {
BinaryOp
}
func NewBitwiseOr(Variable node.Node, Expression node.Node) node.Node {
func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
return &BitwiseOr{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type BitwiseXor struct {
BinaryOp
}
func NewBitwiseXor(Variable node.Node, Expression node.Node) node.Node {
func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
return &BitwiseXor{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type BooleanAnd struct {
BinaryOp
}
func NewBooleanAnd(Variable node.Node, Expression node.Node) node.Node {
func NewBooleanAnd(Variable node.Node, Expression node.Node) *BooleanAnd {
return &BooleanAnd{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type BooleanOr struct {
BinaryOp
}
func NewBooleanOr(Variable node.Node, Expression node.Node) node.Node {
func NewBooleanOr(Variable node.Node, Expression node.Node) *BooleanOr {
return &BooleanOr{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Coalesce struct {
BinaryOp
}
func NewCoalesce(Variable node.Node, Expression node.Node) node.Node {
func NewCoalesce(Variable node.Node, Expression node.Node) *Coalesce {
return &Coalesce{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Concat struct {
BinaryOp
}
func NewConcat(Variable node.Node, Expression node.Node) node.Node {
func NewConcat(Variable node.Node, Expression node.Node) *Concat {
return &Concat{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Div struct {
BinaryOp
}
func NewDiv(Variable node.Node, Expression node.Node) node.Node {
func NewDiv(Variable node.Node, Expression node.Node) *Div {
return &Div{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Equal struct {
BinaryOp
}
func NewEqual(Variable node.Node, Expression node.Node) node.Node {
func NewEqual(Variable node.Node, Expression node.Node) *Equal {
return &Equal{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Greater struct {
BinaryOp
}
func NewGreater(Variable node.Node, Expression node.Node) node.Node {
func NewGreater(Variable node.Node, Expression node.Node) *Greater {
return &Greater{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type GreaterOrEqual struct {
BinaryOp
}
func NewGreaterOrEqual(Variable node.Node, Expression node.Node) node.Node {
func NewGreaterOrEqual(Variable node.Node, Expression node.Node) *GreaterOrEqual {
return &GreaterOrEqual{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Identical struct {
BinaryOp
}
func NewIdentical(Variable node.Node, Expression node.Node) node.Node {
func NewIdentical(Variable node.Node, Expression node.Node) *Identical {
return &Identical{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type LogicalAnd struct {
BinaryOp
}
func NewLogicalAnd(Variable node.Node, Expression node.Node) node.Node {
func NewLogicalAnd(Variable node.Node, Expression node.Node) *LogicalAnd {
return &LogicalAnd{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type LogicalOr struct {
BinaryOp
}
func NewLogicalOr(Variable node.Node, Expression node.Node) node.Node {
func NewLogicalOr(Variable node.Node, Expression node.Node) *LogicalOr {
return &LogicalOr{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type LogicalXor struct {
BinaryOp
}
func NewLogicalXor(Variable node.Node, Expression node.Node) node.Node {
func NewLogicalXor(Variable node.Node, Expression node.Node) *LogicalXor {
return &LogicalXor{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Minus struct {
BinaryOp
}
func NewMinus(Variable node.Node, Expression node.Node) node.Node {
func NewMinus(Variable node.Node, Expression node.Node) *Minus {
return &Minus{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Mod struct {
BinaryOp
}
func NewMod(Variable node.Node, Expression node.Node) node.Node {
func NewMod(Variable node.Node, Expression node.Node) *Mod {
return &Mod{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Mul struct {
BinaryOp
}
func NewMul(Variable node.Node, Expression node.Node) node.Node {
func NewMul(Variable node.Node, Expression node.Node) *Mul {
return &Mul{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type NotEqual struct {
BinaryOp
}
func NewNotEqual(Variable node.Node, Expression node.Node) node.Node {
func NewNotEqual(Variable node.Node, Expression node.Node) *NotEqual {
return &NotEqual{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type NotIdentical struct {
BinaryOp
}
func NewNotIdentical(Variable node.Node, Expression node.Node) node.Node {
func NewNotIdentical(Variable node.Node, Expression node.Node) *NotIdentical {
return &NotIdentical{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Plus struct {
BinaryOp
}
func NewPlus(Variable node.Node, Expression node.Node) node.Node {
func NewPlus(Variable node.Node, Expression node.Node) *Plus {
return &Plus{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Pow struct {
BinaryOp
}
func NewPow(Variable node.Node, Expression node.Node) node.Node {
func NewPow(Variable node.Node, Expression node.Node) *Pow {
return &Pow{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type ShiftLeft struct {
BinaryOp
}
func NewShiftLeft(Variable node.Node, Expression node.Node) node.Node {
func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {
return &ShiftLeft{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type ShiftRight struct {
BinaryOp
}
func NewShiftRight(Variable node.Node, Expression node.Node) node.Node {
func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
return &ShiftRight{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Smaller struct {
BinaryOp
}
func NewSmaller(Variable node.Node, Expression node.Node) node.Node {
func NewSmaller(Variable node.Node, Expression node.Node) *Smaller {
return &Smaller{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type SmallerOrEqual struct {
BinaryOp
}
func NewSmallerOrEqual(Variable node.Node, Expression node.Node) node.Node {
func NewSmallerOrEqual(Variable node.Node, Expression node.Node) *SmallerOrEqual {
return &SmallerOrEqual{
BinaryOp{
nil,

View File

@ -9,7 +9,7 @@ type Spaceship struct {
BinaryOp
}
func NewSpaceship(Variable node.Node, Expression node.Node) node.Node {
func NewSpaceship(Variable node.Node, Expression node.Node) *Spaceship {
return &Spaceship{
BinaryOp{
nil,

View File

@ -11,7 +11,7 @@ type BitwiseNot struct {
Expr node.Node
}
func NewBitwiseNot(Expression node.Node) node.Node {
func NewBitwiseNot(Expression node.Node) *BitwiseNot {
return &BitwiseNot{
nil,
nil,

View File

@ -11,7 +11,7 @@ type BooleanNot struct {
Expr node.Node
}
func NewBooleanNot(Expression node.Node) node.Node {
func NewBooleanNot(Expression node.Node) *BooleanNot {
return &BooleanNot{
nil,
nil,

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,

View File

@ -12,7 +12,7 @@ type ClassConstFetch struct {
ConstantName node.Node
}
func NewClassConstFetch(Class node.Node, ConstantName node.Node) node.Node {
func NewClassConstFetch(Class node.Node, ConstantName node.Node) *ClassConstFetch {
return &ClassConstFetch{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Clone struct {
Expr node.Node
}
func NewClone(Expression node.Node) node.Node {
func NewClone(Expression node.Node) *Clone {
return &Clone{
nil,
nil,

View File

@ -17,7 +17,7 @@ type Closure struct {
Stmts []node.Node
}
func NewClosure(Params []node.Node, Uses []node.Node, ReturnType node.Node, Stmts []node.Node, Static bool, ReturnsRef bool, PhpDocComment string) node.Node {
func NewClosure(Params []node.Node, Uses []node.Node, ReturnType node.Node, Stmts []node.Node, Static bool, ReturnsRef bool, PhpDocComment string) *Closure {
return &Closure{
nil,
nil,

View File

@ -12,7 +12,7 @@ type ClusureUse struct {
Variable node.Node
}
func NewClusureUse(Variable node.Node, ByRef bool) node.Node {
func NewClusureUse(Variable node.Node, ByRef bool) *ClusureUse {
return &ClusureUse{
nil,
nil,

View File

@ -11,7 +11,7 @@ type ConstFetch struct {
Constant node.Node
}
func NewConstFetch(Constant node.Node) node.Node {
func NewConstFetch(Constant node.Node) *ConstFetch {
return &ConstFetch{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Empty struct {
Expr node.Node
}
func NewEmpty(Expression node.Node) node.Node {
func NewEmpty(Expression node.Node) *Empty {
return &Empty{
nil,
nil,

View File

@ -11,7 +11,7 @@ type ErrorSuppress struct {
Expr node.Node
}
func NewErrorSuppress(Expression node.Node) node.Node {
func NewErrorSuppress(Expression node.Node) *ErrorSuppress {
return &ErrorSuppress{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Eval struct {
Expr node.Node
}
func NewEval(Expression node.Node) node.Node {
func NewEval(Expression node.Node) *Eval {
return &Eval{
nil,
nil,

View File

@ -12,7 +12,7 @@ type Exit struct {
IsDie bool
}
func NewExit(Expr node.Node, IsDie bool) node.Node {
func NewExit(Expr node.Node, IsDie bool) *Exit {
return &Exit{
nil,
nil,

View File

@ -12,7 +12,7 @@ type FunctionCall struct {
Arguments []node.Node
}
func NewFunctionCall(Function node.Node, Arguments []node.Node) node.Node {
func NewFunctionCall(Function node.Node, Arguments []node.Node) *FunctionCall {
return &FunctionCall{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Include struct {
Expr node.Node
}
func NewInclude(Expression node.Node) node.Node {
func NewInclude(Expression node.Node) *Include {
return &Include{
nil,
nil,

View File

@ -11,7 +11,7 @@ type IncludeOnce struct {
Expr node.Node
}
func NewIncludeOnce(Expression node.Node) node.Node {
func NewIncludeOnce(Expression node.Node) *IncludeOnce {
return &IncludeOnce{
nil,
nil,

View File

@ -12,7 +12,7 @@ type InstanceOf struct {
Class node.Node
}
func NewInstanceOf(Expr node.Node, Class node.Node) node.Node {
func NewInstanceOf(Expr node.Node, Class node.Node) *InstanceOf {
return &InstanceOf{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Isset struct {
Variables []node.Node
}
func NewIsset(Variables []node.Node) node.Node {
func NewIsset(Variables []node.Node) *Isset {
return &Isset{
nil,
nil,

View File

@ -11,7 +11,7 @@ type List struct {
Items []node.Node
}
func NewList(Items []node.Node) node.Node {
func NewList(Items []node.Node) *List {
return &List{
nil,
nil,

View File

@ -13,7 +13,7 @@ type MethodCall struct {
Arguments []node.Node
}
func NewMethodCall(Variable node.Node, Method node.Node, Arguments []node.Node) node.Node {
func NewMethodCall(Variable node.Node, Method node.Node, Arguments []node.Node) *MethodCall {
return &MethodCall{
nil,
nil,

View File

@ -12,7 +12,7 @@ type New struct {
Arguments []node.Node
}
func NewNew(Class node.Node, Arguments []node.Node) node.Node {
func NewNew(Class node.Node, Arguments []node.Node) *New {
return &New{
nil,
nil,

View File

@ -11,7 +11,7 @@ type PostDec struct {
Variable node.Node
}
func NewPostDec(Variable node.Node) node.Node {
func NewPostDec(Variable node.Node) *PostDec {
return &PostDec{
nil,
nil,

View File

@ -11,7 +11,7 @@ type PostInc struct {
Variable node.Node
}
func NewPostInc(Variable node.Node) node.Node {
func NewPostInc(Variable node.Node) *PostInc {
return &PostInc{
nil,
nil,

View File

@ -11,7 +11,7 @@ type PreDec struct {
Variable node.Node
}
func NewPreDec(Variable node.Node) node.Node {
func NewPreDec(Variable node.Node) *PreDec {
return &PreDec{
nil,
nil,

View File

@ -11,7 +11,7 @@ type PreInc struct {
Variable node.Node
}
func NewPreInc(Variable node.Node) node.Node {
func NewPreInc(Variable node.Node) *PreInc {
return &PreInc{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Print struct {
Expr node.Node
}
func NewPrint(Expression node.Node) node.Node {
func NewPrint(Expression node.Node) *Print {
return &Print{
nil,
nil,

View File

@ -12,7 +12,7 @@ type PropertyFetch struct {
Property node.Node
}
func NewPropertyFetch(Variable node.Node, Property node.Node) node.Node {
func NewPropertyFetch(Variable node.Node, Property node.Node) *PropertyFetch {
return &PropertyFetch{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Require struct {
Expr node.Node
}
func NewRequire(Expression node.Node) node.Node {
func NewRequire(Expression node.Node) *Require {
return &Require{
nil,
nil,

View File

@ -11,7 +11,7 @@ type RequireOnce struct {
Expr node.Node
}
func NewRequireOnce(Expression node.Node) node.Node {
func NewRequireOnce(Expression node.Node) *RequireOnce {
return &RequireOnce{
nil,
nil,

View File

@ -11,7 +11,7 @@ type ShellExec struct {
Parts []node.Node
}
func NewShellExec(Parts []node.Node) node.Node {
func NewShellExec(Parts []node.Node) *ShellExec {
return &ShellExec{
nil,
nil,

View File

@ -11,7 +11,7 @@ type ShortArray struct {
Items []node.Node
}
func NewShortArray(Items []node.Node) node.Node {
func NewShortArray(Items []node.Node) *ShortArray {
return &ShortArray{
nil,
nil,

View File

@ -11,7 +11,7 @@ type ShortList struct {
Items []node.Node
}
func NewShortList(Items []node.Node) node.Node {
func NewShortList(Items []node.Node) *ShortList {
return &ShortList{
nil,
nil,

View File

@ -13,7 +13,7 @@ type StaticCall struct {
Arguments []node.Node
}
func NewStaticCall(Class node.Node, Call node.Node, Arguments []node.Node) node.Node {
func NewStaticCall(Class node.Node, Call node.Node, Arguments []node.Node) *StaticCall {
return &StaticCall{
nil,
nil,

View File

@ -12,7 +12,7 @@ type StaticPropertyFetch struct {
Property node.Node
}
func NewStaticPropertyFetch(Class node.Node, Property node.Node) node.Node {
func NewStaticPropertyFetch(Class node.Node, Property node.Node) *StaticPropertyFetch {
return &StaticPropertyFetch{
nil,
nil,

View File

@ -13,7 +13,7 @@ type Ternary struct {
IfFalse node.Node
}
func NewTernary(Condition node.Node, IfTrue node.Node, IfFalse node.Node) node.Node {
func NewTernary(Condition node.Node, IfTrue node.Node, IfFalse node.Node) *Ternary {
return &Ternary{
nil,
nil,

View File

@ -11,7 +11,7 @@ type UnaryMinus struct {
Expr node.Node
}
func NewUnaryMinus(Expression node.Node) node.Node {
func NewUnaryMinus(Expression node.Node) *UnaryMinus {
return &UnaryMinus{
nil,
nil,

View File

@ -11,7 +11,7 @@ type UnaryPlus struct {
Expr node.Node
}
func NewUnaryPlus(Expression node.Node) node.Node {
func NewUnaryPlus(Expression node.Node) *UnaryPlus {
return &UnaryPlus{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Variable struct {
VarName node.Node
}
func NewVariable(VarName node.Node) node.Node {
func NewVariable(VarName node.Node) *Variable {
return &Variable{
nil,
nil,

View File

@ -12,7 +12,7 @@ type Yield struct {
Value node.Node
}
func NewYield(Key node.Node, Value node.Node) node.Node {
func NewYield(Key node.Node, Value node.Node) *Yield {
return &Yield{
nil,
nil,

View File

@ -11,7 +11,7 @@ type YieldFrom struct {
Expr node.Node
}
func NewYieldFrom(Expression node.Node) node.Node {
func NewYieldFrom(Expression node.Node) *YieldFrom {
return &YieldFrom{
nil,
nil,

View File

@ -8,7 +8,7 @@ type Identifier struct {
Value string
}
func NewIdentifier(Value string) Node {
func NewIdentifier(Value string) *Identifier {
return &Identifier{
nil,
nil,

View File

@ -8,7 +8,7 @@ type FullyQualified struct {
Name
}
func NewFullyQualified(Parts []node.Node) node.Node {
func NewFullyQualified(Parts []node.Node) *FullyQualified {
return &FullyQualified{
Name{
nil,

View File

@ -11,7 +11,7 @@ type Name struct {
Parts []node.Node
}
func NewName(Parts []node.Node) node.Node {
func NewName(Parts []node.Node) *Name {
return &Name{
nil,
nil,

View File

@ -11,7 +11,7 @@ type NamePart struct {
Value string
}
func NewNamePart(Value string) node.Node {
func NewNamePart(Value string) *NamePart {
return &NamePart{
nil,
nil,

View File

@ -8,7 +8,7 @@ type Relative struct {
Name
}
func NewRelative(Parts []node.Node) node.Node {
func NewRelative(Parts []node.Node) *Relative {
return &Relative{
Name{
nil,

View File

@ -8,7 +8,7 @@ type Nullable struct {
Expr Node
}
func NewNullable(Expression Node) Node {
func NewNullable(Expression Node) *Nullable {
return &Nullable{
nil,
nil,

View File

@ -12,7 +12,7 @@ type Parameter struct {
DefaultValue Node
}
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) *Parameter {
return &Parameter{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Dnumber struct {
Value string
}
func NewDnumber(Value string) node.Node {
func NewDnumber(Value string) *Dnumber {
return &Dnumber{
nil,
nil,

View File

@ -11,7 +11,7 @@ type Encapsed struct {
Parts []node.Node
}
func NewEncapsed(Parts []node.Node) node.Node {
func NewEncapsed(Parts []node.Node) *Encapsed {
return &Encapsed{
nil,
nil,

View File

@ -11,7 +11,7 @@ type EncapsedStringPart struct {
Value string
}
func NewEncapsedStringPart(Value string) node.Node {
func NewEncapsedStringPart(Value string) *EncapsedStringPart {
return &EncapsedStringPart{
nil,
nil,

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