diff --git a/node/expr/assign/n_assign.go b/node/expr/assign/n_assign.go index b8caf32..d94df64 100644 --- a/node/expr/assign/n_assign.go +++ b/node/expr/assign/n_assign.go @@ -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, diff --git a/node/expr/assign/n_assign_ref.go b/node/expr/assign/n_assign_ref.go index 37dc745..8cbd264 100644 --- a/node/expr/assign/n_assign_ref.go +++ b/node/expr/assign/n_assign_ref.go @@ -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, diff --git a/node/expr/assign/n_bitwise_and.go b/node/expr/assign/n_bitwise_and.go index 991b7cf..bc112e6 100644 --- a/node/expr/assign/n_bitwise_and.go +++ b/node/expr/assign/n_bitwise_and.go @@ -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, diff --git a/node/expr/assign/n_bitwise_or.go b/node/expr/assign/n_bitwise_or.go index f934571..b8ae059 100644 --- a/node/expr/assign/n_bitwise_or.go +++ b/node/expr/assign/n_bitwise_or.go @@ -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, diff --git a/node/expr/assign/n_bitwise_xor.go b/node/expr/assign/n_bitwise_xor.go index 7d1cab3..905158b 100644 --- a/node/expr/assign/n_bitwise_xor.go +++ b/node/expr/assign/n_bitwise_xor.go @@ -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, diff --git a/node/expr/assign/n_concat.go b/node/expr/assign/n_concat.go index a7fcb86..a43e3a1 100644 --- a/node/expr/assign/n_concat.go +++ b/node/expr/assign/n_concat.go @@ -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, diff --git a/node/expr/assign/n_div.go b/node/expr/assign/n_div.go index b810bc7..05bc2ed 100644 --- a/node/expr/assign/n_div.go +++ b/node/expr/assign/n_div.go @@ -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, diff --git a/node/expr/assign/n_minus.go b/node/expr/assign/n_minus.go index 1b5c5ca..c66b1d2 100644 --- a/node/expr/assign/n_minus.go +++ b/node/expr/assign/n_minus.go @@ -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, diff --git a/node/expr/assign/n_mod.go b/node/expr/assign/n_mod.go index 901fa53..6e394c5 100644 --- a/node/expr/assign/n_mod.go +++ b/node/expr/assign/n_mod.go @@ -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, diff --git a/node/expr/assign/n_mul.go b/node/expr/assign/n_mul.go index 3bfb5ca..3dc8090 100644 --- a/node/expr/assign/n_mul.go +++ b/node/expr/assign/n_mul.go @@ -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, diff --git a/node/expr/assign/n_plus.go b/node/expr/assign/n_plus.go index 25bb37b..d5cc425 100644 --- a/node/expr/assign/n_plus.go +++ b/node/expr/assign/n_plus.go @@ -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, diff --git a/node/expr/assign/n_pow.go b/node/expr/assign/n_pow.go index c001d34..a81cb0c 100644 --- a/node/expr/assign/n_pow.go +++ b/node/expr/assign/n_pow.go @@ -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, diff --git a/node/expr/assign/n_shift_left.go b/node/expr/assign/n_shift_left.go index 89e94bf..6b52663 100644 --- a/node/expr/assign/n_shift_left.go +++ b/node/expr/assign/n_shift_left.go @@ -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, diff --git a/node/expr/assign/n_shift_right.go b/node/expr/assign/n_shift_right.go index 1ffd921..126b801 100644 --- a/node/expr/assign/n_shift_right.go +++ b/node/expr/assign/n_shift_right.go @@ -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, diff --git a/node/expr/binary/n_bitwise_and.go b/node/expr/binary/n_bitwise_and.go index 5cff692..842398d 100644 --- a/node/expr/binary/n_bitwise_and.go +++ b/node/expr/binary/n_bitwise_and.go @@ -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, diff --git a/node/expr/binary/n_bitwise_or.go b/node/expr/binary/n_bitwise_or.go index 29c23ee..2d257b5 100644 --- a/node/expr/binary/n_bitwise_or.go +++ b/node/expr/binary/n_bitwise_or.go @@ -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, diff --git a/node/expr/binary/n_bitwise_xor.go b/node/expr/binary/n_bitwise_xor.go index ace665c..c67fe00 100644 --- a/node/expr/binary/n_bitwise_xor.go +++ b/node/expr/binary/n_bitwise_xor.go @@ -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, diff --git a/node/expr/binary/n_boolean_and.go b/node/expr/binary/n_boolean_and.go index dcdca98..e7ca96b 100644 --- a/node/expr/binary/n_boolean_and.go +++ b/node/expr/binary/n_boolean_and.go @@ -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, diff --git a/node/expr/binary/n_boolean_or.go b/node/expr/binary/n_boolean_or.go index 9b0c2fd..bb92e0a 100644 --- a/node/expr/binary/n_boolean_or.go +++ b/node/expr/binary/n_boolean_or.go @@ -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, diff --git a/node/expr/binary/n_coalesce.go b/node/expr/binary/n_coalesce.go index 42e5f6a..b0eb6f5 100644 --- a/node/expr/binary/n_coalesce.go +++ b/node/expr/binary/n_coalesce.go @@ -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, diff --git a/node/expr/binary/n_concat.go b/node/expr/binary/n_concat.go index c662b90..3a74a4d 100644 --- a/node/expr/binary/n_concat.go +++ b/node/expr/binary/n_concat.go @@ -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, diff --git a/node/expr/binary/n_div.go b/node/expr/binary/n_div.go index c2d29ec..aa68b9a 100644 --- a/node/expr/binary/n_div.go +++ b/node/expr/binary/n_div.go @@ -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, diff --git a/node/expr/binary/n_equal.go b/node/expr/binary/n_equal.go index 225f4d5..c02b1ec 100644 --- a/node/expr/binary/n_equal.go +++ b/node/expr/binary/n_equal.go @@ -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, diff --git a/node/expr/binary/n_greater.go b/node/expr/binary/n_greater.go index 8bfe981..daab173 100644 --- a/node/expr/binary/n_greater.go +++ b/node/expr/binary/n_greater.go @@ -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, diff --git a/node/expr/binary/n_greater_or_equal.go b/node/expr/binary/n_greater_or_equal.go index 2aa3ad5..47f1df2 100644 --- a/node/expr/binary/n_greater_or_equal.go +++ b/node/expr/binary/n_greater_or_equal.go @@ -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, diff --git a/node/expr/binary/n_identical.go b/node/expr/binary/n_identical.go index f571f97..6a782e0 100644 --- a/node/expr/binary/n_identical.go +++ b/node/expr/binary/n_identical.go @@ -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, diff --git a/node/expr/binary/n_logical_and.go b/node/expr/binary/n_logical_and.go index 686f762..b2d35b6 100644 --- a/node/expr/binary/n_logical_and.go +++ b/node/expr/binary/n_logical_and.go @@ -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, diff --git a/node/expr/binary/n_logical_or.go b/node/expr/binary/n_logical_or.go index 833b827..5e7d88e 100644 --- a/node/expr/binary/n_logical_or.go +++ b/node/expr/binary/n_logical_or.go @@ -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, diff --git a/node/expr/binary/n_logical_xor.go b/node/expr/binary/n_logical_xor.go index 60346d0..043e0a3 100644 --- a/node/expr/binary/n_logical_xor.go +++ b/node/expr/binary/n_logical_xor.go @@ -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, diff --git a/node/expr/binary/n_minus.go b/node/expr/binary/n_minus.go index cfb0a26..397fa68 100644 --- a/node/expr/binary/n_minus.go +++ b/node/expr/binary/n_minus.go @@ -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, diff --git a/node/expr/binary/n_mod.go b/node/expr/binary/n_mod.go index a26f6d7..30809e3 100644 --- a/node/expr/binary/n_mod.go +++ b/node/expr/binary/n_mod.go @@ -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, diff --git a/node/expr/binary/n_mul.go b/node/expr/binary/n_mul.go index 159a290..c601bfd 100644 --- a/node/expr/binary/n_mul.go +++ b/node/expr/binary/n_mul.go @@ -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, diff --git a/node/expr/binary/n_not_equal.go b/node/expr/binary/n_not_equal.go index 9e37fe5..e63cfcd 100644 --- a/node/expr/binary/n_not_equal.go +++ b/node/expr/binary/n_not_equal.go @@ -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, diff --git a/node/expr/binary/n_not_identical.go b/node/expr/binary/n_not_identical.go index 2e95904..4f8f13e 100644 --- a/node/expr/binary/n_not_identical.go +++ b/node/expr/binary/n_not_identical.go @@ -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, diff --git a/node/expr/binary/n_plus.go b/node/expr/binary/n_plus.go index deebb72..5d68c46 100644 --- a/node/expr/binary/n_plus.go +++ b/node/expr/binary/n_plus.go @@ -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, diff --git a/node/expr/binary/n_pow.go b/node/expr/binary/n_pow.go index f6503db..a21e115 100644 --- a/node/expr/binary/n_pow.go +++ b/node/expr/binary/n_pow.go @@ -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, diff --git a/node/expr/binary/n_shift_left.go b/node/expr/binary/n_shift_left.go index 3929f0b..2b1dec0 100644 --- a/node/expr/binary/n_shift_left.go +++ b/node/expr/binary/n_shift_left.go @@ -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, diff --git a/node/expr/binary/n_shift_right.go b/node/expr/binary/n_shift_right.go index d5b388f..44911cb 100644 --- a/node/expr/binary/n_shift_right.go +++ b/node/expr/binary/n_shift_right.go @@ -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, diff --git a/node/expr/binary/n_smaller.go b/node/expr/binary/n_smaller.go index a948372..1622871 100644 --- a/node/expr/binary/n_smaller.go +++ b/node/expr/binary/n_smaller.go @@ -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, diff --git a/node/expr/binary/n_smaller_or_equal.go b/node/expr/binary/n_smaller_or_equal.go index 2c1a1e3..9a839d8 100644 --- a/node/expr/binary/n_smaller_or_equal.go +++ b/node/expr/binary/n_smaller_or_equal.go @@ -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, diff --git a/node/expr/binary/n_spaceship.go b/node/expr/binary/n_spaceship.go index 0da2eab..ea05c77 100644 --- a/node/expr/binary/n_spaceship.go +++ b/node/expr/binary/n_spaceship.go @@ -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, diff --git a/node/expr/n_array.go b/node/expr/n_array.go index d671d82..d96793c 100644 --- a/node/expr/n_array.go +++ b/node/expr/n_array.go @@ -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, diff --git a/node/expr/n_array_dim_fetch.go b/node/expr/n_array_dim_fetch.go index e1043b4..e41135f 100644 --- a/node/expr/n_array_dim_fetch.go +++ b/node/expr/n_array_dim_fetch.go @@ -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, diff --git a/node/expr/n_array_item.go b/node/expr/n_array_item.go index 321a867..0c05df1 100644 --- a/node/expr/n_array_item.go +++ b/node/expr/n_array_item.go @@ -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, diff --git a/node/expr/n_bitwise_not.go b/node/expr/n_bitwise_not.go index 41dcd47..e4ca599 100644 --- a/node/expr/n_bitwise_not.go +++ b/node/expr/n_bitwise_not.go @@ -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, diff --git a/node/expr/n_boolean_not.go b/node/expr/n_boolean_not.go index 3bade30..a552eca 100644 --- a/node/expr/n_boolean_not.go +++ b/node/expr/n_boolean_not.go @@ -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, diff --git a/node/expr/n_class_const_fetch.go b/node/expr/n_class_const_fetch.go index bbf1c0b..6f9ecd0 100644 --- a/node/expr/n_class_const_fetch.go +++ b/node/expr/n_class_const_fetch.go @@ -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, diff --git a/node/expr/n_clone.go b/node/expr/n_clone.go index bae6b55..64ec320 100644 --- a/node/expr/n_clone.go +++ b/node/expr/n_clone.go @@ -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, diff --git a/node/expr/n_closure.go b/node/expr/n_closure.go index 39c9595..8725c6e 100644 --- a/node/expr/n_closure.go +++ b/node/expr/n_closure.go @@ -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, diff --git a/node/expr/n_closure_use.go b/node/expr/n_closure_use.go index af33a22..72d5e13 100644 --- a/node/expr/n_closure_use.go +++ b/node/expr/n_closure_use.go @@ -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, diff --git a/node/expr/n_const_fetch.go b/node/expr/n_const_fetch.go index ce22586..09313e4 100644 --- a/node/expr/n_const_fetch.go +++ b/node/expr/n_const_fetch.go @@ -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, diff --git a/node/expr/n_die.go b/node/expr/n_die.go index 7228a62..5cae0d4 100644 --- a/node/expr/n_die.go +++ b/node/expr/n_die.go @@ -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, diff --git a/node/expr/n_empty.go b/node/expr/n_empty.go index 43cc005..0ce4e3c 100644 --- a/node/expr/n_empty.go +++ b/node/expr/n_empty.go @@ -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, diff --git a/node/expr/n_error_suppress.go b/node/expr/n_error_suppress.go index d3a1cb7..b927c8d 100644 --- a/node/expr/n_error_suppress.go +++ b/node/expr/n_error_suppress.go @@ -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, diff --git a/node/expr/n_eval.go b/node/expr/n_eval.go index fed6f98..39bae38 100644 --- a/node/expr/n_eval.go +++ b/node/expr/n_eval.go @@ -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, diff --git a/node/expr/n_exit.go b/node/expr/n_exit.go index 21c799f..2567296 100644 --- a/node/expr/n_exit.go +++ b/node/expr/n_exit.go @@ -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, diff --git a/node/expr/n_function_call.go b/node/expr/n_function_call.go index a7f1be5..22f2d07 100644 --- a/node/expr/n_function_call.go +++ b/node/expr/n_function_call.go @@ -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, diff --git a/node/expr/n_include.go b/node/expr/n_include.go index 783f4b6..afdac26 100644 --- a/node/expr/n_include.go +++ b/node/expr/n_include.go @@ -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, diff --git a/node/expr/n_include_once.go b/node/expr/n_include_once.go index 62ab326..08bcc6a 100644 --- a/node/expr/n_include_once.go +++ b/node/expr/n_include_once.go @@ -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, diff --git a/node/expr/n_instance_of.go b/node/expr/n_instance_of.go index f4eac94..d71441d 100644 --- a/node/expr/n_instance_of.go +++ b/node/expr/n_instance_of.go @@ -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, diff --git a/node/expr/n_isset.go b/node/expr/n_isset.go index f165ede..3b96086 100644 --- a/node/expr/n_isset.go +++ b/node/expr/n_isset.go @@ -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, diff --git a/node/expr/n_list.go b/node/expr/n_list.go index 40dc55b..0f6c5f6 100644 --- a/node/expr/n_list.go +++ b/node/expr/n_list.go @@ -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, diff --git a/node/expr/n_method_call.go b/node/expr/n_method_call.go index 173bc1c..8746418 100644 --- a/node/expr/n_method_call.go +++ b/node/expr/n_method_call.go @@ -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, diff --git a/node/expr/n_new.go b/node/expr/n_new.go index 92b6eb9..d773daf 100644 --- a/node/expr/n_new.go +++ b/node/expr/n_new.go @@ -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, diff --git a/node/expr/n_post_dec.go b/node/expr/n_post_dec.go index bd3e024..1b68e8f 100644 --- a/node/expr/n_post_dec.go +++ b/node/expr/n_post_dec.go @@ -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, diff --git a/node/expr/n_post_inc.go b/node/expr/n_post_inc.go index 8f2ad5a..b6a007c 100644 --- a/node/expr/n_post_inc.go +++ b/node/expr/n_post_inc.go @@ -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, diff --git a/node/expr/n_pre_dec.go b/node/expr/n_pre_dec.go index 3e89f21..fc7e27a 100644 --- a/node/expr/n_pre_dec.go +++ b/node/expr/n_pre_dec.go @@ -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, diff --git a/node/expr/n_pre_inc.go b/node/expr/n_pre_inc.go index 6b9e89a..6ba964b 100644 --- a/node/expr/n_pre_inc.go +++ b/node/expr/n_pre_inc.go @@ -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, diff --git a/node/expr/n_print.go b/node/expr/n_print.go index ab5553f..e60f3aa 100644 --- a/node/expr/n_print.go +++ b/node/expr/n_print.go @@ -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, diff --git a/node/expr/n_property_fetch.go b/node/expr/n_property_fetch.go index 16db548..128f355 100644 --- a/node/expr/n_property_fetch.go +++ b/node/expr/n_property_fetch.go @@ -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, diff --git a/node/expr/n_require.go b/node/expr/n_require.go index 03acd8f..3f5c43f 100644 --- a/node/expr/n_require.go +++ b/node/expr/n_require.go @@ -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, diff --git a/node/expr/n_require_once.go b/node/expr/n_require_once.go index 18205e9..9d1436d 100644 --- a/node/expr/n_require_once.go +++ b/node/expr/n_require_once.go @@ -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, diff --git a/node/expr/n_shell_exec.go b/node/expr/n_shell_exec.go index c6efbfb..9310989 100644 --- a/node/expr/n_shell_exec.go +++ b/node/expr/n_shell_exec.go @@ -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, diff --git a/node/expr/n_short_array.go b/node/expr/n_short_array.go index 09c9d31..6bb45e0 100644 --- a/node/expr/n_short_array.go +++ b/node/expr/n_short_array.go @@ -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, diff --git a/node/expr/n_short_list.go b/node/expr/n_short_list.go index 9a2a1f6..dd00855 100644 --- a/node/expr/n_short_list.go +++ b/node/expr/n_short_list.go @@ -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, diff --git a/node/expr/n_static_call.go b/node/expr/n_static_call.go index 63cd6b4..a9cded4 100644 --- a/node/expr/n_static_call.go +++ b/node/expr/n_static_call.go @@ -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, diff --git a/node/expr/n_static_property_fetch.go b/node/expr/n_static_property_fetch.go index bb5295a..a3d07d6 100644 --- a/node/expr/n_static_property_fetch.go +++ b/node/expr/n_static_property_fetch.go @@ -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, diff --git a/node/expr/n_ternary.go b/node/expr/n_ternary.go index 8a4beac..83729b2 100644 --- a/node/expr/n_ternary.go +++ b/node/expr/n_ternary.go @@ -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, diff --git a/node/expr/n_unary_minus.go b/node/expr/n_unary_minus.go index 13596b7..efeda8e 100644 --- a/node/expr/n_unary_minus.go +++ b/node/expr/n_unary_minus.go @@ -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, diff --git a/node/expr/n_unary_plus.go b/node/expr/n_unary_plus.go index 54fce81..cd6fcdb 100644 --- a/node/expr/n_unary_plus.go +++ b/node/expr/n_unary_plus.go @@ -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, diff --git a/node/expr/n_variable.go b/node/expr/n_variable.go index a440c7a..caa0f10 100644 --- a/node/expr/n_variable.go +++ b/node/expr/n_variable.go @@ -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, diff --git a/node/expr/n_yield.go b/node/expr/n_yield.go index 2e69148..dbbd811 100644 --- a/node/expr/n_yield.go +++ b/node/expr/n_yield.go @@ -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, diff --git a/node/expr/n_yield_from.go b/node/expr/n_yield_from.go index 0674796..1109d0d 100644 --- a/node/expr/n_yield_from.go +++ b/node/expr/n_yield_from.go @@ -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, diff --git a/node/n_argument.go b/node/n_argument.go index 5f2fca5..564532d 100644 --- a/node/n_argument.go +++ b/node/n_argument.go @@ -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, diff --git a/node/n_identifier.go b/node/n_identifier.go index 8ccb716..38105b7 100644 --- a/node/n_identifier.go +++ b/node/n_identifier.go @@ -7,7 +7,7 @@ type Identifier struct { Value string } -// NewIdentifier node constuctor +// NewIdentifier node constructor func NewIdentifier(Value string) *Identifier { return &Identifier{ Value, diff --git a/node/n_nullable.go b/node/n_nullable.go index ee9f311..1eca09e 100644 --- a/node/n_nullable.go +++ b/node/n_nullable.go @@ -7,7 +7,7 @@ type Nullable struct { Expr Node } -// NewNullable node constuctor +// NewNullable node constructor func NewNullable(Expression Node) *Nullable { return &Nullable{ Expression, diff --git a/node/n_parameter.go b/node/n_parameter.go index 2e95d99..0986874 100644 --- a/node/n_parameter.go +++ b/node/n_parameter.go @@ -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, diff --git a/node/name/n_fully_qualified.go b/node/name/n_fully_qualified.go index eeed26d..5e55b9a 100644 --- a/node/name/n_fully_qualified.go +++ b/node/name/n_fully_qualified.go @@ -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, diff --git a/node/name/n_name.go b/node/name/n_name.go index bace418..e0edebe 100644 --- a/node/name/n_name.go +++ b/node/name/n_name.go @@ -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, diff --git a/node/name/n_name_part.go b/node/name/n_name_part.go index a7629e2..98cfb43 100644 --- a/node/name/n_name_part.go +++ b/node/name/n_name_part.go @@ -7,7 +7,7 @@ type NamePart struct { Value string } -// NewNamePart node constuctor +// NewNamePart node constructor func NewNamePart(Value string) *NamePart { return &NamePart{ Value, diff --git a/node/name/n_relative.go b/node/name/n_relative.go index 262d96c..b367831 100644 --- a/node/name/n_relative.go +++ b/node/name/n_relative.go @@ -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, diff --git a/node/scalar/node_dnumber.go b/node/scalar/node_dnumber.go index 2674b48..09b8ca2 100644 --- a/node/scalar/node_dnumber.go +++ b/node/scalar/node_dnumber.go @@ -7,7 +7,7 @@ type Dnumber struct { Value string } -// NewDnumber node constuctor +// NewDnumber node constructor func NewDnumber(Value string) *Dnumber { return &Dnumber{ Value, diff --git a/node/scalar/node_encapsed.go b/node/scalar/node_encapsed.go index e21cc95..e6dceda 100644 --- a/node/scalar/node_encapsed.go +++ b/node/scalar/node_encapsed.go @@ -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, diff --git a/node/scalar/node_encapsed_string_part.go b/node/scalar/node_encapsed_string_part.go index a37e089..d6ddd2a 100644 --- a/node/scalar/node_encapsed_string_part.go +++ b/node/scalar/node_encapsed_string_part.go @@ -7,7 +7,7 @@ type EncapsedStringPart struct { Value string } -// NewEncapsedStringPart node constuctor +// NewEncapsedStringPart node constructor func NewEncapsedStringPart(Value string) *EncapsedStringPart { return &EncapsedStringPart{ Value, diff --git a/node/scalar/node_lnumber.go b/node/scalar/node_lnumber.go index 7d9b8e0..351a4bf 100644 --- a/node/scalar/node_lnumber.go +++ b/node/scalar/node_lnumber.go @@ -7,7 +7,7 @@ type Lnumber struct { Value string } -// NewLnumber node constuctor +// NewLnumber node constructor func NewLnumber(Value string) *Lnumber { return &Lnumber{ Value, diff --git a/node/scalar/node_magic_constant.go b/node/scalar/node_magic_constant.go index 6e10a89..9b53214 100644 --- a/node/scalar/node_magic_constant.go +++ b/node/scalar/node_magic_constant.go @@ -7,7 +7,7 @@ type MagicConstant struct { Value string } -// NewMagicConstant node constuctor +// NewMagicConstant node constructor func NewMagicConstant(Value string) *MagicConstant { return &MagicConstant{ Value, diff --git a/node/scalar/node_string.go b/node/scalar/node_string.go index 10b6738..4b7c710 100644 --- a/node/scalar/node_string.go +++ b/node/scalar/node_string.go @@ -7,7 +7,7 @@ type String struct { Value string } -// NewString node constuctor +// NewString node constructor func NewString(Value string) *String { return &String{ Value, diff --git a/node/stmt/n_alt_else.go b/node/stmt/n_alt_else.go index dc7045d..0c5f5cb 100644 --- a/node/stmt/n_alt_else.go +++ b/node/stmt/n_alt_else.go @@ -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, diff --git a/node/stmt/n_alt_else_if.go b/node/stmt/n_alt_else_if.go index b0f0eee..813667d 100644 --- a/node/stmt/n_alt_else_if.go +++ b/node/stmt/n_alt_else_if.go @@ -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, diff --git a/node/stmt/n_alt_for.go b/node/stmt/n_alt_for.go index c218e90..8be4591 100644 --- a/node/stmt/n_alt_for.go +++ b/node/stmt/n_alt_for.go @@ -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, diff --git a/node/stmt/n_alt_foreach.go b/node/stmt/n_alt_foreach.go index 726eff3..950445a 100644 --- a/node/stmt/n_alt_foreach.go +++ b/node/stmt/n_alt_foreach.go @@ -14,7 +14,7 @@ type AltForeach struct { Stmt node.Node } -// NewAltForeach node constuctor +// NewAltForeach node constructor func NewAltForeach(Expr node.Node, Key node.Node, Variable node.Node, Stmt node.Node, ByRef bool) *AltForeach { return &AltForeach{ ByRef, diff --git a/node/stmt/n_alt_if.go b/node/stmt/n_alt_if.go index 46074ee..eafacf0 100644 --- a/node/stmt/n_alt_if.go +++ b/node/stmt/n_alt_if.go @@ -13,7 +13,7 @@ type AltIf struct { Else node.Node } -// NewAltIf node constuctor +// NewAltIf node constructor func NewAltIf(Cond node.Node, Stmt node.Node, ElseIf []node.Node, Else node.Node) *AltIf { return &AltIf{ Cond, diff --git a/node/stmt/n_alt_switch.go b/node/stmt/n_alt_switch.go index e13a750..4c7587f 100644 --- a/node/stmt/n_alt_switch.go +++ b/node/stmt/n_alt_switch.go @@ -11,7 +11,7 @@ type AltSwitch struct { Cases []node.Node } -// NewAltSwitch node constuctor +// NewAltSwitch node constructor func NewAltSwitch(Cond node.Node, Cases []node.Node) *AltSwitch { return &AltSwitch{ Cond, diff --git a/node/stmt/n_alt_while.go b/node/stmt/n_alt_while.go index ed93213..2cacf79 100644 --- a/node/stmt/n_alt_while.go +++ b/node/stmt/n_alt_while.go @@ -11,7 +11,7 @@ type AltWhile struct { Stmt node.Node } -// NewAltWhile node constuctor +// NewAltWhile node constructor func NewAltWhile(Cond node.Node, Stmt node.Node) *AltWhile { return &AltWhile{ Cond, diff --git a/node/stmt/n_break.go b/node/stmt/n_break.go index aee2fa2..3aaabc4 100644 --- a/node/stmt/n_break.go +++ b/node/stmt/n_break.go @@ -10,7 +10,7 @@ type Break struct { Expr node.Node } -// NewBreak node constuctor +// NewBreak node constructor func NewBreak(Expr node.Node) *Break { return &Break{ Expr, diff --git a/node/stmt/n_case.go b/node/stmt/n_case.go index 43171e1..6eb4b40 100644 --- a/node/stmt/n_case.go +++ b/node/stmt/n_case.go @@ -11,7 +11,7 @@ type Case struct { Stmts []node.Node } -// NewCase node constuctor +// NewCase node constructor func NewCase(Cond node.Node, Stmts []node.Node) *Case { return &Case{ Cond, diff --git a/node/stmt/n_catch.go b/node/stmt/n_catch.go index 3061f4c..9d59efe 100644 --- a/node/stmt/n_catch.go +++ b/node/stmt/n_catch.go @@ -12,7 +12,7 @@ type Catch struct { Stmts []node.Node } -// NewCatch node constuctor +// NewCatch node constructor func NewCatch(Types []node.Node, Variable node.Node, Stmts []node.Node) *Catch { return &Catch{ Types, diff --git a/node/stmt/n_class.go b/node/stmt/n_class.go index af32994..6301874 100644 --- a/node/stmt/n_class.go +++ b/node/stmt/n_class.go @@ -16,7 +16,7 @@ type Class struct { Stmts []node.Node } -// NewClass node constuctor +// NewClass node constructor func NewClass(ClassName node.Node, Modifiers []node.Node, Args []node.Node, Extends node.Node, Implements []node.Node, Stmts []node.Node, PhpDocComment string) *Class { return &Class{ PhpDocComment, diff --git a/node/stmt/n_class_const_list.go b/node/stmt/n_class_const_list.go index 27262e1..e7c76fc 100644 --- a/node/stmt/n_class_const_list.go +++ b/node/stmt/n_class_const_list.go @@ -11,7 +11,7 @@ type ClassConstList struct { Consts []node.Node } -// NewClassConstList node constuctor +// NewClassConstList node constructor func NewClassConstList(Modifiers []node.Node, Consts []node.Node) *ClassConstList { return &ClassConstList{ Modifiers, diff --git a/node/stmt/n_class_method.go b/node/stmt/n_class_method.go index 669118e..2ae7dde 100644 --- a/node/stmt/n_class_method.go +++ b/node/stmt/n_class_method.go @@ -16,7 +16,7 @@ type ClassMethod struct { Stmts []node.Node } -// NewClassMethod node constuctor +// NewClassMethod node constructor func NewClassMethod(MethodName node.Node, Modifiers []node.Node, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmts []node.Node, PhpDocComment string) *ClassMethod { return &ClassMethod{ ReturnsRef, diff --git a/node/stmt/n_const_list.go b/node/stmt/n_const_list.go index 7fda5dd..8490ec5 100644 --- a/node/stmt/n_const_list.go +++ b/node/stmt/n_const_list.go @@ -10,7 +10,7 @@ type ConstList struct { Consts []node.Node } -// NewConstList node constuctor +// NewConstList node constructor func NewConstList(Consts []node.Node) *ConstList { return &ConstList{ Consts, diff --git a/node/stmt/n_constant.go b/node/stmt/n_constant.go index 8a1daba..4cc651c 100644 --- a/node/stmt/n_constant.go +++ b/node/stmt/n_constant.go @@ -12,7 +12,7 @@ type Constant struct { Expr node.Node } -// NewConstant node constuctor +// NewConstant node constructor func NewConstant(ConstantName node.Node, Expr node.Node, PhpDocComment string) *Constant { return &Constant{ PhpDocComment, diff --git a/node/stmt/n_continue.go b/node/stmt/n_continue.go index 1c226af..afa8780 100644 --- a/node/stmt/n_continue.go +++ b/node/stmt/n_continue.go @@ -10,7 +10,7 @@ type Continue struct { Expr node.Node } -// NewContinue node constuctor +// NewContinue node constructor func NewContinue(Expr node.Node) *Continue { return &Continue{ Expr, diff --git a/node/stmt/n_declare.go b/node/stmt/n_declare.go index 1ba4539..f2e251d 100644 --- a/node/stmt/n_declare.go +++ b/node/stmt/n_declare.go @@ -11,7 +11,7 @@ type Declare struct { Stmt node.Node } -// NewDeclare node constuctor +// NewDeclare node constructor func NewDeclare(Consts []node.Node, Stmt node.Node) *Declare { return &Declare{ Consts, diff --git a/node/stmt/n_default.go b/node/stmt/n_default.go index d23c46d..961d3d1 100644 --- a/node/stmt/n_default.go +++ b/node/stmt/n_default.go @@ -10,7 +10,7 @@ type Default struct { Stmts []node.Node } -// NewDefault node constuctor +// NewDefault node constructor func NewDefault(Stmts []node.Node) *Default { return &Default{ Stmts, diff --git a/node/stmt/n_do.go b/node/stmt/n_do.go index 2cc42f9..c8da1b0 100644 --- a/node/stmt/n_do.go +++ b/node/stmt/n_do.go @@ -11,7 +11,7 @@ type Do struct { Cond node.Node } -// NewDo node constuctor +// NewDo node constructor func NewDo(Stmt node.Node, Cond node.Node) *Do { return &Do{ Stmt, diff --git a/node/stmt/n_echo.go b/node/stmt/n_echo.go index cfea79a..9deb7d9 100644 --- a/node/stmt/n_echo.go +++ b/node/stmt/n_echo.go @@ -10,7 +10,7 @@ type Echo struct { Exprs []node.Node } -// NewEcho node constuctor +// NewEcho node constructor func NewEcho(Exprs []node.Node) *Echo { return &Echo{ Exprs, diff --git a/node/stmt/n_else.go b/node/stmt/n_else.go index 6b53200..15ad017 100644 --- a/node/stmt/n_else.go +++ b/node/stmt/n_else.go @@ -10,7 +10,7 @@ type Else struct { Stmt node.Node } -// NewElse node constuctor +// NewElse node constructor func NewElse(Stmt node.Node) *Else { return &Else{ Stmt, diff --git a/node/stmt/n_else_if.go b/node/stmt/n_else_if.go index f257828..98db7f7 100644 --- a/node/stmt/n_else_if.go +++ b/node/stmt/n_else_if.go @@ -11,7 +11,7 @@ type ElseIf struct { Stmt node.Node } -// NewElseIf node constuctor +// NewElseIf node constructor func NewElseIf(Cond node.Node, Stmt node.Node) *ElseIf { return &ElseIf{ Cond, diff --git a/node/stmt/n_expression.go b/node/stmt/n_expression.go index a3dc3c3..77dfe64 100644 --- a/node/stmt/n_expression.go +++ b/node/stmt/n_expression.go @@ -10,7 +10,7 @@ type Expression struct { Expr node.Node } -// NewExpression node constuctor +// NewExpression node constructor func NewExpression(Expr node.Node) *Expression { return &Expression{ Expr, diff --git a/node/stmt/n_finally.go b/node/stmt/n_finally.go index 1553f0d..9436140 100644 --- a/node/stmt/n_finally.go +++ b/node/stmt/n_finally.go @@ -10,7 +10,7 @@ type Finally struct { Stmts []node.Node } -// NewFinally node constuctor +// NewFinally node constructor func NewFinally(Stmts []node.Node) *Finally { return &Finally{ Stmts, diff --git a/node/stmt/n_for.go b/node/stmt/n_for.go index a54de6e..f8d3c91 100644 --- a/node/stmt/n_for.go +++ b/node/stmt/n_for.go @@ -13,7 +13,7 @@ type For struct { Stmt node.Node } -// NewFor node constuctor +// NewFor node constructor func NewFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *For { return &For{ Init, diff --git a/node/stmt/n_foreach.go b/node/stmt/n_foreach.go index b38eda5..2ae2c48 100644 --- a/node/stmt/n_foreach.go +++ b/node/stmt/n_foreach.go @@ -14,7 +14,7 @@ type Foreach struct { Stmt node.Node } -// NewForeach node constuctor +// NewForeach node constructor func NewForeach(Expr node.Node, Key node.Node, Variable node.Node, Stmt node.Node, ByRef bool) *Foreach { return &Foreach{ ByRef, diff --git a/node/stmt/n_function.go b/node/stmt/n_function.go index e90233b..762c710 100644 --- a/node/stmt/n_function.go +++ b/node/stmt/n_function.go @@ -15,7 +15,7 @@ type Function struct { Stmts []node.Node } -// NewFunction node constuctor +// NewFunction node constructor func NewFunction(FunctionName node.Node, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmts []node.Node, PhpDocComment string) *Function { return &Function{ ReturnsRef, diff --git a/node/stmt/n_global.go b/node/stmt/n_global.go index 338f149..b13861a 100644 --- a/node/stmt/n_global.go +++ b/node/stmt/n_global.go @@ -10,7 +10,7 @@ type Global struct { Vars []node.Node } -// NewGlobal node constuctor +// NewGlobal node constructor func NewGlobal(Vars []node.Node) *Global { return &Global{ Vars, diff --git a/node/stmt/n_goto.go b/node/stmt/n_goto.go index b3fd10c..682699e 100644 --- a/node/stmt/n_goto.go +++ b/node/stmt/n_goto.go @@ -10,7 +10,7 @@ type Goto struct { Label node.Node } -// NewGoto node constuctor +// NewGoto node constructor func NewGoto(Label node.Node) *Goto { return &Goto{ Label, diff --git a/node/stmt/n_group_use.go b/node/stmt/n_group_use.go index 432f479..d62c1cd 100644 --- a/node/stmt/n_group_use.go +++ b/node/stmt/n_group_use.go @@ -12,7 +12,7 @@ type GroupUse struct { UseList []node.Node } -// NewGroupUse node constuctor +// NewGroupUse node constructor func NewGroupUse(UseType node.Node, Prefix node.Node, UseList []node.Node) *GroupUse { return &GroupUse{ UseType, diff --git a/node/stmt/n_halt_compiler.go b/node/stmt/n_halt_compiler.go index db90280..92ead2c 100644 --- a/node/stmt/n_halt_compiler.go +++ b/node/stmt/n_halt_compiler.go @@ -6,7 +6,7 @@ import "github.com/z7zmey/php-parser/walker" type HaltCompiler struct { } -// NewHaltCompiler node constuctor +// NewHaltCompiler node constructor func NewHaltCompiler() *HaltCompiler { return &HaltCompiler{} } diff --git a/node/stmt/n_if.go b/node/stmt/n_if.go index 09f8831..b31af45 100644 --- a/node/stmt/n_if.go +++ b/node/stmt/n_if.go @@ -13,7 +13,7 @@ type If struct { Else node.Node } -// NewIf node constuctor +// NewIf node constructor func NewIf(Cond node.Node, Stmt node.Node, ElseIf []node.Node, Else node.Node) *If { return &If{ Cond, diff --git a/node/stmt/n_inline_html.go b/node/stmt/n_inline_html.go index 250ec4c..b3fb7fe 100644 --- a/node/stmt/n_inline_html.go +++ b/node/stmt/n_inline_html.go @@ -7,7 +7,7 @@ type InlineHtml struct { Value string } -// NewInlineHtml node constuctor +// NewInlineHtml node constructor func NewInlineHtml(Value string) *InlineHtml { return &InlineHtml{ Value, diff --git a/node/stmt/n_interface.go b/node/stmt/n_interface.go index a7b9306..bd1296d 100644 --- a/node/stmt/n_interface.go +++ b/node/stmt/n_interface.go @@ -13,7 +13,7 @@ type Interface struct { Stmts []node.Node } -// NewInterface node constuctor +// NewInterface node constructor func NewInterface(InterfaceName node.Node, Extends []node.Node, Stmts []node.Node, PhpDocComment string) *Interface { return &Interface{ PhpDocComment, diff --git a/node/stmt/n_label.go b/node/stmt/n_label.go index fa88c18..ea681b3 100644 --- a/node/stmt/n_label.go +++ b/node/stmt/n_label.go @@ -10,7 +10,7 @@ type Label struct { LabelName node.Node } -// NewLabel node constuctor +// NewLabel node constructor func NewLabel(LabelName node.Node) *Label { return &Label{ LabelName, diff --git a/node/stmt/n_namespace.go b/node/stmt/n_namespace.go index b3b092d..02399f6 100644 --- a/node/stmt/n_namespace.go +++ b/node/stmt/n_namespace.go @@ -11,7 +11,7 @@ type Namespace struct { Stmts []node.Node } -// NewNamespace node constuctor +// NewNamespace node constructor func NewNamespace(NamespaceName node.Node, Stmts []node.Node) *Namespace { return &Namespace{ NamespaceName, diff --git a/node/stmt/n_nop.go b/node/stmt/n_nop.go index 26047d8..71e3bf2 100644 --- a/node/stmt/n_nop.go +++ b/node/stmt/n_nop.go @@ -6,7 +6,7 @@ import "github.com/z7zmey/php-parser/walker" type Nop struct { } -// NewNop node constuctor +// NewNop node constructor func NewNop() *Nop { return &Nop{} } diff --git a/node/stmt/n_property.go b/node/stmt/n_property.go index 7746b99..71a017b 100644 --- a/node/stmt/n_property.go +++ b/node/stmt/n_property.go @@ -12,7 +12,7 @@ type Property struct { Expr node.Node } -// NewProperty node constuctor +// NewProperty node constructor func NewProperty(Variable node.Node, Expr node.Node, PhpDocComment string) *Property { return &Property{ PhpDocComment, diff --git a/node/stmt/n_property_list.go b/node/stmt/n_property_list.go index bee9e62..7ebbcba 100644 --- a/node/stmt/n_property_list.go +++ b/node/stmt/n_property_list.go @@ -11,7 +11,7 @@ type PropertyList struct { Properties []node.Node } -// NewPropertyList node constuctor +// NewPropertyList node constructor func NewPropertyList(Modifiers []node.Node, Properties []node.Node) *PropertyList { return &PropertyList{ Modifiers, diff --git a/node/stmt/n_return.go b/node/stmt/n_return.go index 22047a9..8f1c77c 100644 --- a/node/stmt/n_return.go +++ b/node/stmt/n_return.go @@ -10,7 +10,7 @@ type Return struct { Expr node.Node } -// NewReturn node constuctor +// NewReturn node constructor func NewReturn(Expr node.Node) *Return { return &Return{ Expr, diff --git a/node/stmt/n_static.go b/node/stmt/n_static.go index 8ec10b9..292ca3c 100644 --- a/node/stmt/n_static.go +++ b/node/stmt/n_static.go @@ -10,7 +10,7 @@ type Static struct { Vars []node.Node } -// NewStatic node constuctor +// NewStatic node constructor func NewStatic(Vars []node.Node) *Static { return &Static{ Vars, diff --git a/node/stmt/n_static_var.go b/node/stmt/n_static_var.go index 157d2f6..4ae5624 100644 --- a/node/stmt/n_static_var.go +++ b/node/stmt/n_static_var.go @@ -11,7 +11,7 @@ type StaticVar struct { Expr node.Node } -// NewStaticVar node constuctor +// NewStaticVar node constructor func NewStaticVar(Variable node.Node, Expr node.Node) *StaticVar { return &StaticVar{ Variable, diff --git a/node/stmt/n_stmt_list.go b/node/stmt/n_stmt_list.go index fa2e391..58adedb 100644 --- a/node/stmt/n_stmt_list.go +++ b/node/stmt/n_stmt_list.go @@ -10,7 +10,7 @@ type StmtList struct { Stmts []node.Node } -// NewStmtList node constuctor +// NewStmtList node constructor func NewStmtList(Stmts []node.Node) *StmtList { return &StmtList{ Stmts, diff --git a/node/stmt/n_switch.go b/node/stmt/n_switch.go index 440845c..2882257 100644 --- a/node/stmt/n_switch.go +++ b/node/stmt/n_switch.go @@ -11,7 +11,7 @@ type Switch struct { Cases []node.Node } -// NewSwitch node constuctor +// NewSwitch node constructor func NewSwitch(Cond node.Node, Cases []node.Node) *Switch { return &Switch{ Cond, diff --git a/node/stmt/n_throw.go b/node/stmt/n_throw.go index 5d510f2..1be5f2f 100644 --- a/node/stmt/n_throw.go +++ b/node/stmt/n_throw.go @@ -10,7 +10,7 @@ type Throw struct { Expr node.Node } -// NewThrow node constuctor +// NewThrow node constructor func NewThrow(Expr node.Node) *Throw { return &Throw{ Expr, diff --git a/node/stmt/n_trait.go b/node/stmt/n_trait.go index 24b3fed..65a98d4 100644 --- a/node/stmt/n_trait.go +++ b/node/stmt/n_trait.go @@ -12,7 +12,7 @@ type Trait struct { Stmts []node.Node } -// NewTrait node constuctor +// NewTrait node constructor func NewTrait(TraitName node.Node, Stmts []node.Node, PhpDocComment string) *Trait { return &Trait{ PhpDocComment, diff --git a/node/stmt/n_trait_method_ref.go b/node/stmt/n_trait_method_ref.go index 26ec510..f75c381 100644 --- a/node/stmt/n_trait_method_ref.go +++ b/node/stmt/n_trait_method_ref.go @@ -11,7 +11,7 @@ type TraitMethodRef struct { Method node.Node } -// NewTraitMethodRef node constuctor +// NewTraitMethodRef node constructor func NewTraitMethodRef(Trait node.Node, Method node.Node) *TraitMethodRef { return &TraitMethodRef{ Trait, diff --git a/node/stmt/n_trait_use.go b/node/stmt/n_trait_use.go index a92fd5b..b5b0b87 100644 --- a/node/stmt/n_trait_use.go +++ b/node/stmt/n_trait_use.go @@ -11,7 +11,7 @@ type TraitUse struct { Adaptations []node.Node } -// NewTraitUse node constuctor +// NewTraitUse node constructor func NewTraitUse(Traits []node.Node, Adaptations []node.Node) *TraitUse { return &TraitUse{ Traits, diff --git a/node/stmt/n_trait_use_alias.go b/node/stmt/n_trait_use_alias.go index 537718f..38201fb 100644 --- a/node/stmt/n_trait_use_alias.go +++ b/node/stmt/n_trait_use_alias.go @@ -12,7 +12,7 @@ type TraitUseAlias struct { Alias node.Node } -// NewTraitUseAlias node constuctor +// NewTraitUseAlias node constructor func NewTraitUseAlias(Ref node.Node, Modifier node.Node, Alias node.Node) *TraitUseAlias { return &TraitUseAlias{ Ref, diff --git a/node/stmt/n_trait_use_precedence.go b/node/stmt/n_trait_use_precedence.go index fd7881b..e85624b 100644 --- a/node/stmt/n_trait_use_precedence.go +++ b/node/stmt/n_trait_use_precedence.go @@ -11,7 +11,7 @@ type TraitUsePrecedence struct { Insteadof []node.Node } -// NewTraitUsePrecedence node constuctor +// NewTraitUsePrecedence node constructor func NewTraitUsePrecedence(Ref node.Node, Insteadof []node.Node) *TraitUsePrecedence { return &TraitUsePrecedence{ Ref, diff --git a/node/stmt/n_try.go b/node/stmt/n_try.go index 80d26b2..9bd94d8 100644 --- a/node/stmt/n_try.go +++ b/node/stmt/n_try.go @@ -12,7 +12,7 @@ type Try struct { Finally node.Node } -// NewTry node constuctor +// NewTry node constructor func NewTry(Stmts []node.Node, Catches []node.Node, Finally node.Node) *Try { return &Try{ Stmts, diff --git a/node/stmt/n_unset.go b/node/stmt/n_unset.go index e301d69..c66f7e7 100644 --- a/node/stmt/n_unset.go +++ b/node/stmt/n_unset.go @@ -10,7 +10,7 @@ type Unset struct { Vars []node.Node } -// NewUnset node constuctor +// NewUnset node constructor func NewUnset(Vars []node.Node) *Unset { return &Unset{ Vars, diff --git a/node/stmt/n_use.go b/node/stmt/n_use.go index a87846e..1bbabe1 100644 --- a/node/stmt/n_use.go +++ b/node/stmt/n_use.go @@ -12,7 +12,7 @@ type Use struct { Alias node.Node } -// NewUse node constuctor +// NewUse node constructor func NewUse(UseType node.Node, use node.Node, Alias node.Node) *Use { return &Use{ UseType, diff --git a/node/stmt/n_use_list.go b/node/stmt/n_use_list.go index f7d59fd..197773d 100644 --- a/node/stmt/n_use_list.go +++ b/node/stmt/n_use_list.go @@ -11,7 +11,7 @@ type UseList struct { Uses []node.Node } -// NewUseList node constuctor +// NewUseList node constructor func NewUseList(UseType node.Node, Uses []node.Node) *UseList { return &UseList{ UseType, diff --git a/node/stmt/n_while.go b/node/stmt/n_while.go index 5eb9e74..3d737b5 100644 --- a/node/stmt/n_while.go +++ b/node/stmt/n_while.go @@ -11,7 +11,7 @@ type While struct { Stmt node.Node } -// NewWhile node constuctor +// NewWhile node constructor func NewWhile(Cond node.Node, Stmt node.Node) *While { return &While{ Cond,