This commit is contained in:
z7zmey 2018-04-05 12:04:28 +03:00
parent 47c51ea022
commit a0cc61bdc0
152 changed files with 152 additions and 152 deletions

View File

@ -11,7 +11,7 @@ type Assign struct {
Expression node.Node Expression node.Node
} }
// NewAssign node constuctor // NewAssign node constructor
func NewAssign(Variable node.Node, Expression node.Node) *Assign { func NewAssign(Variable node.Node, Expression node.Node) *Assign {
return &Assign{ return &Assign{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Reference struct {
Expression node.Node Expression node.Node
} }
// NewReference node constuctor // NewReference node constructor
func NewReference(Variable node.Node, Expression node.Node) *Reference { func NewReference(Variable node.Node, Expression node.Node) *Reference {
return &Reference{ return &Reference{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type BitwiseAnd struct {
Expression node.Node Expression node.Node
} }
// NewBitwiseAnd node constuctor // NewBitwiseAnd node constructor
func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd { func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {
return &BitwiseAnd{ return &BitwiseAnd{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type BitwiseOr struct {
Expression node.Node Expression node.Node
} }
// NewBitwiseOr node constuctor // NewBitwiseOr node constructor
func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr { func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
return &BitwiseOr{ return &BitwiseOr{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type BitwiseXor struct {
Expression node.Node Expression node.Node
} }
// NewBitwiseXor node constuctor // NewBitwiseXor node constructor
func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor { func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
return &BitwiseXor{ return &BitwiseXor{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Concat struct {
Expression node.Node Expression node.Node
} }
// NewConcat node constuctor // NewConcat node constructor
func NewConcat(Variable node.Node, Expression node.Node) *Concat { func NewConcat(Variable node.Node, Expression node.Node) *Concat {
return &Concat{ return &Concat{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Div struct {
Expression node.Node Expression node.Node
} }
// NewDiv node constuctor // NewDiv node constructor
func NewDiv(Variable node.Node, Expression node.Node) *Div { func NewDiv(Variable node.Node, Expression node.Node) *Div {
return &Div{ return &Div{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Minus struct {
Expression node.Node Expression node.Node
} }
// NewMinus node constuctor // NewMinus node constructor
func NewMinus(Variable node.Node, Expression node.Node) *Minus { func NewMinus(Variable node.Node, Expression node.Node) *Minus {
return &Minus{ return &Minus{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Mod struct {
Expression node.Node Expression node.Node
} }
// NewMod node constuctor // NewMod node constructor
func NewMod(Variable node.Node, Expression node.Node) *Mod { func NewMod(Variable node.Node, Expression node.Node) *Mod {
return &Mod{ return &Mod{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Mul struct {
Expression node.Node Expression node.Node
} }
// NewMul node constuctor // NewMul node constructor
func NewMul(Variable node.Node, Expression node.Node) *Mul { func NewMul(Variable node.Node, Expression node.Node) *Mul {
return &Mul{ return &Mul{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Plus struct {
Expression node.Node Expression node.Node
} }
// NewPlus node constuctor // NewPlus node constructor
func NewPlus(Variable node.Node, Expression node.Node) *Plus { func NewPlus(Variable node.Node, Expression node.Node) *Plus {
return &Plus{ return &Plus{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Pow struct {
Expression node.Node Expression node.Node
} }
// NewPow node constuctor // NewPow node constructor
func NewPow(Variable node.Node, Expression node.Node) *Pow { func NewPow(Variable node.Node, Expression node.Node) *Pow {
return &Pow{ return &Pow{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type ShiftLeft struct {
Expression node.Node Expression node.Node
} }
// NewShiftLeft node constuctor // NewShiftLeft node constructor
func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft { func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {
return &ShiftLeft{ return &ShiftLeft{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type ShiftRight struct {
Expression node.Node Expression node.Node
} }
// NewShiftRight node constuctor // NewShiftRight node constructor
func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight { func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
return &ShiftRight{ return &ShiftRight{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type BitwiseAnd struct {
Right node.Node Right node.Node
} }
// NewBitwiseAnd node constuctor // NewBitwiseAnd node constructor
func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd { func NewBitwiseAnd(Variable node.Node, Expression node.Node) *BitwiseAnd {
return &BitwiseAnd{ return &BitwiseAnd{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type BitwiseOr struct {
Right node.Node Right node.Node
} }
// NewBitwiseOr node constuctor // NewBitwiseOr node constructor
func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr { func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
return &BitwiseOr{ return &BitwiseOr{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type BitwiseXor struct {
Right node.Node Right node.Node
} }
// NewBitwiseXor node constuctor // NewBitwiseXor node constructor
func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor { func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
return &BitwiseXor{ return &BitwiseXor{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type BooleanAnd struct {
Right node.Node Right node.Node
} }
// NewBooleanAnd node constuctor // NewBooleanAnd node constructor
func NewBooleanAnd(Variable node.Node, Expression node.Node) *BooleanAnd { func NewBooleanAnd(Variable node.Node, Expression node.Node) *BooleanAnd {
return &BooleanAnd{ return &BooleanAnd{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type BooleanOr struct {
Right node.Node Right node.Node
} }
// NewBooleanOr node constuctor // NewBooleanOr node constructor
func NewBooleanOr(Variable node.Node, Expression node.Node) *BooleanOr { func NewBooleanOr(Variable node.Node, Expression node.Node) *BooleanOr {
return &BooleanOr{ return &BooleanOr{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Coalesce struct {
Right node.Node Right node.Node
} }
// NewCoalesce node constuctor // NewCoalesce node constructor
func NewCoalesce(Variable node.Node, Expression node.Node) *Coalesce { func NewCoalesce(Variable node.Node, Expression node.Node) *Coalesce {
return &Coalesce{ return &Coalesce{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Concat struct {
Right node.Node Right node.Node
} }
// NewConcat node constuctor // NewConcat node constructor
func NewConcat(Variable node.Node, Expression node.Node) *Concat { func NewConcat(Variable node.Node, Expression node.Node) *Concat {
return &Concat{ return &Concat{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Div struct {
Right node.Node Right node.Node
} }
// NewDiv node constuctor // NewDiv node constructor
func NewDiv(Variable node.Node, Expression node.Node) *Div { func NewDiv(Variable node.Node, Expression node.Node) *Div {
return &Div{ return &Div{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Equal struct {
Right node.Node Right node.Node
} }
// NewEqual node constuctor // NewEqual node constructor
func NewEqual(Variable node.Node, Expression node.Node) *Equal { func NewEqual(Variable node.Node, Expression node.Node) *Equal {
return &Equal{ return &Equal{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Greater struct {
Right node.Node Right node.Node
} }
// NewGreater node constuctor // NewGreater node constructor
func NewGreater(Variable node.Node, Expression node.Node) *Greater { func NewGreater(Variable node.Node, Expression node.Node) *Greater {
return &Greater{ return &Greater{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type GreaterOrEqual struct {
Right node.Node Right node.Node
} }
// NewGreaterOrEqual node constuctor // NewGreaterOrEqual node constructor
func NewGreaterOrEqual(Variable node.Node, Expression node.Node) *GreaterOrEqual { func NewGreaterOrEqual(Variable node.Node, Expression node.Node) *GreaterOrEqual {
return &GreaterOrEqual{ return &GreaterOrEqual{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Identical struct {
Right node.Node Right node.Node
} }
// NewIdentical node constuctor // NewIdentical node constructor
func NewIdentical(Variable node.Node, Expression node.Node) *Identical { func NewIdentical(Variable node.Node, Expression node.Node) *Identical {
return &Identical{ return &Identical{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type LogicalAnd struct {
Right node.Node Right node.Node
} }
// NewLogicalAnd node constuctor // NewLogicalAnd node constructor
func NewLogicalAnd(Variable node.Node, Expression node.Node) *LogicalAnd { func NewLogicalAnd(Variable node.Node, Expression node.Node) *LogicalAnd {
return &LogicalAnd{ return &LogicalAnd{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type LogicalOr struct {
Right node.Node Right node.Node
} }
// NewLogicalOr node constuctor // NewLogicalOr node constructor
func NewLogicalOr(Variable node.Node, Expression node.Node) *LogicalOr { func NewLogicalOr(Variable node.Node, Expression node.Node) *LogicalOr {
return &LogicalOr{ return &LogicalOr{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type LogicalXor struct {
Right node.Node Right node.Node
} }
// NewLogicalXor node constuctor // NewLogicalXor node constructor
func NewLogicalXor(Variable node.Node, Expression node.Node) *LogicalXor { func NewLogicalXor(Variable node.Node, Expression node.Node) *LogicalXor {
return &LogicalXor{ return &LogicalXor{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Minus struct {
Right node.Node Right node.Node
} }
// NewMinus node constuctor // NewMinus node constructor
func NewMinus(Variable node.Node, Expression node.Node) *Minus { func NewMinus(Variable node.Node, Expression node.Node) *Minus {
return &Minus{ return &Minus{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Mod struct {
Right node.Node Right node.Node
} }
// NewMod node constuctor // NewMod node constructor
func NewMod(Variable node.Node, Expression node.Node) *Mod { func NewMod(Variable node.Node, Expression node.Node) *Mod {
return &Mod{ return &Mod{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Mul struct {
Right node.Node Right node.Node
} }
// NewMul node constuctor // NewMul node constructor
func NewMul(Variable node.Node, Expression node.Node) *Mul { func NewMul(Variable node.Node, Expression node.Node) *Mul {
return &Mul{ return &Mul{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type NotEqual struct {
Right node.Node Right node.Node
} }
// NewNotEqual node constuctor // NewNotEqual node constructor
func NewNotEqual(Variable node.Node, Expression node.Node) *NotEqual { func NewNotEqual(Variable node.Node, Expression node.Node) *NotEqual {
return &NotEqual{ return &NotEqual{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type NotIdentical struct {
Right node.Node Right node.Node
} }
// NewNotIdentical node constuctor // NewNotIdentical node constructor
func NewNotIdentical(Variable node.Node, Expression node.Node) *NotIdentical { func NewNotIdentical(Variable node.Node, Expression node.Node) *NotIdentical {
return &NotIdentical{ return &NotIdentical{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Plus struct {
Right node.Node Right node.Node
} }
// NewPlus node constuctor // NewPlus node constructor
func NewPlus(Variable node.Node, Expression node.Node) *Plus { func NewPlus(Variable node.Node, Expression node.Node) *Plus {
return &Plus{ return &Plus{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Pow struct {
Right node.Node Right node.Node
} }
// NewPow node constuctor // NewPow node constructor
func NewPow(Variable node.Node, Expression node.Node) *Pow { func NewPow(Variable node.Node, Expression node.Node) *Pow {
return &Pow{ return &Pow{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type ShiftLeft struct {
Right node.Node Right node.Node
} }
// NewShiftLeft node constuctor // NewShiftLeft node constructor
func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft { func NewShiftLeft(Variable node.Node, Expression node.Node) *ShiftLeft {
return &ShiftLeft{ return &ShiftLeft{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type ShiftRight struct {
Right node.Node Right node.Node
} }
// NewShiftRight node constuctor // NewShiftRight node constructor
func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight { func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
return &ShiftRight{ return &ShiftRight{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Smaller struct {
Right node.Node Right node.Node
} }
// NewSmaller node constuctor // NewSmaller node constructor
func NewSmaller(Variable node.Node, Expression node.Node) *Smaller { func NewSmaller(Variable node.Node, Expression node.Node) *Smaller {
return &Smaller{ return &Smaller{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type SmallerOrEqual struct {
Right node.Node Right node.Node
} }
// NewSmallerOrEqual node constuctor // NewSmallerOrEqual node constructor
func NewSmallerOrEqual(Variable node.Node, Expression node.Node) *SmallerOrEqual { func NewSmallerOrEqual(Variable node.Node, Expression node.Node) *SmallerOrEqual {
return &SmallerOrEqual{ return &SmallerOrEqual{
Variable, Variable,

View File

@ -11,7 +11,7 @@ type Spaceship struct {
Right node.Node Right node.Node
} }
// NewSpaceship node constuctor // NewSpaceship node constructor
func NewSpaceship(Variable node.Node, Expression node.Node) *Spaceship { func NewSpaceship(Variable node.Node, Expression node.Node) *Spaceship {
return &Spaceship{ return &Spaceship{
Variable, Variable,

View File

@ -10,7 +10,7 @@ type Array struct {
Items []node.Node Items []node.Node
} }
// NewArray node constuctor // NewArray node constructor
func NewArray(Items []node.Node) *Array { func NewArray(Items []node.Node) *Array {
return &Array{ return &Array{
Items, Items,

View File

@ -11,7 +11,7 @@ type ArrayDimFetch struct {
Dim node.Node Dim node.Node
} }
// NewArrayDimFetch node constuctor // NewArrayDimFetch node constructor
func NewArrayDimFetch(Variable node.Node, Dim node.Node) *ArrayDimFetch { func NewArrayDimFetch(Variable node.Node, Dim node.Node) *ArrayDimFetch {
return &ArrayDimFetch{ return &ArrayDimFetch{
Variable, Variable,

View File

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

View File

@ -10,7 +10,7 @@ type BitwiseNot struct {
Expr node.Node Expr node.Node
} }
// NewBitwiseNot node constuctor // NewBitwiseNot node constructor
func NewBitwiseNot(Expression node.Node) *BitwiseNot { func NewBitwiseNot(Expression node.Node) *BitwiseNot {
return &BitwiseNot{ return &BitwiseNot{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type BooleanNot struct {
Expr node.Node Expr node.Node
} }
// NewBooleanNot node constuctor // NewBooleanNot node constructor
func NewBooleanNot(Expression node.Node) *BooleanNot { func NewBooleanNot(Expression node.Node) *BooleanNot {
return &BooleanNot{ return &BooleanNot{
Expression, Expression,

View File

@ -11,7 +11,7 @@ type ClassConstFetch struct {
ConstantName node.Node ConstantName node.Node
} }
// NewClassConstFetch node constuctor // NewClassConstFetch node constructor
func NewClassConstFetch(Class node.Node, ConstantName node.Node) *ClassConstFetch { func NewClassConstFetch(Class node.Node, ConstantName node.Node) *ClassConstFetch {
return &ClassConstFetch{ return &ClassConstFetch{
Class, Class,

View File

@ -10,7 +10,7 @@ type Clone struct {
Expr node.Node Expr node.Node
} }
// NewClone node constuctor // NewClone node constructor
func NewClone(Expression node.Node) *Clone { func NewClone(Expression node.Node) *Clone {
return &Clone{ return &Clone{
Expression, Expression,

View File

@ -16,7 +16,7 @@ type Closure struct {
Stmts []node.Node 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 { func NewClosure(Params []node.Node, Uses []node.Node, ReturnType node.Node, Stmts []node.Node, Static bool, ReturnsRef bool, PhpDocComment string) *Closure {
return &Closure{ return &Closure{
ReturnsRef, ReturnsRef,

View File

@ -11,7 +11,7 @@ type ClosureUse struct {
Variable node.Node Variable node.Node
} }
// NewClosureUse node constuctor // NewClosureUse node constructor
func NewClosureUse(Variable node.Node, ByRef bool) *ClosureUse { func NewClosureUse(Variable node.Node, ByRef bool) *ClosureUse {
return &ClosureUse{ return &ClosureUse{
ByRef, ByRef,

View File

@ -10,7 +10,7 @@ type ConstFetch struct {
Constant node.Node Constant node.Node
} }
// NewConstFetch node constuctor // NewConstFetch node constructor
func NewConstFetch(Constant node.Node) *ConstFetch { func NewConstFetch(Constant node.Node) *ConstFetch {
return &ConstFetch{ return &ConstFetch{
Constant, Constant,

View File

@ -10,7 +10,7 @@ type Die struct {
Expr node.Node Expr node.Node
} }
// NewDie node constuctor // NewDie node constructor
func NewDie(Expr node.Node) *Die { func NewDie(Expr node.Node) *Die {
return &Die{ return &Die{
Expr, Expr,

View File

@ -10,7 +10,7 @@ type Empty struct {
Expr node.Node Expr node.Node
} }
// NewEmpty node constuctor // NewEmpty node constructor
func NewEmpty(Expression node.Node) *Empty { func NewEmpty(Expression node.Node) *Empty {
return &Empty{ return &Empty{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type ErrorSuppress struct {
Expr node.Node Expr node.Node
} }
// NewErrorSuppress node constuctor // NewErrorSuppress node constructor
func NewErrorSuppress(Expression node.Node) *ErrorSuppress { func NewErrorSuppress(Expression node.Node) *ErrorSuppress {
return &ErrorSuppress{ return &ErrorSuppress{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type Eval struct {
Expr node.Node Expr node.Node
} }
// NewEval node constuctor // NewEval node constructor
func NewEval(Expression node.Node) *Eval { func NewEval(Expression node.Node) *Eval {
return &Eval{ return &Eval{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type Exit struct {
Expr node.Node Expr node.Node
} }
// NewExit node constuctor // NewExit node constructor
func NewExit(Expr node.Node) *Exit { func NewExit(Expr node.Node) *Exit {
return &Exit{ return &Exit{
Expr, Expr,

View File

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

View File

@ -10,7 +10,7 @@ type Include struct {
Expr node.Node Expr node.Node
} }
// NewInclude node constuctor // NewInclude node constructor
func NewInclude(Expression node.Node) *Include { func NewInclude(Expression node.Node) *Include {
return &Include{ return &Include{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type IncludeOnce struct {
Expr node.Node Expr node.Node
} }
// NewIncludeOnce node constuctor // NewIncludeOnce node constructor
func NewIncludeOnce(Expression node.Node) *IncludeOnce { func NewIncludeOnce(Expression node.Node) *IncludeOnce {
return &IncludeOnce{ return &IncludeOnce{
Expression, Expression,

View File

@ -11,7 +11,7 @@ type InstanceOf struct {
Class node.Node Class node.Node
} }
// NewInstanceOf node constuctor // NewInstanceOf node constructor
func NewInstanceOf(Expr node.Node, Class node.Node) *InstanceOf { func NewInstanceOf(Expr node.Node, Class node.Node) *InstanceOf {
return &InstanceOf{ return &InstanceOf{
Expr, Expr,

View File

@ -10,7 +10,7 @@ type Isset struct {
Variables []node.Node Variables []node.Node
} }
// NewIsset node constuctor // NewIsset node constructor
func NewIsset(Variables []node.Node) *Isset { func NewIsset(Variables []node.Node) *Isset {
return &Isset{ return &Isset{
Variables, Variables,

View File

@ -10,7 +10,7 @@ type List struct {
Items []node.Node Items []node.Node
} }
// NewList node constuctor // NewList node constructor
func NewList(Items []node.Node) *List { func NewList(Items []node.Node) *List {
return &List{ return &List{
Items, Items,

View File

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

View File

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

View File

@ -10,7 +10,7 @@ type PostDec struct {
Variable node.Node Variable node.Node
} }
// NewPostDec node constuctor // NewPostDec node constructor
func NewPostDec(Variable node.Node) *PostDec { func NewPostDec(Variable node.Node) *PostDec {
return &PostDec{ return &PostDec{
Variable, Variable,

View File

@ -10,7 +10,7 @@ type PostInc struct {
Variable node.Node Variable node.Node
} }
// NewPostInc node constuctor // NewPostInc node constructor
func NewPostInc(Variable node.Node) *PostInc { func NewPostInc(Variable node.Node) *PostInc {
return &PostInc{ return &PostInc{
Variable, Variable,

View File

@ -10,7 +10,7 @@ type PreDec struct {
Variable node.Node Variable node.Node
} }
// NewPreDec node constuctor // NewPreDec node constructor
func NewPreDec(Variable node.Node) *PreDec { func NewPreDec(Variable node.Node) *PreDec {
return &PreDec{ return &PreDec{
Variable, Variable,

View File

@ -10,7 +10,7 @@ type PreInc struct {
Variable node.Node Variable node.Node
} }
// NewPreInc node constuctor // NewPreInc node constructor
func NewPreInc(Variable node.Node) *PreInc { func NewPreInc(Variable node.Node) *PreInc {
return &PreInc{ return &PreInc{
Variable, Variable,

View File

@ -10,7 +10,7 @@ type Print struct {
Expr node.Node Expr node.Node
} }
// NewPrint node constuctor // NewPrint node constructor
func NewPrint(Expression node.Node) *Print { func NewPrint(Expression node.Node) *Print {
return &Print{ return &Print{
Expression, Expression,

View File

@ -11,7 +11,7 @@ type PropertyFetch struct {
Property node.Node Property node.Node
} }
// NewPropertyFetch node constuctor // NewPropertyFetch node constructor
func NewPropertyFetch(Variable node.Node, Property node.Node) *PropertyFetch { func NewPropertyFetch(Variable node.Node, Property node.Node) *PropertyFetch {
return &PropertyFetch{ return &PropertyFetch{
Variable, Variable,

View File

@ -10,7 +10,7 @@ type Require struct {
Expr node.Node Expr node.Node
} }
// NewRequire node constuctor // NewRequire node constructor
func NewRequire(Expression node.Node) *Require { func NewRequire(Expression node.Node) *Require {
return &Require{ return &Require{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type RequireOnce struct {
Expr node.Node Expr node.Node
} }
// NewRequireOnce node constuctor // NewRequireOnce node constructor
func NewRequireOnce(Expression node.Node) *RequireOnce { func NewRequireOnce(Expression node.Node) *RequireOnce {
return &RequireOnce{ return &RequireOnce{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type ShellExec struct {
Parts []node.Node Parts []node.Node
} }
// NewShellExec node constuctor // NewShellExec node constructor
func NewShellExec(Parts []node.Node) *ShellExec { func NewShellExec(Parts []node.Node) *ShellExec {
return &ShellExec{ return &ShellExec{
Parts, Parts,

View File

@ -10,7 +10,7 @@ type ShortArray struct {
Items []node.Node Items []node.Node
} }
// NewShortArray node constuctor // NewShortArray node constructor
func NewShortArray(Items []node.Node) *ShortArray { func NewShortArray(Items []node.Node) *ShortArray {
return &ShortArray{ return &ShortArray{
Items, Items,

View File

@ -10,7 +10,7 @@ type ShortList struct {
Items []node.Node Items []node.Node
} }
// NewShortList node constuctor // NewShortList node constructor
func NewShortList(Items []node.Node) *ShortList { func NewShortList(Items []node.Node) *ShortList {
return &ShortList{ return &ShortList{
Items, Items,

View File

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

View File

@ -11,7 +11,7 @@ type StaticPropertyFetch struct {
Property node.Node Property node.Node
} }
// NewStaticPropertyFetch node constuctor // NewStaticPropertyFetch node constructor
func NewStaticPropertyFetch(Class node.Node, Property node.Node) *StaticPropertyFetch { func NewStaticPropertyFetch(Class node.Node, Property node.Node) *StaticPropertyFetch {
return &StaticPropertyFetch{ return &StaticPropertyFetch{
Class, Class,

View File

@ -12,7 +12,7 @@ type Ternary struct {
IfFalse node.Node IfFalse node.Node
} }
// NewTernary node constuctor // NewTernary node constructor
func NewTernary(Condition node.Node, IfTrue node.Node, IfFalse node.Node) *Ternary { func NewTernary(Condition node.Node, IfTrue node.Node, IfFalse node.Node) *Ternary {
return &Ternary{ return &Ternary{
Condition, Condition,

View File

@ -10,7 +10,7 @@ type UnaryMinus struct {
Expr node.Node Expr node.Node
} }
// NewUnaryMinus node constuctor // NewUnaryMinus node constructor
func NewUnaryMinus(Expression node.Node) *UnaryMinus { func NewUnaryMinus(Expression node.Node) *UnaryMinus {
return &UnaryMinus{ return &UnaryMinus{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type UnaryPlus struct {
Expr node.Node Expr node.Node
} }
// NewUnaryPlus node constuctor // NewUnaryPlus node constructor
func NewUnaryPlus(Expression node.Node) *UnaryPlus { func NewUnaryPlus(Expression node.Node) *UnaryPlus {
return &UnaryPlus{ return &UnaryPlus{
Expression, Expression,

View File

@ -10,7 +10,7 @@ type Variable struct {
VarName node.Node VarName node.Node
} }
// NewVariable node constuctor // NewVariable node constructor
func NewVariable(VarName node.Node) *Variable { func NewVariable(VarName node.Node) *Variable {
return &Variable{ return &Variable{
VarName, VarName,

View File

@ -11,7 +11,7 @@ type Yield struct {
Value node.Node Value node.Node
} }
// NewYield node constuctor // NewYield node constructor
func NewYield(Key node.Node, Value node.Node) *Yield { func NewYield(Key node.Node, Value node.Node) *Yield {
return &Yield{ return &Yield{
Key, Key,

View File

@ -10,7 +10,7 @@ type YieldFrom struct {
Expr node.Node Expr node.Node
} }
// NewYieldFrom node constuctor // NewYieldFrom node constructor
func NewYieldFrom(Expression node.Node) *YieldFrom { func NewYieldFrom(Expression node.Node) *YieldFrom {
return &YieldFrom{ return &YieldFrom{
Expression, Expression,

View File

@ -9,7 +9,7 @@ type Argument struct {
Expr Node // Exression Expr Node // Exression
} }
// NewArgument node constuctor // NewArgument node constructor
func NewArgument(Expression Node, Variadic bool, IsReference bool) *Argument { func NewArgument(Expression Node, Variadic bool, IsReference bool) *Argument {
return &Argument{ return &Argument{
Variadic, Variadic,

View File

@ -7,7 +7,7 @@ type Identifier struct {
Value string Value string
} }
// NewIdentifier node constuctor // NewIdentifier node constructor
func NewIdentifier(Value string) *Identifier { func NewIdentifier(Value string) *Identifier {
return &Identifier{ return &Identifier{
Value, Value,

View File

@ -7,7 +7,7 @@ type Nullable struct {
Expr Node Expr Node
} }
// NewNullable node constuctor // NewNullable node constructor
func NewNullable(Expression Node) *Nullable { func NewNullable(Expression Node) *Nullable {
return &Nullable{ return &Nullable{
Expression, Expression,

View File

@ -11,7 +11,7 @@ type Parameter struct {
DefaultValue Node DefaultValue Node
} }
// NewParameter node constuctor // NewParameter node constructor
func NewParameter(VariableType Node, Variable Node, DefaultValue Node, ByRef bool, Variadic bool) *Parameter { func NewParameter(VariableType Node, Variable Node, DefaultValue Node, ByRef bool, Variadic bool) *Parameter {
return &Parameter{ return &Parameter{
ByRef, ByRef,

View File

@ -10,7 +10,7 @@ type FullyQualified struct {
Parts []node.Node Parts []node.Node
} }
// NewFullyQualified node constuctor // NewFullyQualified node constructor
func NewFullyQualified(Parts []node.Node) *FullyQualified { func NewFullyQualified(Parts []node.Node) *FullyQualified {
return &FullyQualified{ return &FullyQualified{
Parts, Parts,

View File

@ -10,7 +10,7 @@ type Name struct {
Parts []node.Node Parts []node.Node
} }
// NewName node constuctor // NewName node constructor
func NewName(Parts []node.Node) *Name { func NewName(Parts []node.Node) *Name {
return &Name{ return &Name{
Parts, Parts,

View File

@ -7,7 +7,7 @@ type NamePart struct {
Value string Value string
} }
// NewNamePart node constuctor // NewNamePart node constructor
func NewNamePart(Value string) *NamePart { func NewNamePart(Value string) *NamePart {
return &NamePart{ return &NamePart{
Value, Value,

View File

@ -10,7 +10,7 @@ type Relative struct {
Parts []node.Node Parts []node.Node
} }
// NewRelative node constuctor // NewRelative node constructor
func NewRelative(Parts []node.Node) *Relative { func NewRelative(Parts []node.Node) *Relative {
return &Relative{ return &Relative{
Parts, Parts,

View File

@ -7,7 +7,7 @@ type Dnumber struct {
Value string Value string
} }
// NewDnumber node constuctor // NewDnumber node constructor
func NewDnumber(Value string) *Dnumber { func NewDnumber(Value string) *Dnumber {
return &Dnumber{ return &Dnumber{
Value, Value,

View File

@ -10,7 +10,7 @@ type Encapsed struct {
Parts []node.Node Parts []node.Node
} }
// NewEncapsed node constuctor // NewEncapsed node constructor
func NewEncapsed(Parts []node.Node) *Encapsed { func NewEncapsed(Parts []node.Node) *Encapsed {
return &Encapsed{ return &Encapsed{
Parts, Parts,

View File

@ -7,7 +7,7 @@ type EncapsedStringPart struct {
Value string Value string
} }
// NewEncapsedStringPart node constuctor // NewEncapsedStringPart node constructor
func NewEncapsedStringPart(Value string) *EncapsedStringPart { func NewEncapsedStringPart(Value string) *EncapsedStringPart {
return &EncapsedStringPart{ return &EncapsedStringPart{
Value, Value,

View File

@ -7,7 +7,7 @@ type Lnumber struct {
Value string Value string
} }
// NewLnumber node constuctor // NewLnumber node constructor
func NewLnumber(Value string) *Lnumber { func NewLnumber(Value string) *Lnumber {
return &Lnumber{ return &Lnumber{
Value, Value,

View File

@ -7,7 +7,7 @@ type MagicConstant struct {
Value string Value string
} }
// NewMagicConstant node constuctor // NewMagicConstant node constructor
func NewMagicConstant(Value string) *MagicConstant { func NewMagicConstant(Value string) *MagicConstant {
return &MagicConstant{ return &MagicConstant{
Value, Value,

View File

@ -7,7 +7,7 @@ type String struct {
Value string Value string
} }
// NewString node constuctor // NewString node constructor
func NewString(Value string) *String { func NewString(Value string) *String {
return &String{ return &String{
Value, Value,

View File

@ -10,7 +10,7 @@ type AltElse struct {
Stmt node.Node Stmt node.Node
} }
// NewAltElse node constuctor // NewAltElse node constructor
func NewAltElse(Stmt node.Node) *AltElse { func NewAltElse(Stmt node.Node) *AltElse {
return &AltElse{ return &AltElse{
Stmt, Stmt,

View File

@ -11,7 +11,7 @@ type AltElseIf struct {
Stmt node.Node Stmt node.Node
} }
// NewAltElseIf node constuctor // NewAltElseIf node constructor
func NewAltElseIf(Cond node.Node, Stmt node.Node) *AltElseIf { func NewAltElseIf(Cond node.Node, Stmt node.Node) *AltElseIf {
return &AltElseIf{ return &AltElseIf{
Cond, Cond,

View File

@ -13,7 +13,7 @@ type AltFor struct {
Stmt node.Node Stmt node.Node
} }
// NewAltFor node constuctor // NewAltFor node constructor
func NewAltFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *AltFor { func NewAltFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *AltFor {
return &AltFor{ return &AltFor{
Init, Init,

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