fix typo
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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{}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -7,7 +7,7 @@ type InlineHtml struct {
|
||||
Value string
|
||||
}
|
||||
|
||||
// NewInlineHtml node constuctor
|
||||
// NewInlineHtml node constructor
|
||||
func NewInlineHtml(Value string) *InlineHtml {
|
||||
return &InlineHtml{
|
||||
Value,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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{}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user