fix typo
This commit is contained in:
parent
47c51ea022
commit
a0cc61bdc0
@ -11,7 +11,7 @@ type Assign struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewAssign node constuctor
|
||||
// NewAssign node constructor
|
||||
func NewAssign(Variable node.Node, Expression node.Node) *Assign {
|
||||
return &Assign{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Reference struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewReference node constuctor
|
||||
// NewReference node constructor
|
||||
func NewReference(Variable node.Node, Expression node.Node) *Reference {
|
||||
return &Reference{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type BitwiseAnd struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewBitwiseAnd node constuctor
|
||||
// NewBitwiseAnd node constructor
|
||||
func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {
|
||||
return &BitwiseAnd{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type BitwiseOr struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewBitwiseOr node constuctor
|
||||
// NewBitwiseOr node constructor
|
||||
func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
|
||||
return &BitwiseOr{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type BitwiseXor struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewBitwiseXor node constuctor
|
||||
// NewBitwiseXor node constructor
|
||||
func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
|
||||
return &BitwiseXor{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Concat struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewConcat node constuctor
|
||||
// NewConcat node constructor
|
||||
func NewConcat(Variable node.Node, Expression node.Node) *Concat {
|
||||
return &Concat{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Div struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewDiv node constuctor
|
||||
// NewDiv node constructor
|
||||
func NewDiv(Variable node.Node, Expression node.Node) *Div {
|
||||
return &Div{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Minus struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewMinus node constuctor
|
||||
// NewMinus node constructor
|
||||
func NewMinus(Variable node.Node, Expression node.Node) *Minus {
|
||||
return &Minus{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Mod struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewMod node constuctor
|
||||
// NewMod node constructor
|
||||
func NewMod(Variable node.Node, Expression node.Node) *Mod {
|
||||
return &Mod{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Mul struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewMul node constuctor
|
||||
// NewMul node constructor
|
||||
func NewMul(Variable node.Node, Expression node.Node) *Mul {
|
||||
return &Mul{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Plus struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewPlus node constuctor
|
||||
// NewPlus node constructor
|
||||
func NewPlus(Variable node.Node, Expression node.Node) *Plus {
|
||||
return &Plus{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Pow struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewPow node constuctor
|
||||
// NewPow node constructor
|
||||
func NewPow(Variable node.Node, Expression node.Node) *Pow {
|
||||
return &Pow{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type ShiftLeft struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewShiftLeft node constuctor
|
||||
// NewShiftLeft node constructor
|
||||
func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {
|
||||
return &ShiftLeft{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type ShiftRight struct {
|
||||
Expression node.Node
|
||||
}
|
||||
|
||||
// NewShiftRight node constuctor
|
||||
// NewShiftRight node constructor
|
||||
func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
|
||||
return &ShiftRight{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type BitwiseAnd struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewBitwiseAnd node constuctor
|
||||
// NewBitwiseAnd node constructor
|
||||
func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {
|
||||
return &BitwiseAnd{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type BitwiseOr struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewBitwiseOr node constuctor
|
||||
// NewBitwiseOr node constructor
|
||||
func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
|
||||
return &BitwiseOr{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type BitwiseXor struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewBitwiseXor node constuctor
|
||||
// NewBitwiseXor node constructor
|
||||
func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
|
||||
return &BitwiseXor{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type BooleanAnd struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewBooleanAnd node constuctor
|
||||
// NewBooleanAnd node constructor
|
||||
func NewBooleanAnd(Variable node.Node, Expression node.Node) *BooleanAnd {
|
||||
return &BooleanAnd{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type BooleanOr struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewBooleanOr node constuctor
|
||||
// NewBooleanOr node constructor
|
||||
func NewBooleanOr(Variable node.Node, Expression node.Node) *BooleanOr {
|
||||
return &BooleanOr{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Coalesce struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewCoalesce node constuctor
|
||||
// NewCoalesce node constructor
|
||||
func NewCoalesce(Variable node.Node, Expression node.Node) *Coalesce {
|
||||
return &Coalesce{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Concat struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewConcat node constuctor
|
||||
// NewConcat node constructor
|
||||
func NewConcat(Variable node.Node, Expression node.Node) *Concat {
|
||||
return &Concat{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Div struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewDiv node constuctor
|
||||
// NewDiv node constructor
|
||||
func NewDiv(Variable node.Node, Expression node.Node) *Div {
|
||||
return &Div{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Equal struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewEqual node constuctor
|
||||
// NewEqual node constructor
|
||||
func NewEqual(Variable node.Node, Expression node.Node) *Equal {
|
||||
return &Equal{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Greater struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewGreater node constuctor
|
||||
// NewGreater node constructor
|
||||
func NewGreater(Variable node.Node, Expression node.Node) *Greater {
|
||||
return &Greater{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type GreaterOrEqual struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewGreaterOrEqual node constuctor
|
||||
// NewGreaterOrEqual node constructor
|
||||
func NewGreaterOrEqual(Variable node.Node, Expression node.Node) *GreaterOrEqual {
|
||||
return &GreaterOrEqual{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Identical struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewIdentical node constuctor
|
||||
// NewIdentical node constructor
|
||||
func NewIdentical(Variable node.Node, Expression node.Node) *Identical {
|
||||
return &Identical{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type LogicalAnd struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewLogicalAnd node constuctor
|
||||
// NewLogicalAnd node constructor
|
||||
func NewLogicalAnd(Variable node.Node, Expression node.Node) *LogicalAnd {
|
||||
return &LogicalAnd{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type LogicalOr struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewLogicalOr node constuctor
|
||||
// NewLogicalOr node constructor
|
||||
func NewLogicalOr(Variable node.Node, Expression node.Node) *LogicalOr {
|
||||
return &LogicalOr{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type LogicalXor struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewLogicalXor node constuctor
|
||||
// NewLogicalXor node constructor
|
||||
func NewLogicalXor(Variable node.Node, Expression node.Node) *LogicalXor {
|
||||
return &LogicalXor{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Minus struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewMinus node constuctor
|
||||
// NewMinus node constructor
|
||||
func NewMinus(Variable node.Node, Expression node.Node) *Minus {
|
||||
return &Minus{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Mod struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewMod node constuctor
|
||||
// NewMod node constructor
|
||||
func NewMod(Variable node.Node, Expression node.Node) *Mod {
|
||||
return &Mod{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Mul struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewMul node constuctor
|
||||
// NewMul node constructor
|
||||
func NewMul(Variable node.Node, Expression node.Node) *Mul {
|
||||
return &Mul{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type NotEqual struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewNotEqual node constuctor
|
||||
// NewNotEqual node constructor
|
||||
func NewNotEqual(Variable node.Node, Expression node.Node) *NotEqual {
|
||||
return &NotEqual{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type NotIdentical struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewNotIdentical node constuctor
|
||||
// NewNotIdentical node constructor
|
||||
func NewNotIdentical(Variable node.Node, Expression node.Node) *NotIdentical {
|
||||
return &NotIdentical{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Plus struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewPlus node constuctor
|
||||
// NewPlus node constructor
|
||||
func NewPlus(Variable node.Node, Expression node.Node) *Plus {
|
||||
return &Plus{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Pow struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewPow node constuctor
|
||||
// NewPow node constructor
|
||||
func NewPow(Variable node.Node, Expression node.Node) *Pow {
|
||||
return &Pow{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type ShiftLeft struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewShiftLeft node constuctor
|
||||
// NewShiftLeft node constructor
|
||||
func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {
|
||||
return &ShiftLeft{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type ShiftRight struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewShiftRight node constuctor
|
||||
// NewShiftRight node constructor
|
||||
func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
|
||||
return &ShiftRight{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Smaller struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewSmaller node constuctor
|
||||
// NewSmaller node constructor
|
||||
func NewSmaller(Variable node.Node, Expression node.Node) *Smaller {
|
||||
return &Smaller{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type SmallerOrEqual struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewSmallerOrEqual node constuctor
|
||||
// NewSmallerOrEqual node constructor
|
||||
func NewSmallerOrEqual(Variable node.Node, Expression node.Node) *SmallerOrEqual {
|
||||
return &SmallerOrEqual{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type Spaceship struct {
|
||||
Right node.Node
|
||||
}
|
||||
|
||||
// NewSpaceship node constuctor
|
||||
// NewSpaceship node constructor
|
||||
func NewSpaceship(Variable node.Node, Expression node.Node) *Spaceship {
|
||||
return &Spaceship{
|
||||
Variable,
|
||||
|
@ -10,7 +10,7 @@ type Array struct {
|
||||
Items []node.Node
|
||||
}
|
||||
|
||||
// NewArray node constuctor
|
||||
// NewArray node constructor
|
||||
func NewArray(Items []node.Node) *Array {
|
||||
return &Array{
|
||||
Items,
|
||||
|
@ -11,7 +11,7 @@ type ArrayDimFetch struct {
|
||||
Dim node.Node
|
||||
}
|
||||
|
||||
// NewArrayDimFetch node constuctor
|
||||
// NewArrayDimFetch node constructor
|
||||
func NewArrayDimFetch(Variable node.Node, Dim node.Node) *ArrayDimFetch {
|
||||
return &ArrayDimFetch{
|
||||
Variable,
|
||||
|
@ -12,7 +12,7 @@ type ArrayItem struct {
|
||||
Val node.Node
|
||||
}
|
||||
|
||||
// NewArrayItem node constuctor
|
||||
// NewArrayItem node constructor
|
||||
func NewArrayItem(Key node.Node, Val node.Node, ByRef bool) *ArrayItem {
|
||||
return &ArrayItem{
|
||||
ByRef,
|
||||
|
@ -10,7 +10,7 @@ type BitwiseNot struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewBitwiseNot node constuctor
|
||||
// NewBitwiseNot node constructor
|
||||
func NewBitwiseNot(Expression node.Node) *BitwiseNot {
|
||||
return &BitwiseNot{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type BooleanNot struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewBooleanNot node constuctor
|
||||
// NewBooleanNot node constructor
|
||||
func NewBooleanNot(Expression node.Node) *BooleanNot {
|
||||
return &BooleanNot{
|
||||
Expression,
|
||||
|
@ -11,7 +11,7 @@ type ClassConstFetch struct {
|
||||
ConstantName node.Node
|
||||
}
|
||||
|
||||
// NewClassConstFetch node constuctor
|
||||
// NewClassConstFetch node constructor
|
||||
func NewClassConstFetch(Class node.Node, ConstantName node.Node) *ClassConstFetch {
|
||||
return &ClassConstFetch{
|
||||
Class,
|
||||
|
@ -10,7 +10,7 @@ type Clone struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewClone node constuctor
|
||||
// NewClone node constructor
|
||||
func NewClone(Expression node.Node) *Clone {
|
||||
return &Clone{
|
||||
Expression,
|
||||
|
@ -16,7 +16,7 @@ type Closure struct {
|
||||
Stmts []node.Node
|
||||
}
|
||||
|
||||
// NewClosure node constuctor
|
||||
// NewClosure node constructor
|
||||
func NewClosure(Params []node.Node, Uses []node.Node, ReturnType node.Node, Stmts []node.Node, Static bool, ReturnsRef bool, PhpDocComment string) *Closure {
|
||||
return &Closure{
|
||||
ReturnsRef,
|
||||
|
@ -11,7 +11,7 @@ type ClosureUse struct {
|
||||
Variable node.Node
|
||||
}
|
||||
|
||||
// NewClosureUse node constuctor
|
||||
// NewClosureUse node constructor
|
||||
func NewClosureUse(Variable node.Node, ByRef bool) *ClosureUse {
|
||||
return &ClosureUse{
|
||||
ByRef,
|
||||
|
@ -10,7 +10,7 @@ type ConstFetch struct {
|
||||
Constant node.Node
|
||||
}
|
||||
|
||||
// NewConstFetch node constuctor
|
||||
// NewConstFetch node constructor
|
||||
func NewConstFetch(Constant node.Node) *ConstFetch {
|
||||
return &ConstFetch{
|
||||
Constant,
|
||||
|
@ -10,7 +10,7 @@ type Die struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewDie node constuctor
|
||||
// NewDie node constructor
|
||||
func NewDie(Expr node.Node) *Die {
|
||||
return &Die{
|
||||
Expr,
|
||||
|
@ -10,7 +10,7 @@ type Empty struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewEmpty node constuctor
|
||||
// NewEmpty node constructor
|
||||
func NewEmpty(Expression node.Node) *Empty {
|
||||
return &Empty{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type ErrorSuppress struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewErrorSuppress node constuctor
|
||||
// NewErrorSuppress node constructor
|
||||
func NewErrorSuppress(Expression node.Node) *ErrorSuppress {
|
||||
return &ErrorSuppress{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type Eval struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewEval node constuctor
|
||||
// NewEval node constructor
|
||||
func NewEval(Expression node.Node) *Eval {
|
||||
return &Eval{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type Exit struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewExit node constuctor
|
||||
// NewExit node constructor
|
||||
func NewExit(Expr node.Node) *Exit {
|
||||
return &Exit{
|
||||
Expr,
|
||||
|
@ -11,7 +11,7 @@ type FunctionCall struct {
|
||||
Arguments []node.Node
|
||||
}
|
||||
|
||||
// NewFunctionCall node constuctor
|
||||
// NewFunctionCall node constructor
|
||||
func NewFunctionCall(Function node.Node, Arguments []node.Node) *FunctionCall {
|
||||
return &FunctionCall{
|
||||
Function,
|
||||
|
@ -10,7 +10,7 @@ type Include struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewInclude node constuctor
|
||||
// NewInclude node constructor
|
||||
func NewInclude(Expression node.Node) *Include {
|
||||
return &Include{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type IncludeOnce struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewIncludeOnce node constuctor
|
||||
// NewIncludeOnce node constructor
|
||||
func NewIncludeOnce(Expression node.Node) *IncludeOnce {
|
||||
return &IncludeOnce{
|
||||
Expression,
|
||||
|
@ -11,7 +11,7 @@ type InstanceOf struct {
|
||||
Class node.Node
|
||||
}
|
||||
|
||||
// NewInstanceOf node constuctor
|
||||
// NewInstanceOf node constructor
|
||||
func NewInstanceOf(Expr node.Node, Class node.Node) *InstanceOf {
|
||||
return &InstanceOf{
|
||||
Expr,
|
||||
|
@ -10,7 +10,7 @@ type Isset struct {
|
||||
Variables []node.Node
|
||||
}
|
||||
|
||||
// NewIsset node constuctor
|
||||
// NewIsset node constructor
|
||||
func NewIsset(Variables []node.Node) *Isset {
|
||||
return &Isset{
|
||||
Variables,
|
||||
|
@ -10,7 +10,7 @@ type List struct {
|
||||
Items []node.Node
|
||||
}
|
||||
|
||||
// NewList node constuctor
|
||||
// NewList node constructor
|
||||
func NewList(Items []node.Node) *List {
|
||||
return &List{
|
||||
Items,
|
||||
|
@ -12,7 +12,7 @@ type MethodCall struct {
|
||||
Arguments []node.Node
|
||||
}
|
||||
|
||||
// NewMethodCall node constuctor
|
||||
// NewMethodCall node constructor
|
||||
func NewMethodCall(Variable node.Node, Method node.Node, Arguments []node.Node) *MethodCall {
|
||||
return &MethodCall{
|
||||
Variable,
|
||||
|
@ -11,7 +11,7 @@ type New struct {
|
||||
Arguments []node.Node
|
||||
}
|
||||
|
||||
// NewNew node constuctor
|
||||
// NewNew node constructor
|
||||
func NewNew(Class node.Node, Arguments []node.Node) *New {
|
||||
return &New{
|
||||
Class,
|
||||
|
@ -10,7 +10,7 @@ type PostDec struct {
|
||||
Variable node.Node
|
||||
}
|
||||
|
||||
// NewPostDec node constuctor
|
||||
// NewPostDec node constructor
|
||||
func NewPostDec(Variable node.Node) *PostDec {
|
||||
return &PostDec{
|
||||
Variable,
|
||||
|
@ -10,7 +10,7 @@ type PostInc struct {
|
||||
Variable node.Node
|
||||
}
|
||||
|
||||
// NewPostInc node constuctor
|
||||
// NewPostInc node constructor
|
||||
func NewPostInc(Variable node.Node) *PostInc {
|
||||
return &PostInc{
|
||||
Variable,
|
||||
|
@ -10,7 +10,7 @@ type PreDec struct {
|
||||
Variable node.Node
|
||||
}
|
||||
|
||||
// NewPreDec node constuctor
|
||||
// NewPreDec node constructor
|
||||
func NewPreDec(Variable node.Node) *PreDec {
|
||||
return &PreDec{
|
||||
Variable,
|
||||
|
@ -10,7 +10,7 @@ type PreInc struct {
|
||||
Variable node.Node
|
||||
}
|
||||
|
||||
// NewPreInc node constuctor
|
||||
// NewPreInc node constructor
|
||||
func NewPreInc(Variable node.Node) *PreInc {
|
||||
return &PreInc{
|
||||
Variable,
|
||||
|
@ -10,7 +10,7 @@ type Print struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewPrint node constuctor
|
||||
// NewPrint node constructor
|
||||
func NewPrint(Expression node.Node) *Print {
|
||||
return &Print{
|
||||
Expression,
|
||||
|
@ -11,7 +11,7 @@ type PropertyFetch struct {
|
||||
Property node.Node
|
||||
}
|
||||
|
||||
// NewPropertyFetch node constuctor
|
||||
// NewPropertyFetch node constructor
|
||||
func NewPropertyFetch(Variable node.Node, Property node.Node) *PropertyFetch {
|
||||
return &PropertyFetch{
|
||||
Variable,
|
||||
|
@ -10,7 +10,7 @@ type Require struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewRequire node constuctor
|
||||
// NewRequire node constructor
|
||||
func NewRequire(Expression node.Node) *Require {
|
||||
return &Require{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type RequireOnce struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewRequireOnce node constuctor
|
||||
// NewRequireOnce node constructor
|
||||
func NewRequireOnce(Expression node.Node) *RequireOnce {
|
||||
return &RequireOnce{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type ShellExec struct {
|
||||
Parts []node.Node
|
||||
}
|
||||
|
||||
// NewShellExec node constuctor
|
||||
// NewShellExec node constructor
|
||||
func NewShellExec(Parts []node.Node) *ShellExec {
|
||||
return &ShellExec{
|
||||
Parts,
|
||||
|
@ -10,7 +10,7 @@ type ShortArray struct {
|
||||
Items []node.Node
|
||||
}
|
||||
|
||||
// NewShortArray node constuctor
|
||||
// NewShortArray node constructor
|
||||
func NewShortArray(Items []node.Node) *ShortArray {
|
||||
return &ShortArray{
|
||||
Items,
|
||||
|
@ -10,7 +10,7 @@ type ShortList struct {
|
||||
Items []node.Node
|
||||
}
|
||||
|
||||
// NewShortList node constuctor
|
||||
// NewShortList node constructor
|
||||
func NewShortList(Items []node.Node) *ShortList {
|
||||
return &ShortList{
|
||||
Items,
|
||||
|
@ -12,7 +12,7 @@ type StaticCall struct {
|
||||
Arguments []node.Node
|
||||
}
|
||||
|
||||
// NewStaticCall node constuctor
|
||||
// NewStaticCall node constructor
|
||||
func NewStaticCall(Class node.Node, Call node.Node, Arguments []node.Node) *StaticCall {
|
||||
return &StaticCall{
|
||||
Class,
|
||||
|
@ -11,7 +11,7 @@ type StaticPropertyFetch struct {
|
||||
Property node.Node
|
||||
}
|
||||
|
||||
// NewStaticPropertyFetch node constuctor
|
||||
// NewStaticPropertyFetch node constructor
|
||||
func NewStaticPropertyFetch(Class node.Node, Property node.Node) *StaticPropertyFetch {
|
||||
return &StaticPropertyFetch{
|
||||
Class,
|
||||
|
@ -12,7 +12,7 @@ type Ternary struct {
|
||||
IfFalse node.Node
|
||||
}
|
||||
|
||||
// NewTernary node constuctor
|
||||
// NewTernary node constructor
|
||||
func NewTernary(Condition node.Node, IfTrue node.Node, IfFalse node.Node) *Ternary {
|
||||
return &Ternary{
|
||||
Condition,
|
||||
|
@ -10,7 +10,7 @@ type UnaryMinus struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewUnaryMinus node constuctor
|
||||
// NewUnaryMinus node constructor
|
||||
func NewUnaryMinus(Expression node.Node) *UnaryMinus {
|
||||
return &UnaryMinus{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type UnaryPlus struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewUnaryPlus node constuctor
|
||||
// NewUnaryPlus node constructor
|
||||
func NewUnaryPlus(Expression node.Node) *UnaryPlus {
|
||||
return &UnaryPlus{
|
||||
Expression,
|
||||
|
@ -10,7 +10,7 @@ type Variable struct {
|
||||
VarName node.Node
|
||||
}
|
||||
|
||||
// NewVariable node constuctor
|
||||
// NewVariable node constructor
|
||||
func NewVariable(VarName node.Node) *Variable {
|
||||
return &Variable{
|
||||
VarName,
|
||||
|
@ -11,7 +11,7 @@ type Yield struct {
|
||||
Value node.Node
|
||||
}
|
||||
|
||||
// NewYield node constuctor
|
||||
// NewYield node constructor
|
||||
func NewYield(Key node.Node, Value node.Node) *Yield {
|
||||
return &Yield{
|
||||
Key,
|
||||
|
@ -10,7 +10,7 @@ type YieldFrom struct {
|
||||
Expr node.Node
|
||||
}
|
||||
|
||||
// NewYieldFrom node constuctor
|
||||
// NewYieldFrom node constructor
|
||||
func NewYieldFrom(Expression node.Node) *YieldFrom {
|
||||
return &YieldFrom{
|
||||
Expression,
|
||||
|
@ -9,7 +9,7 @@ type Argument struct {
|
||||
Expr Node // Exression
|
||||
}
|
||||
|
||||
// NewArgument node constuctor
|
||||
// NewArgument node constructor
|
||||
func NewArgument(Expression Node, Variadic bool, IsReference bool) *Argument {
|
||||
return &Argument{
|
||||
Variadic,
|
||||
|
@ -7,7 +7,7 @@ type Identifier struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// NewIdentifier node constuctor
|
||||
// NewIdentifier node constructor
|
||||
func NewIdentifier(Value string) *Identifier {
|
||||
return &Identifier{
|
||||
Value,
|
||||
|
@ -7,7 +7,7 @@ type Nullable struct {
|
||||
Expr Node
|
||||
}
|
||||
|
||||
// NewNullable node constuctor
|
||||
// NewNullable node constructor
|
||||
func NewNullable(Expression Node) *Nullable {
|
||||
return &Nullable{
|
||||
Expression,
|
||||
|
@ -11,7 +11,7 @@ type Parameter struct {
|
||||
DefaultValue Node
|
||||
}
|
||||
|
||||
// NewParameter node constuctor
|
||||
// NewParameter node constructor
|
||||
func NewParameter(VariableType Node, Variable Node, DefaultValue Node, ByRef bool, Variadic bool) *Parameter {
|
||||
return &Parameter{
|
||||
ByRef,
|
||||
|
@ -10,7 +10,7 @@ type FullyQualified struct {
|
||||
Parts []node.Node
|
||||
}
|
||||
|
||||
// NewFullyQualified node constuctor
|
||||
// NewFullyQualified node constructor
|
||||
func NewFullyQualified(Parts []node.Node) *FullyQualified {
|
||||
return &FullyQualified{
|
||||
Parts,
|
||||
|
@ -10,7 +10,7 @@ type Name struct {
|
||||
Parts []node.Node
|
||||
}
|
||||
|
||||
// NewName node constuctor
|
||||
// NewName node constructor
|
||||
func NewName(Parts []node.Node) *Name {
|
||||
return &Name{
|
||||
Parts,
|
||||
|
@ -7,7 +7,7 @@ type NamePart struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// NewNamePart node constuctor
|
||||
// NewNamePart node constructor
|
||||
func NewNamePart(Value string) *NamePart {
|
||||
return &NamePart{
|
||||
Value,
|
||||
|
@ -10,7 +10,7 @@ type Relative struct {
|
||||
Parts []node.Node
|
||||
}
|
||||
|
||||
// NewRelative node constuctor
|
||||
// NewRelative node constructor
|
||||
func NewRelative(Parts []node.Node) *Relative {
|
||||
return &Relative{
|
||||
Parts,
|
||||
|
@ -7,7 +7,7 @@ type Dnumber struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// NewDnumber node constuctor
|
||||
// NewDnumber node constructor
|
||||
func NewDnumber(Value string) *Dnumber {
|
||||
return &Dnumber{
|
||||
Value,
|
||||
|
@ -10,7 +10,7 @@ type Encapsed struct {
|
||||
Parts []node.Node
|
||||
}
|
||||
|
||||
// NewEncapsed node constuctor
|
||||
// NewEncapsed node constructor
|
||||
func NewEncapsed(Parts []node.Node) *Encapsed {
|
||||
return &Encapsed{
|
||||
Parts,
|
||||
|
@ -7,7 +7,7 @@ type EncapsedStringPart struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// NewEncapsedStringPart node constuctor
|
||||
// NewEncapsedStringPart node constructor
|
||||
func NewEncapsedStringPart(Value string) *EncapsedStringPart {
|
||||
return &EncapsedStringPart{
|
||||
Value,
|
||||
|
@ -7,7 +7,7 @@ type Lnumber struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// NewLnumber node constuctor
|
||||
// NewLnumber node constructor
|
||||
func NewLnumber(Value string) *Lnumber {
|
||||
return &Lnumber{
|
||||
Value,
|
||||
|
@ -7,7 +7,7 @@ type MagicConstant struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// NewMagicConstant node constuctor
|
||||
// NewMagicConstant node constructor
|
||||
func NewMagicConstant(Value string) *MagicConstant {
|
||||
return &MagicConstant{
|
||||
Value,
|
||||
|
@ -7,7 +7,7 @@ type String struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// NewString node constuctor
|
||||
// NewString node constructor
|
||||
func NewString(Value string) *String {
|
||||
return &String{
|
||||
Value,
|
||||
|
@ -10,7 +10,7 @@ type AltElse struct {
|
||||
Stmt node.Node
|
||||
}
|
||||
|
||||
// NewAltElse node constuctor
|
||||
// NewAltElse node constructor
|
||||
func NewAltElse(Stmt node.Node) *AltElse {
|
||||
return &AltElse{
|
||||
Stmt,
|
||||
|
@ -11,7 +11,7 @@ type AltElseIf struct {
|
||||
Stmt node.Node
|
||||
}
|
||||
|
||||
// NewAltElseIf node constuctor
|
||||
// NewAltElseIf node constructor
|
||||
func NewAltElseIf(Cond node.Node, Stmt node.Node) *AltElseIf {
|
||||
return &AltElseIf{
|
||||
Cond,
|
||||
|
@ -13,7 +13,7 @@ type AltFor struct {
|
||||
Stmt node.Node
|
||||
}
|
||||
|
||||
// NewAltFor node constuctor
|
||||
// NewAltFor node constructor
|
||||
func NewAltFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *AltFor {
|
||||
return &AltFor{
|
||||
Init,
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user