id
int32 0
167k
| repo
stringlengths 5
54
| path
stringlengths 4
155
| func_name
stringlengths 1
118
| original_string
stringlengths 52
85.5k
| language
stringclasses 1
value | code
stringlengths 52
85.5k
| code_tokens
sequencelengths 21
1.41k
| docstring
stringlengths 6
2.61k
| docstring_tokens
sequencelengths 3
215
| sha
stringlengths 40
40
| url
stringlengths 85
252
|
---|---|---|---|---|---|---|---|---|---|---|---|
5,900 | z7zmey/php-parser | node/expr/binary/n_boolean_and.go | NewBooleanAnd | func NewBooleanAnd(Variable node.Node, Expression node.Node) *BooleanAnd {
return &BooleanAnd{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewBooleanAnd(Variable node.Node, Expression node.Node) *BooleanAnd {
return &BooleanAnd{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewBooleanAnd",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"BooleanAnd",
"{",
"return",
"&",
"BooleanAnd",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewBooleanAnd node constructor | [
"NewBooleanAnd",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_boolean_and.go#L19-L25 |
5,901 | z7zmey/php-parser | node/expr/n_function_call.go | NewFunctionCall | func NewFunctionCall(Function node.Node, ArgumentList *node.ArgumentList) *FunctionCall {
return &FunctionCall{
FreeFloating: nil,
Function: Function,
ArgumentList: ArgumentList,
}
} | go | func NewFunctionCall(Function node.Node, ArgumentList *node.ArgumentList) *FunctionCall {
return &FunctionCall{
FreeFloating: nil,
Function: Function,
ArgumentList: ArgumentList,
}
} | [
"func",
"NewFunctionCall",
"(",
"Function",
"node",
".",
"Node",
",",
"ArgumentList",
"*",
"node",
".",
"ArgumentList",
")",
"*",
"FunctionCall",
"{",
"return",
"&",
"FunctionCall",
"{",
"FreeFloating",
":",
"nil",
",",
"Function",
":",
"Function",
",",
"ArgumentList",
":",
"ArgumentList",
",",
"}",
"\n",
"}"
] | // NewFunctionCall node constructor | [
"NewFunctionCall",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_function_call.go#L19-L25 |
5,902 | z7zmey/php-parser | node/n_parameter.go | NewParameter | func NewParameter(VariableType Node, Variable Node, DefaultValue Node, ByRef bool, Variadic bool) *Parameter {
return &Parameter{
FreeFloating: nil,
ByRef: ByRef,
Variadic: Variadic,
VariableType: VariableType,
Variable: Variable,
DefaultValue: DefaultValue,
}
} | go | func NewParameter(VariableType Node, Variable Node, DefaultValue Node, ByRef bool, Variadic bool) *Parameter {
return &Parameter{
FreeFloating: nil,
ByRef: ByRef,
Variadic: Variadic,
VariableType: VariableType,
Variable: Variable,
DefaultValue: DefaultValue,
}
} | [
"func",
"NewParameter",
"(",
"VariableType",
"Node",
",",
"Variable",
"Node",
",",
"DefaultValue",
"Node",
",",
"ByRef",
"bool",
",",
"Variadic",
"bool",
")",
"*",
"Parameter",
"{",
"return",
"&",
"Parameter",
"{",
"FreeFloating",
":",
"nil",
",",
"ByRef",
":",
"ByRef",
",",
"Variadic",
":",
"Variadic",
",",
"VariableType",
":",
"VariableType",
",",
"Variable",
":",
"Variable",
",",
"DefaultValue",
":",
"DefaultValue",
",",
"}",
"\n",
"}"
] | // NewParameter node constructor | [
"NewParameter",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/n_parameter.go#L21-L30 |
5,903 | z7zmey/php-parser | node/expr/binary/n_boolean_or.go | NewBooleanOr | func NewBooleanOr(Variable node.Node, Expression node.Node) *BooleanOr {
return &BooleanOr{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewBooleanOr(Variable node.Node, Expression node.Node) *BooleanOr {
return &BooleanOr{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewBooleanOr",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"BooleanOr",
"{",
"return",
"&",
"BooleanOr",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewBooleanOr node constructor | [
"NewBooleanOr",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_boolean_or.go#L19-L25 |
5,904 | z7zmey/php-parser | node/expr/n_empty.go | NewEmpty | func NewEmpty(Expression node.Node) *Empty {
return &Empty{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewEmpty(Expression node.Node) *Empty {
return &Empty{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewEmpty",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"Empty",
"{",
"return",
"&",
"Empty",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewEmpty node constructor | [
"NewEmpty",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_empty.go#L18-L23 |
5,905 | z7zmey/php-parser | node/stmt/n_do.go | NewDo | func NewDo(Stmt node.Node, Cond node.Node) *Do {
return &Do{
FreeFloating: nil,
Stmt: Stmt,
Cond: Cond,
}
} | go | func NewDo(Stmt node.Node, Cond node.Node) *Do {
return &Do{
FreeFloating: nil,
Stmt: Stmt,
Cond: Cond,
}
} | [
"func",
"NewDo",
"(",
"Stmt",
"node",
".",
"Node",
",",
"Cond",
"node",
".",
"Node",
")",
"*",
"Do",
"{",
"return",
"&",
"Do",
"{",
"FreeFloating",
":",
"nil",
",",
"Stmt",
":",
"Stmt",
",",
"Cond",
":",
"Cond",
",",
"}",
"\n",
"}"
] | // NewDo node constructor | [
"NewDo",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_do.go#L19-L25 |
5,906 | z7zmey/php-parser | node/stmt/n_group_use.go | NewGroupUse | func NewGroupUse(UseType node.Node, Prefix node.Node, UseList []node.Node) *GroupUse {
return &GroupUse{
FreeFloating: nil,
UseType: UseType,
Prefix: Prefix,
UseList: UseList,
}
} | go | func NewGroupUse(UseType node.Node, Prefix node.Node, UseList []node.Node) *GroupUse {
return &GroupUse{
FreeFloating: nil,
UseType: UseType,
Prefix: Prefix,
UseList: UseList,
}
} | [
"func",
"NewGroupUse",
"(",
"UseType",
"node",
".",
"Node",
",",
"Prefix",
"node",
".",
"Node",
",",
"UseList",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"GroupUse",
"{",
"return",
"&",
"GroupUse",
"{",
"FreeFloating",
":",
"nil",
",",
"UseType",
":",
"UseType",
",",
"Prefix",
":",
"Prefix",
",",
"UseList",
":",
"UseList",
",",
"}",
"\n",
"}"
] | // NewGroupUse node constructor | [
"NewGroupUse",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_group_use.go#L20-L27 |
5,907 | z7zmey/php-parser | node/stmt/n_class.go | NewClass | func NewClass(ClassName node.Node, Modifiers []node.Node, ArgumentList *node.ArgumentList, Extends *ClassExtends, Implements *ClassImplements, Stmts []node.Node, PhpDocComment string) *Class {
return &Class{
FreeFloating: nil,
PhpDocComment: PhpDocComment,
ClassName: ClassName,
Modifiers: Modifiers,
ArgumentList: ArgumentList,
Extends: Extends,
Implements: Implements,
Stmts: Stmts,
}
} | go | func NewClass(ClassName node.Node, Modifiers []node.Node, ArgumentList *node.ArgumentList, Extends *ClassExtends, Implements *ClassImplements, Stmts []node.Node, PhpDocComment string) *Class {
return &Class{
FreeFloating: nil,
PhpDocComment: PhpDocComment,
ClassName: ClassName,
Modifiers: Modifiers,
ArgumentList: ArgumentList,
Extends: Extends,
Implements: Implements,
Stmts: Stmts,
}
} | [
"func",
"NewClass",
"(",
"ClassName",
"node",
".",
"Node",
",",
"Modifiers",
"[",
"]",
"node",
".",
"Node",
",",
"ArgumentList",
"*",
"node",
".",
"ArgumentList",
",",
"Extends",
"*",
"ClassExtends",
",",
"Implements",
"*",
"ClassImplements",
",",
"Stmts",
"[",
"]",
"node",
".",
"Node",
",",
"PhpDocComment",
"string",
")",
"*",
"Class",
"{",
"return",
"&",
"Class",
"{",
"FreeFloating",
":",
"nil",
",",
"PhpDocComment",
":",
"PhpDocComment",
",",
"ClassName",
":",
"ClassName",
",",
"Modifiers",
":",
"Modifiers",
",",
"ArgumentList",
":",
"ArgumentList",
",",
"Extends",
":",
"Extends",
",",
"Implements",
":",
"Implements",
",",
"Stmts",
":",
"Stmts",
",",
"}",
"\n",
"}"
] | // NewClass node constructor | [
"NewClass",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_class.go#L24-L35 |
5,908 | z7zmey/php-parser | php5/parser.go | NewParser | func NewParser(src io.Reader, path string) *Parser {
lexer := scanner.NewLexer(src, path)
return &Parser{
lexer,
path,
nil,
nil,
nil,
}
} | go | func NewParser(src io.Reader, path string) *Parser {
lexer := scanner.NewLexer(src, path)
return &Parser{
lexer,
path,
nil,
nil,
nil,
}
} | [
"func",
"NewParser",
"(",
"src",
"io",
".",
"Reader",
",",
"path",
"string",
")",
"*",
"Parser",
"{",
"lexer",
":=",
"scanner",
".",
"NewLexer",
"(",
"src",
",",
"path",
")",
"\n\n",
"return",
"&",
"Parser",
"{",
"lexer",
",",
"path",
",",
"nil",
",",
"nil",
",",
"nil",
",",
"}",
"\n",
"}"
] | // NewParser creates and returns new Parser | [
"NewParser",
"creates",
"and",
"returns",
"new",
"Parser"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/php5/parser.go#L30-L40 |
5,909 | z7zmey/php-parser | php5/parser.go | Lex | func (l *Parser) Lex(lval *yySymType) int {
t := l.Lexer.Lex(lval)
l.currentToken = lval.token
return t
} | go | func (l *Parser) Lex(lval *yySymType) int {
t := l.Lexer.Lex(lval)
l.currentToken = lval.token
return t
} | [
"func",
"(",
"l",
"*",
"Parser",
")",
"Lex",
"(",
"lval",
"*",
"yySymType",
")",
"int",
"{",
"t",
":=",
"l",
".",
"Lexer",
".",
"Lex",
"(",
"lval",
")",
"\n",
"l",
".",
"currentToken",
"=",
"lval",
".",
"token",
"\n",
"return",
"t",
"\n",
"}"
] | // Lex proxy to lexer Lex | [
"Lex",
"proxy",
"to",
"lexer",
"Lex"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/php5/parser.go#L43-L47 |
5,910 | z7zmey/php-parser | php5/parser.go | Parse | func (l *Parser) Parse() int {
// init
l.Lexer.Errors = nil
l.rootNode = nil
l.positionBuilder = &parser.PositionBuilder{}
// parse
return yyParse(l)
} | go | func (l *Parser) Parse() int {
// init
l.Lexer.Errors = nil
l.rootNode = nil
l.positionBuilder = &parser.PositionBuilder{}
// parse
return yyParse(l)
} | [
"func",
"(",
"l",
"*",
"Parser",
")",
"Parse",
"(",
")",
"int",
"{",
"// init",
"l",
".",
"Lexer",
".",
"Errors",
"=",
"nil",
"\n",
"l",
".",
"rootNode",
"=",
"nil",
"\n",
"l",
".",
"positionBuilder",
"=",
"&",
"parser",
".",
"PositionBuilder",
"{",
"}",
"\n\n",
"// parse",
"return",
"yyParse",
"(",
"l",
")",
"\n",
"}"
] | // Parse the php7 Parser entrypoint | [
"Parse",
"the",
"php7",
"Parser",
"entrypoint"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/php5/parser.go#L65-L74 |
5,911 | z7zmey/php-parser | node/expr/n_boolean_not.go | NewBooleanNot | func NewBooleanNot(Expression node.Node) *BooleanNot {
return &BooleanNot{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewBooleanNot(Expression node.Node) *BooleanNot {
return &BooleanNot{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewBooleanNot",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"BooleanNot",
"{",
"return",
"&",
"BooleanNot",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewBooleanNot node constructor | [
"NewBooleanNot",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_boolean_not.go#L18-L23 |
5,912 | z7zmey/php-parser | node/expr/n_pre_dec.go | NewPreDec | func NewPreDec(Variable node.Node) *PreDec {
return &PreDec{
FreeFloating: nil,
Variable: Variable,
}
} | go | func NewPreDec(Variable node.Node) *PreDec {
return &PreDec{
FreeFloating: nil,
Variable: Variable,
}
} | [
"func",
"NewPreDec",
"(",
"Variable",
"node",
".",
"Node",
")",
"*",
"PreDec",
"{",
"return",
"&",
"PreDec",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"}",
"\n",
"}"
] | // NewPreDec node constructor | [
"NewPreDec",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_pre_dec.go#L18-L23 |
5,913 | z7zmey/php-parser | node/stmt/n_function.go | NewFunction | func NewFunction(FunctionName node.Node, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmts []node.Node, PhpDocComment string) *Function {
return &Function{
FreeFloating: nil,
ReturnsRef: ReturnsRef,
PhpDocComment: PhpDocComment,
FunctionName: FunctionName,
Params: Params,
ReturnType: ReturnType,
Stmts: Stmts,
}
} | go | func NewFunction(FunctionName node.Node, ReturnsRef bool, Params []node.Node, ReturnType node.Node, Stmts []node.Node, PhpDocComment string) *Function {
return &Function{
FreeFloating: nil,
ReturnsRef: ReturnsRef,
PhpDocComment: PhpDocComment,
FunctionName: FunctionName,
Params: Params,
ReturnType: ReturnType,
Stmts: Stmts,
}
} | [
"func",
"NewFunction",
"(",
"FunctionName",
"node",
".",
"Node",
",",
"ReturnsRef",
"bool",
",",
"Params",
"[",
"]",
"node",
".",
"Node",
",",
"ReturnType",
"node",
".",
"Node",
",",
"Stmts",
"[",
"]",
"node",
".",
"Node",
",",
"PhpDocComment",
"string",
")",
"*",
"Function",
"{",
"return",
"&",
"Function",
"{",
"FreeFloating",
":",
"nil",
",",
"ReturnsRef",
":",
"ReturnsRef",
",",
"PhpDocComment",
":",
"PhpDocComment",
",",
"FunctionName",
":",
"FunctionName",
",",
"Params",
":",
"Params",
",",
"ReturnType",
":",
"ReturnType",
",",
"Stmts",
":",
"Stmts",
",",
"}",
"\n",
"}"
] | // NewFunction node constructor | [
"NewFunction",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_function.go#L23-L33 |
5,914 | z7zmey/php-parser | node/expr/n_post_dec.go | NewPostDec | func NewPostDec(Variable node.Node) *PostDec {
return &PostDec{
FreeFloating: nil,
Variable: Variable,
}
} | go | func NewPostDec(Variable node.Node) *PostDec {
return &PostDec{
FreeFloating: nil,
Variable: Variable,
}
} | [
"func",
"NewPostDec",
"(",
"Variable",
"node",
".",
"Node",
")",
"*",
"PostDec",
"{",
"return",
"&",
"PostDec",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"}",
"\n",
"}"
] | // NewPostDec node constructor | [
"NewPostDec",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_post_dec.go#L18-L23 |
5,915 | z7zmey/php-parser | node/stmt/n_alt_while.go | NewAltWhile | func NewAltWhile(Cond node.Node, Stmt node.Node) *AltWhile {
return &AltWhile{
FreeFloating: nil,
Cond: Cond,
Stmt: Stmt,
}
} | go | func NewAltWhile(Cond node.Node, Stmt node.Node) *AltWhile {
return &AltWhile{
FreeFloating: nil,
Cond: Cond,
Stmt: Stmt,
}
} | [
"func",
"NewAltWhile",
"(",
"Cond",
"node",
".",
"Node",
",",
"Stmt",
"node",
".",
"Node",
")",
"*",
"AltWhile",
"{",
"return",
"&",
"AltWhile",
"{",
"FreeFloating",
":",
"nil",
",",
"Cond",
":",
"Cond",
",",
"Stmt",
":",
"Stmt",
",",
"}",
"\n",
"}"
] | // NewAltWhile node constructor | [
"NewAltWhile",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_alt_while.go#L19-L25 |
5,916 | z7zmey/php-parser | node/expr/n_error_suppress.go | NewErrorSuppress | func NewErrorSuppress(Expression node.Node) *ErrorSuppress {
return &ErrorSuppress{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewErrorSuppress(Expression node.Node) *ErrorSuppress {
return &ErrorSuppress{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewErrorSuppress",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"ErrorSuppress",
"{",
"return",
"&",
"ErrorSuppress",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewErrorSuppress node constructor | [
"NewErrorSuppress",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_error_suppress.go#L18-L23 |
5,917 | z7zmey/php-parser | node/name/n_fully_qualified.go | NewFullyQualified | func NewFullyQualified(Parts []node.Node) *FullyQualified {
return &FullyQualified{
FreeFloating: nil,
Parts: Parts,
}
} | go | func NewFullyQualified(Parts []node.Node) *FullyQualified {
return &FullyQualified{
FreeFloating: nil,
Parts: Parts,
}
} | [
"func",
"NewFullyQualified",
"(",
"Parts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"FullyQualified",
"{",
"return",
"&",
"FullyQualified",
"{",
"FreeFloating",
":",
"nil",
",",
"Parts",
":",
"Parts",
",",
"}",
"\n",
"}"
] | // NewFullyQualified node constructor | [
"NewFullyQualified",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/name/n_fully_qualified.go#L18-L23 |
5,918 | z7zmey/php-parser | node/stmt/n_expression.go | NewExpression | func NewExpression(Expr node.Node) *Expression {
return &Expression{
FreeFloating: nil,
Expr: Expr,
}
} | go | func NewExpression(Expr node.Node) *Expression {
return &Expression{
FreeFloating: nil,
Expr: Expr,
}
} | [
"func",
"NewExpression",
"(",
"Expr",
"node",
".",
"Node",
")",
"*",
"Expression",
"{",
"return",
"&",
"Expression",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewExpression node constructor | [
"NewExpression",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_expression.go#L18-L23 |
5,919 | z7zmey/php-parser | node/stmt/n_class_const_list.go | NewClassConstList | func NewClassConstList(Modifiers []node.Node, Consts []node.Node) *ClassConstList {
return &ClassConstList{
FreeFloating: nil,
Modifiers: Modifiers,
Consts: Consts,
}
} | go | func NewClassConstList(Modifiers []node.Node, Consts []node.Node) *ClassConstList {
return &ClassConstList{
FreeFloating: nil,
Modifiers: Modifiers,
Consts: Consts,
}
} | [
"func",
"NewClassConstList",
"(",
"Modifiers",
"[",
"]",
"node",
".",
"Node",
",",
"Consts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"ClassConstList",
"{",
"return",
"&",
"ClassConstList",
"{",
"FreeFloating",
":",
"nil",
",",
"Modifiers",
":",
"Modifiers",
",",
"Consts",
":",
"Consts",
",",
"}",
"\n",
"}"
] | // NewClassConstList node constructor | [
"NewClassConstList",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_class_const_list.go#L19-L25 |
5,920 | z7zmey/php-parser | node/expr/assign/n_bitwise_xor.go | NewBitwiseXor | func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
return &BitwiseXor{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | go | func NewBitwiseXor(Variable node.Node, Expression node.Node) *BitwiseXor {
return &BitwiseXor{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | [
"func",
"NewBitwiseXor",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"BitwiseXor",
"{",
"return",
"&",
"BitwiseXor",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"Expression",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewBitwiseXor node constructor | [
"NewBitwiseXor",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/assign/n_bitwise_xor.go#L19-L25 |
5,921 | z7zmey/php-parser | node/expr/binary/n_logical_and.go | NewLogicalAnd | func NewLogicalAnd(Variable node.Node, Expression node.Node) *LogicalAnd {
return &LogicalAnd{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewLogicalAnd(Variable node.Node, Expression node.Node) *LogicalAnd {
return &LogicalAnd{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewLogicalAnd",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"LogicalAnd",
"{",
"return",
"&",
"LogicalAnd",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewLogicalAnd node constructor | [
"NewLogicalAnd",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_logical_and.go#L19-L25 |
5,922 | z7zmey/php-parser | node/expr/n_variable.go | NewVariable | func NewVariable(VarName node.Node) *Variable {
return &Variable{
FreeFloating: nil,
VarName: VarName,
}
} | go | func NewVariable(VarName node.Node) *Variable {
return &Variable{
FreeFloating: nil,
VarName: VarName,
}
} | [
"func",
"NewVariable",
"(",
"VarName",
"node",
".",
"Node",
")",
"*",
"Variable",
"{",
"return",
"&",
"Variable",
"{",
"FreeFloating",
":",
"nil",
",",
"VarName",
":",
"VarName",
",",
"}",
"\n",
"}"
] | // NewVariable node constructor | [
"NewVariable",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_variable.go#L18-L23 |
5,923 | z7zmey/php-parser | node/expr/cast/n_cast_double.go | NewDouble | func NewDouble(Expr node.Node) *Double {
return &Double{
FreeFloating: nil,
Expr: Expr,
}
} | go | func NewDouble(Expr node.Node) *Double {
return &Double{
FreeFloating: nil,
Expr: Expr,
}
} | [
"func",
"NewDouble",
"(",
"Expr",
"node",
".",
"Node",
")",
"*",
"Double",
"{",
"return",
"&",
"Double",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewDouble node constructor | [
"NewDouble",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/cast/n_cast_double.go#L18-L23 |
5,924 | z7zmey/php-parser | node/expr/binary/n_logical_or.go | NewLogicalOr | func NewLogicalOr(Variable node.Node, Expression node.Node) *LogicalOr {
return &LogicalOr{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewLogicalOr(Variable node.Node, Expression node.Node) *LogicalOr {
return &LogicalOr{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewLogicalOr",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"LogicalOr",
"{",
"return",
"&",
"LogicalOr",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewLogicalOr node constructor | [
"NewLogicalOr",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_logical_or.go#L19-L25 |
5,925 | z7zmey/php-parser | node/expr/n_unary_plus.go | NewUnaryPlus | func NewUnaryPlus(Expression node.Node) *UnaryPlus {
return &UnaryPlus{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewUnaryPlus(Expression node.Node) *UnaryPlus {
return &UnaryPlus{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewUnaryPlus",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"UnaryPlus",
"{",
"return",
"&",
"UnaryPlus",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewUnaryPlus node constructor | [
"NewUnaryPlus",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_unary_plus.go#L18-L23 |
5,926 | z7zmey/php-parser | node/expr/binary/n_logical_xor.go | NewLogicalXor | func NewLogicalXor(Variable node.Node, Expression node.Node) *LogicalXor {
return &LogicalXor{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewLogicalXor(Variable node.Node, Expression node.Node) *LogicalXor {
return &LogicalXor{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewLogicalXor",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"LogicalXor",
"{",
"return",
"&",
"LogicalXor",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewLogicalXor node constructor | [
"NewLogicalXor",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_logical_xor.go#L19-L25 |
5,927 | z7zmey/php-parser | node/expr/n_short_array.go | NewShortArray | func NewShortArray(Items []node.Node) *ShortArray {
return &ShortArray{
FreeFloating: nil,
Items: Items,
}
} | go | func NewShortArray(Items []node.Node) *ShortArray {
return &ShortArray{
FreeFloating: nil,
Items: Items,
}
} | [
"func",
"NewShortArray",
"(",
"Items",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"ShortArray",
"{",
"return",
"&",
"ShortArray",
"{",
"FreeFloating",
":",
"nil",
",",
"Items",
":",
"Items",
",",
"}",
"\n",
"}"
] | // NewShortArray node constructor | [
"NewShortArray",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_short_array.go#L18-L23 |
5,928 | z7zmey/php-parser | node/expr/assign/n_mod.go | NewMod | func NewMod(Variable node.Node, Expression node.Node) *Mod {
return &Mod{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | go | func NewMod(Variable node.Node, Expression node.Node) *Mod {
return &Mod{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | [
"func",
"NewMod",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"Mod",
"{",
"return",
"&",
"Mod",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"Expression",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewMod node constructor | [
"NewMod",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/assign/n_mod.go#L19-L25 |
5,929 | z7zmey/php-parser | node/stmt/n_finally.go | NewFinally | func NewFinally(Stmts []node.Node) *Finally {
return &Finally{
FreeFloating: nil,
Stmts: Stmts,
}
} | go | func NewFinally(Stmts []node.Node) *Finally {
return &Finally{
FreeFloating: nil,
Stmts: Stmts,
}
} | [
"func",
"NewFinally",
"(",
"Stmts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Finally",
"{",
"return",
"&",
"Finally",
"{",
"FreeFloating",
":",
"nil",
",",
"Stmts",
":",
"Stmts",
",",
"}",
"\n",
"}"
] | // NewFinally node constructor | [
"NewFinally",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_finally.go#L18-L23 |
5,930 | z7zmey/php-parser | node/stmt/n_const_list.go | NewConstList | func NewConstList(Consts []node.Node) *ConstList {
return &ConstList{
FreeFloating: nil,
Consts: Consts,
}
} | go | func NewConstList(Consts []node.Node) *ConstList {
return &ConstList{
FreeFloating: nil,
Consts: Consts,
}
} | [
"func",
"NewConstList",
"(",
"Consts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"ConstList",
"{",
"return",
"&",
"ConstList",
"{",
"FreeFloating",
":",
"nil",
",",
"Consts",
":",
"Consts",
",",
"}",
"\n",
"}"
] | // NewConstList node constructor | [
"NewConstList",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_const_list.go#L18-L23 |
5,931 | z7zmey/php-parser | node/expr/n_exit.go | NewExit | func NewExit(Expr node.Node) *Exit {
return &Exit{
FreeFloating: nil,
Expr: Expr,
}
} | go | func NewExit(Expr node.Node) *Exit {
return &Exit{
FreeFloating: nil,
Expr: Expr,
}
} | [
"func",
"NewExit",
"(",
"Expr",
"node",
".",
"Node",
")",
"*",
"Exit",
"{",
"return",
"&",
"Exit",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewExit node constructor | [
"NewExit",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_exit.go#L19-L24 |
5,932 | z7zmey/php-parser | node/stmt/n_for.go | NewFor | func NewFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *For {
return &For{
FreeFloating: nil,
Init: Init,
Cond: Cond,
Loop: Loop,
Stmt: Stmt,
}
} | go | func NewFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *For {
return &For{
FreeFloating: nil,
Init: Init,
Cond: Cond,
Loop: Loop,
Stmt: Stmt,
}
} | [
"func",
"NewFor",
"(",
"Init",
"[",
"]",
"node",
".",
"Node",
",",
"Cond",
"[",
"]",
"node",
".",
"Node",
",",
"Loop",
"[",
"]",
"node",
".",
"Node",
",",
"Stmt",
"node",
".",
"Node",
")",
"*",
"For",
"{",
"return",
"&",
"For",
"{",
"FreeFloating",
":",
"nil",
",",
"Init",
":",
"Init",
",",
"Cond",
":",
"Cond",
",",
"Loop",
":",
"Loop",
",",
"Stmt",
":",
"Stmt",
",",
"}",
"\n",
"}"
] | // NewFor node constructor | [
"NewFor",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_for.go#L21-L29 |
5,933 | z7zmey/php-parser | node/stmt/n_use_list.go | NewUseList | func NewUseList(UseType node.Node, Uses []node.Node) *UseList {
return &UseList{
FreeFloating: nil,
UseType: UseType,
Uses: Uses,
}
} | go | func NewUseList(UseType node.Node, Uses []node.Node) *UseList {
return &UseList{
FreeFloating: nil,
UseType: UseType,
Uses: Uses,
}
} | [
"func",
"NewUseList",
"(",
"UseType",
"node",
".",
"Node",
",",
"Uses",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"UseList",
"{",
"return",
"&",
"UseList",
"{",
"FreeFloating",
":",
"nil",
",",
"UseType",
":",
"UseType",
",",
"Uses",
":",
"Uses",
",",
"}",
"\n",
"}"
] | // NewUseList node constructor | [
"NewUseList",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_use_list.go#L19-L25 |
5,934 | z7zmey/php-parser | node/stmt/n_label.go | NewLabel | func NewLabel(LabelName node.Node) *Label {
return &Label{
FreeFloating: nil,
LabelName: LabelName,
}
} | go | func NewLabel(LabelName node.Node) *Label {
return &Label{
FreeFloating: nil,
LabelName: LabelName,
}
} | [
"func",
"NewLabel",
"(",
"LabelName",
"node",
".",
"Node",
")",
"*",
"Label",
"{",
"return",
"&",
"Label",
"{",
"FreeFloating",
":",
"nil",
",",
"LabelName",
":",
"LabelName",
",",
"}",
"\n",
"}"
] | // NewLabel node constructor | [
"NewLabel",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_label.go#L18-L23 |
5,935 | z7zmey/php-parser | node/name/n_name.go | NewName | func NewName(Parts []node.Node) *Name {
return &Name{
FreeFloating: nil,
Parts: Parts,
}
} | go | func NewName(Parts []node.Node) *Name {
return &Name{
FreeFloating: nil,
Parts: Parts,
}
} | [
"func",
"NewName",
"(",
"Parts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Name",
"{",
"return",
"&",
"Name",
"{",
"FreeFloating",
":",
"nil",
",",
"Parts",
":",
"Parts",
",",
"}",
"\n",
"}"
] | // NewName node constructor | [
"NewName",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/name/n_name.go#L18-L23 |
5,936 | z7zmey/php-parser | node/stmt/n_if.go | NewIf | func NewIf(Cond node.Node, Stmt node.Node, ElseIf []node.Node, Else node.Node) *If {
return &If{
FreeFloating: nil,
Cond: Cond,
Stmt: Stmt,
ElseIf: ElseIf,
Else: Else,
}
} | go | func NewIf(Cond node.Node, Stmt node.Node, ElseIf []node.Node, Else node.Node) *If {
return &If{
FreeFloating: nil,
Cond: Cond,
Stmt: Stmt,
ElseIf: ElseIf,
Else: Else,
}
} | [
"func",
"NewIf",
"(",
"Cond",
"node",
".",
"Node",
",",
"Stmt",
"node",
".",
"Node",
",",
"ElseIf",
"[",
"]",
"node",
".",
"Node",
",",
"Else",
"node",
".",
"Node",
")",
"*",
"If",
"{",
"return",
"&",
"If",
"{",
"FreeFloating",
":",
"nil",
",",
"Cond",
":",
"Cond",
",",
"Stmt",
":",
"Stmt",
",",
"ElseIf",
":",
"ElseIf",
",",
"Else",
":",
"Else",
",",
"}",
"\n",
"}"
] | // NewIf node constructor | [
"NewIf",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_if.go#L21-L29 |
5,937 | z7zmey/php-parser | node/stmt/n_if.go | AddElseIf | func (n *If) AddElseIf(ElseIf node.Node) node.Node {
if n.ElseIf == nil {
n.ElseIf = make([]node.Node, 0)
}
n.ElseIf = append(n.ElseIf, ElseIf)
return n
} | go | func (n *If) AddElseIf(ElseIf node.Node) node.Node {
if n.ElseIf == nil {
n.ElseIf = make([]node.Node, 0)
}
n.ElseIf = append(n.ElseIf, ElseIf)
return n
} | [
"func",
"(",
"n",
"*",
"If",
")",
"AddElseIf",
"(",
"ElseIf",
"node",
".",
"Node",
")",
"node",
".",
"Node",
"{",
"if",
"n",
".",
"ElseIf",
"==",
"nil",
"{",
"n",
".",
"ElseIf",
"=",
"make",
"(",
"[",
"]",
"node",
".",
"Node",
",",
"0",
")",
"\n",
"}",
"\n\n",
"n",
".",
"ElseIf",
"=",
"append",
"(",
"n",
".",
"ElseIf",
",",
"ElseIf",
")",
"\n\n",
"return",
"n",
"\n",
"}"
] | // AddElseIf add ElseIf node and returns AltIf node | [
"AddElseIf",
"add",
"ElseIf",
"node",
"and",
"returns",
"AltIf",
"node"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_if.go#L51-L59 |
5,938 | z7zmey/php-parser | node/stmt/n_if.go | SetElse | func (n *If) SetElse(Else node.Node) node.Node {
n.Else = Else
return n
} | go | func (n *If) SetElse(Else node.Node) node.Node {
n.Else = Else
return n
} | [
"func",
"(",
"n",
"*",
"If",
")",
"SetElse",
"(",
"Else",
"node",
".",
"Node",
")",
"node",
".",
"Node",
"{",
"n",
".",
"Else",
"=",
"Else",
"\n\n",
"return",
"n",
"\n",
"}"
] | // SetElse set Else node and returns AltIf node | [
"SetElse",
"set",
"Else",
"node",
"and",
"returns",
"AltIf",
"node"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_if.go#L62-L66 |
5,939 | z7zmey/php-parser | node/stmt/n_trait.go | NewTrait | func NewTrait(TraitName node.Node, Stmts []node.Node, PhpDocComment string) *Trait {
return &Trait{
FreeFloating: nil,
PhpDocComment: PhpDocComment,
TraitName: TraitName,
Stmts: Stmts,
}
} | go | func NewTrait(TraitName node.Node, Stmts []node.Node, PhpDocComment string) *Trait {
return &Trait{
FreeFloating: nil,
PhpDocComment: PhpDocComment,
TraitName: TraitName,
Stmts: Stmts,
}
} | [
"func",
"NewTrait",
"(",
"TraitName",
"node",
".",
"Node",
",",
"Stmts",
"[",
"]",
"node",
".",
"Node",
",",
"PhpDocComment",
"string",
")",
"*",
"Trait",
"{",
"return",
"&",
"Trait",
"{",
"FreeFloating",
":",
"nil",
",",
"PhpDocComment",
":",
"PhpDocComment",
",",
"TraitName",
":",
"TraitName",
",",
"Stmts",
":",
"Stmts",
",",
"}",
"\n",
"}"
] | // NewTrait node constructor | [
"NewTrait",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_trait.go#L20-L27 |
5,940 | z7zmey/php-parser | node/expr/assign/n_div.go | NewDiv | func NewDiv(Variable node.Node, Expression node.Node) *Div {
return &Div{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | go | func NewDiv(Variable node.Node, Expression node.Node) *Div {
return &Div{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | [
"func",
"NewDiv",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"Div",
"{",
"return",
"&",
"Div",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"Expression",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewDiv node constructor | [
"NewDiv",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/assign/n_div.go#L19-L25 |
5,941 | z7zmey/php-parser | node/expr/binary/n_bitwise_or.go | NewBitwiseOr | func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
return &BitwiseOr{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewBitwiseOr(Variable node.Node, Expression node.Node) *BitwiseOr {
return &BitwiseOr{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewBitwiseOr",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"BitwiseOr",
"{",
"return",
"&",
"BitwiseOr",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewBitwiseOr node constructor | [
"NewBitwiseOr",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_bitwise_or.go#L19-L25 |
5,942 | z7zmey/php-parser | node/expr/binary/n_spaceship.go | NewSpaceship | func NewSpaceship(Variable node.Node, Expression node.Node) *Spaceship {
return &Spaceship{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewSpaceship(Variable node.Node, Expression node.Node) *Spaceship {
return &Spaceship{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewSpaceship",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"Spaceship",
"{",
"return",
"&",
"Spaceship",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewSpaceship node constructor | [
"NewSpaceship",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_spaceship.go#L19-L25 |
5,943 | z7zmey/php-parser | node/expr/n_short_list.go | NewShortList | func NewShortList(Items []node.Node) *ShortList {
return &ShortList{
FreeFloating: nil,
Items: Items,
}
} | go | func NewShortList(Items []node.Node) *ShortList {
return &ShortList{
FreeFloating: nil,
Items: Items,
}
} | [
"func",
"NewShortList",
"(",
"Items",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"ShortList",
"{",
"return",
"&",
"ShortList",
"{",
"FreeFloating",
":",
"nil",
",",
"Items",
":",
"Items",
",",
"}",
"\n",
"}"
] | // NewShortList node constructor | [
"NewShortList",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_short_list.go#L18-L23 |
5,944 | z7zmey/php-parser | node/stmt/n_throw.go | NewThrow | func NewThrow(Expr node.Node) *Throw {
return &Throw{
FreeFloating: nil,
Expr: Expr,
}
} | go | func NewThrow(Expr node.Node) *Throw {
return &Throw{
FreeFloating: nil,
Expr: Expr,
}
} | [
"func",
"NewThrow",
"(",
"Expr",
"node",
".",
"Node",
")",
"*",
"Throw",
"{",
"return",
"&",
"Throw",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewThrow node constructor | [
"NewThrow",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_throw.go#L18-L23 |
5,945 | z7zmey/php-parser | node/stmt/n_class_implements.go | NewClassImplements | func NewClassImplements(interfaceNames []node.Node) *ClassImplements {
return &ClassImplements{
FreeFloating: nil,
InterfaceNames: interfaceNames,
}
} | go | func NewClassImplements(interfaceNames []node.Node) *ClassImplements {
return &ClassImplements{
FreeFloating: nil,
InterfaceNames: interfaceNames,
}
} | [
"func",
"NewClassImplements",
"(",
"interfaceNames",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"ClassImplements",
"{",
"return",
"&",
"ClassImplements",
"{",
"FreeFloating",
":",
"nil",
",",
"InterfaceNames",
":",
"interfaceNames",
",",
"}",
"\n",
"}"
] | // NewClassImplements node constructor | [
"NewClassImplements",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_class_implements.go#L18-L23 |
5,946 | z7zmey/php-parser | node/stmt/n_property.go | NewProperty | func NewProperty(Variable node.Node, Expr node.Node, PhpDocComment string) *Property {
return &Property{
FreeFloating: nil,
PhpDocComment: PhpDocComment,
Variable: Variable,
Expr: Expr,
}
} | go | func NewProperty(Variable node.Node, Expr node.Node, PhpDocComment string) *Property {
return &Property{
FreeFloating: nil,
PhpDocComment: PhpDocComment,
Variable: Variable,
Expr: Expr,
}
} | [
"func",
"NewProperty",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expr",
"node",
".",
"Node",
",",
"PhpDocComment",
"string",
")",
"*",
"Property",
"{",
"return",
"&",
"Property",
"{",
"FreeFloating",
":",
"nil",
",",
"PhpDocComment",
":",
"PhpDocComment",
",",
"Variable",
":",
"Variable",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewProperty node constructor | [
"NewProperty",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_property.go#L20-L27 |
5,947 | z7zmey/php-parser | node/expr/binary/n_greater.go | NewGreater | func NewGreater(Variable node.Node, Expression node.Node) *Greater {
return &Greater{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewGreater(Variable node.Node, Expression node.Node) *Greater {
return &Greater{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewGreater",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"Greater",
"{",
"return",
"&",
"Greater",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewGreater node constructor | [
"NewGreater",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_greater.go#L19-L25 |
5,948 | z7zmey/php-parser | parser/position_builder.go | NewNodeListPosition | func (b *PositionBuilder) NewNodeListPosition(list []node.Node) *position.Position {
return &position.Position{
StartLine: b.getListStartPos(list).startLine,
EndLine: b.getListEndPos(list).endLine,
StartPos: b.getListStartPos(list).startPos,
EndPos: b.getListEndPos(list).endPos,
}
} | go | func (b *PositionBuilder) NewNodeListPosition(list []node.Node) *position.Position {
return &position.Position{
StartLine: b.getListStartPos(list).startLine,
EndLine: b.getListEndPos(list).endLine,
StartPos: b.getListStartPos(list).startPos,
EndPos: b.getListEndPos(list).endPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewNodeListPosition",
"(",
"list",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"b",
".",
"getListStartPos",
"(",
"list",
")",
".",
"startLine",
",",
"EndLine",
":",
"b",
".",
"getListEndPos",
"(",
"list",
")",
".",
"endLine",
",",
"StartPos",
":",
"b",
".",
"getListStartPos",
"(",
"list",
")",
".",
"startPos",
",",
"EndPos",
":",
"b",
".",
"getListEndPos",
"(",
"list",
")",
".",
"endPos",
",",
"}",
"\n",
"}"
] | // NewNodeListPosition returns new Position | [
"NewNodeListPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L81-L88 |
5,949 | z7zmey/php-parser | parser/position_builder.go | NewNodePosition | func (b *PositionBuilder) NewNodePosition(n node.Node) *position.Position {
return &position.Position{
StartLine: b.getNodeStartPos(n).startLine,
EndLine: b.getNodeEndPos(n).endLine,
StartPos: b.getNodeStartPos(n).startPos,
EndPos: b.getNodeEndPos(n).endPos,
}
} | go | func (b *PositionBuilder) NewNodePosition(n node.Node) *position.Position {
return &position.Position{
StartLine: b.getNodeStartPos(n).startLine,
EndLine: b.getNodeEndPos(n).endLine,
StartPos: b.getNodeStartPos(n).startPos,
EndPos: b.getNodeEndPos(n).endPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewNodePosition",
"(",
"n",
"node",
".",
"Node",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"b",
".",
"getNodeStartPos",
"(",
"n",
")",
".",
"startLine",
",",
"EndLine",
":",
"b",
".",
"getNodeEndPos",
"(",
"n",
")",
".",
"endLine",
",",
"StartPos",
":",
"b",
".",
"getNodeStartPos",
"(",
"n",
")",
".",
"startPos",
",",
"EndPos",
":",
"b",
".",
"getNodeEndPos",
"(",
"n",
")",
".",
"endPos",
",",
"}",
"\n",
"}"
] | // NewNodePosition returns new Position | [
"NewNodePosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L91-L98 |
5,950 | z7zmey/php-parser | parser/position_builder.go | NewTokenPosition | func (b *PositionBuilder) NewTokenPosition(t *scanner.Token) *position.Position {
return &position.Position{
StartLine: t.StartLine,
EndLine: t.EndLine,
StartPos: t.StartPos,
EndPos: t.EndPos,
}
} | go | func (b *PositionBuilder) NewTokenPosition(t *scanner.Token) *position.Position {
return &position.Position{
StartLine: t.StartLine,
EndLine: t.EndLine,
StartPos: t.StartPos,
EndPos: t.EndPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewTokenPosition",
"(",
"t",
"*",
"scanner",
".",
"Token",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"t",
".",
"StartLine",
",",
"EndLine",
":",
"t",
".",
"EndLine",
",",
"StartPos",
":",
"t",
".",
"StartPos",
",",
"EndPos",
":",
"t",
".",
"EndPos",
",",
"}",
"\n",
"}"
] | // NewTokenPosition returns new Position | [
"NewTokenPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L101-L108 |
5,951 | z7zmey/php-parser | parser/position_builder.go | NewTokensPosition | func (b *PositionBuilder) NewTokensPosition(startToken *scanner.Token, endToken *scanner.Token) *position.Position {
return &position.Position{
StartLine: startToken.StartLine,
EndLine: endToken.EndLine,
StartPos: startToken.StartPos,
EndPos: endToken.EndPos,
}
} | go | func (b *PositionBuilder) NewTokensPosition(startToken *scanner.Token, endToken *scanner.Token) *position.Position {
return &position.Position{
StartLine: startToken.StartLine,
EndLine: endToken.EndLine,
StartPos: startToken.StartPos,
EndPos: endToken.EndPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewTokensPosition",
"(",
"startToken",
"*",
"scanner",
".",
"Token",
",",
"endToken",
"*",
"scanner",
".",
"Token",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"startToken",
".",
"StartLine",
",",
"EndLine",
":",
"endToken",
".",
"EndLine",
",",
"StartPos",
":",
"startToken",
".",
"StartPos",
",",
"EndPos",
":",
"endToken",
".",
"EndPos",
",",
"}",
"\n",
"}"
] | // NewTokensPosition returns new Position | [
"NewTokensPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L111-L118 |
5,952 | z7zmey/php-parser | parser/position_builder.go | NewTokenNodePosition | func (b *PositionBuilder) NewTokenNodePosition(t *scanner.Token, n node.Node) *position.Position {
return &position.Position{
StartLine: t.StartLine,
EndLine: b.getNodeEndPos(n).endLine,
StartPos: t.StartPos,
EndPos: b.getNodeEndPos(n).endPos,
}
} | go | func (b *PositionBuilder) NewTokenNodePosition(t *scanner.Token, n node.Node) *position.Position {
return &position.Position{
StartLine: t.StartLine,
EndLine: b.getNodeEndPos(n).endLine,
StartPos: t.StartPos,
EndPos: b.getNodeEndPos(n).endPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewTokenNodePosition",
"(",
"t",
"*",
"scanner",
".",
"Token",
",",
"n",
"node",
".",
"Node",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"t",
".",
"StartLine",
",",
"EndLine",
":",
"b",
".",
"getNodeEndPos",
"(",
"n",
")",
".",
"endLine",
",",
"StartPos",
":",
"t",
".",
"StartPos",
",",
"EndPos",
":",
"b",
".",
"getNodeEndPos",
"(",
"n",
")",
".",
"endPos",
",",
"}",
"\n",
"}"
] | // NewTokenNodePosition returns new Position | [
"NewTokenNodePosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L121-L128 |
5,953 | z7zmey/php-parser | parser/position_builder.go | NewNodeTokenPosition | func (b *PositionBuilder) NewNodeTokenPosition(n node.Node, t *scanner.Token) *position.Position {
return &position.Position{
StartLine: b.getNodeStartPos(n).startLine,
EndLine: t.EndLine,
StartPos: b.getNodeStartPos(n).startPos,
EndPos: t.EndPos,
}
} | go | func (b *PositionBuilder) NewNodeTokenPosition(n node.Node, t *scanner.Token) *position.Position {
return &position.Position{
StartLine: b.getNodeStartPos(n).startLine,
EndLine: t.EndLine,
StartPos: b.getNodeStartPos(n).startPos,
EndPos: t.EndPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewNodeTokenPosition",
"(",
"n",
"node",
".",
"Node",
",",
"t",
"*",
"scanner",
".",
"Token",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"b",
".",
"getNodeStartPos",
"(",
"n",
")",
".",
"startLine",
",",
"EndLine",
":",
"t",
".",
"EndLine",
",",
"StartPos",
":",
"b",
".",
"getNodeStartPos",
"(",
"n",
")",
".",
"startPos",
",",
"EndPos",
":",
"t",
".",
"EndPos",
",",
"}",
"\n",
"}"
] | // NewNodeTokenPosition returns new Position | [
"NewNodeTokenPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L131-L138 |
5,954 | z7zmey/php-parser | parser/position_builder.go | NewNodesPosition | func (b *PositionBuilder) NewNodesPosition(startNode node.Node, endNode node.Node) *position.Position {
return &position.Position{
StartLine: b.getNodeStartPos(startNode).startLine,
EndLine: b.getNodeEndPos(endNode).endLine,
StartPos: b.getNodeStartPos(startNode).startPos,
EndPos: b.getNodeEndPos(endNode).endPos,
}
} | go | func (b *PositionBuilder) NewNodesPosition(startNode node.Node, endNode node.Node) *position.Position {
return &position.Position{
StartLine: b.getNodeStartPos(startNode).startLine,
EndLine: b.getNodeEndPos(endNode).endLine,
StartPos: b.getNodeStartPos(startNode).startPos,
EndPos: b.getNodeEndPos(endNode).endPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewNodesPosition",
"(",
"startNode",
"node",
".",
"Node",
",",
"endNode",
"node",
".",
"Node",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"b",
".",
"getNodeStartPos",
"(",
"startNode",
")",
".",
"startLine",
",",
"EndLine",
":",
"b",
".",
"getNodeEndPos",
"(",
"endNode",
")",
".",
"endLine",
",",
"StartPos",
":",
"b",
".",
"getNodeStartPos",
"(",
"startNode",
")",
".",
"startPos",
",",
"EndPos",
":",
"b",
".",
"getNodeEndPos",
"(",
"endNode",
")",
".",
"endPos",
",",
"}",
"\n",
"}"
] | // NewNodesPosition returns new Position | [
"NewNodesPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L141-L148 |
5,955 | z7zmey/php-parser | parser/position_builder.go | NewNodeListTokenPosition | func (b *PositionBuilder) NewNodeListTokenPosition(list []node.Node, t *scanner.Token) *position.Position {
return &position.Position{
StartLine: b.getListStartPos(list).startLine,
EndLine: t.EndLine,
StartPos: b.getListStartPos(list).startPos,
EndPos: t.EndPos,
}
} | go | func (b *PositionBuilder) NewNodeListTokenPosition(list []node.Node, t *scanner.Token) *position.Position {
return &position.Position{
StartLine: b.getListStartPos(list).startLine,
EndLine: t.EndLine,
StartPos: b.getListStartPos(list).startPos,
EndPos: t.EndPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewNodeListTokenPosition",
"(",
"list",
"[",
"]",
"node",
".",
"Node",
",",
"t",
"*",
"scanner",
".",
"Token",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"b",
".",
"getListStartPos",
"(",
"list",
")",
".",
"startLine",
",",
"EndLine",
":",
"t",
".",
"EndLine",
",",
"StartPos",
":",
"b",
".",
"getListStartPos",
"(",
"list",
")",
".",
"startPos",
",",
"EndPos",
":",
"t",
".",
"EndPos",
",",
"}",
"\n",
"}"
] | // NewNodeListTokenPosition returns new Position | [
"NewNodeListTokenPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L151-L158 |
5,956 | z7zmey/php-parser | parser/position_builder.go | NewTokenNodeListPosition | func (b *PositionBuilder) NewTokenNodeListPosition(t *scanner.Token, list []node.Node) *position.Position {
return &position.Position{
StartLine: t.StartLine,
EndLine: b.getListEndPos(list).endLine,
StartPos: t.StartPos,
EndPos: b.getListEndPos(list).endPos,
}
} | go | func (b *PositionBuilder) NewTokenNodeListPosition(t *scanner.Token, list []node.Node) *position.Position {
return &position.Position{
StartLine: t.StartLine,
EndLine: b.getListEndPos(list).endLine,
StartPos: t.StartPos,
EndPos: b.getListEndPos(list).endPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewTokenNodeListPosition",
"(",
"t",
"*",
"scanner",
".",
"Token",
",",
"list",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"t",
".",
"StartLine",
",",
"EndLine",
":",
"b",
".",
"getListEndPos",
"(",
"list",
")",
".",
"endLine",
",",
"StartPos",
":",
"t",
".",
"StartPos",
",",
"EndPos",
":",
"b",
".",
"getListEndPos",
"(",
"list",
")",
".",
"endPos",
",",
"}",
"\n",
"}"
] | // NewTokenNodeListPosition returns new Position | [
"NewTokenNodeListPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L161-L168 |
5,957 | z7zmey/php-parser | parser/position_builder.go | NewNodeNodeListPosition | func (b *PositionBuilder) NewNodeNodeListPosition(n node.Node, list []node.Node) *position.Position {
return &position.Position{
StartLine: b.getNodeStartPos(n).startLine,
EndLine: b.getListEndPos(list).endLine,
StartPos: b.getNodeStartPos(n).startPos,
EndPos: b.getListEndPos(list).endPos,
}
} | go | func (b *PositionBuilder) NewNodeNodeListPosition(n node.Node, list []node.Node) *position.Position {
return &position.Position{
StartLine: b.getNodeStartPos(n).startLine,
EndLine: b.getListEndPos(list).endLine,
StartPos: b.getNodeStartPos(n).startPos,
EndPos: b.getListEndPos(list).endPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewNodeNodeListPosition",
"(",
"n",
"node",
".",
"Node",
",",
"list",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"b",
".",
"getNodeStartPos",
"(",
"n",
")",
".",
"startLine",
",",
"EndLine",
":",
"b",
".",
"getListEndPos",
"(",
"list",
")",
".",
"endLine",
",",
"StartPos",
":",
"b",
".",
"getNodeStartPos",
"(",
"n",
")",
".",
"startPos",
",",
"EndPos",
":",
"b",
".",
"getListEndPos",
"(",
"list",
")",
".",
"endPos",
",",
"}",
"\n",
"}"
] | // NewNodeNodeListPosition returns new Position | [
"NewNodeNodeListPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L171-L178 |
5,958 | z7zmey/php-parser | parser/position_builder.go | NewNodeListNodePosition | func (b *PositionBuilder) NewNodeListNodePosition(list []node.Node, n node.Node) *position.Position {
return &position.Position{
StartLine: b.getListStartPos(list).startLine,
EndLine: b.getNodeEndPos(n).endLine,
StartPos: b.getListStartPos(list).startPos,
EndPos: b.getNodeEndPos(n).endPos,
}
} | go | func (b *PositionBuilder) NewNodeListNodePosition(list []node.Node, n node.Node) *position.Position {
return &position.Position{
StartLine: b.getListStartPos(list).startLine,
EndLine: b.getNodeEndPos(n).endLine,
StartPos: b.getListStartPos(list).startPos,
EndPos: b.getNodeEndPos(n).endPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewNodeListNodePosition",
"(",
"list",
"[",
"]",
"node",
".",
"Node",
",",
"n",
"node",
".",
"Node",
")",
"*",
"position",
".",
"Position",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"b",
".",
"getListStartPos",
"(",
"list",
")",
".",
"startLine",
",",
"EndLine",
":",
"b",
".",
"getNodeEndPos",
"(",
"n",
")",
".",
"endLine",
",",
"StartPos",
":",
"b",
".",
"getListStartPos",
"(",
"list",
")",
".",
"startPos",
",",
"EndPos",
":",
"b",
".",
"getNodeEndPos",
"(",
"n",
")",
".",
"endPos",
",",
"}",
"\n",
"}"
] | // NewNodeListNodePosition returns new Position | [
"NewNodeListNodePosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L181-L188 |
5,959 | z7zmey/php-parser | parser/position_builder.go | NewOptionalListTokensPosition | func (b *PositionBuilder) NewOptionalListTokensPosition(list []node.Node, t *scanner.Token, endToken *scanner.Token) *position.Position {
if list == nil {
return &position.Position{
StartLine: t.StartLine,
EndLine: endToken.EndLine,
StartPos: t.StartPos,
EndPos: endToken.EndPos,
}
}
return &position.Position{
StartLine: b.getListStartPos(list).startLine,
EndLine: endToken.EndLine,
StartPos: b.getListStartPos(list).startPos,
EndPos: endToken.EndPos,
}
} | go | func (b *PositionBuilder) NewOptionalListTokensPosition(list []node.Node, t *scanner.Token, endToken *scanner.Token) *position.Position {
if list == nil {
return &position.Position{
StartLine: t.StartLine,
EndLine: endToken.EndLine,
StartPos: t.StartPos,
EndPos: endToken.EndPos,
}
}
return &position.Position{
StartLine: b.getListStartPos(list).startLine,
EndLine: endToken.EndLine,
StartPos: b.getListStartPos(list).startPos,
EndPos: endToken.EndPos,
}
} | [
"func",
"(",
"b",
"*",
"PositionBuilder",
")",
"NewOptionalListTokensPosition",
"(",
"list",
"[",
"]",
"node",
".",
"Node",
",",
"t",
"*",
"scanner",
".",
"Token",
",",
"endToken",
"*",
"scanner",
".",
"Token",
")",
"*",
"position",
".",
"Position",
"{",
"if",
"list",
"==",
"nil",
"{",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"t",
".",
"StartLine",
",",
"EndLine",
":",
"endToken",
".",
"EndLine",
",",
"StartPos",
":",
"t",
".",
"StartPos",
",",
"EndPos",
":",
"endToken",
".",
"EndPos",
",",
"}",
"\n",
"}",
"\n\n",
"return",
"&",
"position",
".",
"Position",
"{",
"StartLine",
":",
"b",
".",
"getListStartPos",
"(",
"list",
")",
".",
"startLine",
",",
"EndLine",
":",
"endToken",
".",
"EndLine",
",",
"StartPos",
":",
"b",
".",
"getListStartPos",
"(",
"list",
")",
".",
"startPos",
",",
"EndPos",
":",
"endToken",
".",
"EndPos",
",",
"}",
"\n",
"}"
] | // NewOptionalListTokensPosition returns new Position | [
"NewOptionalListTokensPosition",
"returns",
"new",
"Position"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/parser/position_builder.go#L191-L207 |
5,960 | z7zmey/php-parser | node/stmt/n_static_var.go | NewStaticVar | func NewStaticVar(Variable node.Node, Expr node.Node) *StaticVar {
return &StaticVar{
FreeFloating: nil,
Variable: Variable,
Expr: Expr,
}
} | go | func NewStaticVar(Variable node.Node, Expr node.Node) *StaticVar {
return &StaticVar{
FreeFloating: nil,
Variable: Variable,
Expr: Expr,
}
} | [
"func",
"NewStaticVar",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expr",
"node",
".",
"Node",
")",
"*",
"StaticVar",
"{",
"return",
"&",
"StaticVar",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewStaticVar node constructor | [
"NewStaticVar",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_static_var.go#L19-L25 |
5,961 | z7zmey/php-parser | node/expr/cast/n_cast_object.go | NewObject | func NewObject(Expr node.Node) *Object {
return &Object{
FreeFloating: nil,
Expr: Expr,
}
} | go | func NewObject(Expr node.Node) *Object {
return &Object{
FreeFloating: nil,
Expr: Expr,
}
} | [
"func",
"NewObject",
"(",
"Expr",
"node",
".",
"Node",
")",
"*",
"Object",
"{",
"return",
"&",
"Object",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewObject node constructor | [
"NewObject",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/cast/n_cast_object.go#L18-L23 |
5,962 | z7zmey/php-parser | node/expr/assign/n_pow.go | NewPow | func NewPow(Variable node.Node, Expression node.Node) *Pow {
return &Pow{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | go | func NewPow(Variable node.Node, Expression node.Node) *Pow {
return &Pow{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | [
"func",
"NewPow",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"Pow",
"{",
"return",
"&",
"Pow",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"Expression",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewPow node constructor | [
"NewPow",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/assign/n_pow.go#L19-L25 |
5,963 | z7zmey/php-parser | node/stmt/n_trait_adaptation_list.go | NewTraitAdaptationList | func NewTraitAdaptationList(Adaptations []node.Node) *TraitAdaptationList {
return &TraitAdaptationList{
FreeFloating: nil,
Adaptations: Adaptations,
}
} | go | func NewTraitAdaptationList(Adaptations []node.Node) *TraitAdaptationList {
return &TraitAdaptationList{
FreeFloating: nil,
Adaptations: Adaptations,
}
} | [
"func",
"NewTraitAdaptationList",
"(",
"Adaptations",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"TraitAdaptationList",
"{",
"return",
"&",
"TraitAdaptationList",
"{",
"FreeFloating",
":",
"nil",
",",
"Adaptations",
":",
"Adaptations",
",",
"}",
"\n",
"}"
] | // NewTraitAdaptationList node constructor | [
"NewTraitAdaptationList",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_trait_adaptation_list.go#L18-L23 |
5,964 | z7zmey/php-parser | node/expr/binary/n_shift_right.go | NewShiftRight | func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
return &ShiftRight{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewShiftRight(Variable node.Node, Expression node.Node) *ShiftRight {
return &ShiftRight{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewShiftRight",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"ShiftRight",
"{",
"return",
"&",
"ShiftRight",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewShiftRight node constructor | [
"NewShiftRight",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_shift_right.go#L19-L25 |
5,965 | z7zmey/php-parser | node/stmt/n_alt_else.go | NewAltElse | func NewAltElse(Stmt node.Node) *AltElse {
return &AltElse{
FreeFloating: nil,
Stmt: Stmt,
}
} | go | func NewAltElse(Stmt node.Node) *AltElse {
return &AltElse{
FreeFloating: nil,
Stmt: Stmt,
}
} | [
"func",
"NewAltElse",
"(",
"Stmt",
"node",
".",
"Node",
")",
"*",
"AltElse",
"{",
"return",
"&",
"AltElse",
"{",
"FreeFloating",
":",
"nil",
",",
"Stmt",
":",
"Stmt",
",",
"}",
"\n",
"}"
] | // NewAltElse node constructor | [
"NewAltElse",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_alt_else.go#L18-L23 |
5,966 | z7zmey/php-parser | node/expr/binary/n_not_identical.go | NewNotIdentical | func NewNotIdentical(Variable node.Node, Expression node.Node) *NotIdentical {
return &NotIdentical{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewNotIdentical(Variable node.Node, Expression node.Node) *NotIdentical {
return &NotIdentical{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewNotIdentical",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"NotIdentical",
"{",
"return",
"&",
"NotIdentical",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewNotIdentical node constructor | [
"NewNotIdentical",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_not_identical.go#L19-L25 |
5,967 | z7zmey/php-parser | node/stmt/n_interface_extends.go | NewInterfaceExtends | func NewInterfaceExtends(InterfaceNames []node.Node) *InterfaceExtends {
return &InterfaceExtends{
FreeFloating: nil,
InterfaceNames: InterfaceNames,
}
} | go | func NewInterfaceExtends(InterfaceNames []node.Node) *InterfaceExtends {
return &InterfaceExtends{
FreeFloating: nil,
InterfaceNames: InterfaceNames,
}
} | [
"func",
"NewInterfaceExtends",
"(",
"InterfaceNames",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"InterfaceExtends",
"{",
"return",
"&",
"InterfaceExtends",
"{",
"FreeFloating",
":",
"nil",
",",
"InterfaceNames",
":",
"InterfaceNames",
",",
"}",
"\n",
"}"
] | // NewInterfaceExtends node constructor | [
"NewInterfaceExtends",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_interface_extends.go#L18-L23 |
5,968 | z7zmey/php-parser | node/expr/cast/n_cast_string.go | NewString | func NewString(Expr node.Node) *String {
return &String{
FreeFloating: nil,
Expr: Expr,
}
} | go | func NewString(Expr node.Node) *String {
return &String{
FreeFloating: nil,
Expr: Expr,
}
} | [
"func",
"NewString",
"(",
"Expr",
"node",
".",
"Node",
")",
"*",
"String",
"{",
"return",
"&",
"String",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewString node constructor | [
"NewString",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/cast/n_cast_string.go#L18-L23 |
5,969 | z7zmey/php-parser | node/stmt/n_try.go | NewTry | func NewTry(Stmts []node.Node, Catches []node.Node, Finally node.Node) *Try {
return &Try{
FreeFloating: nil,
Stmts: Stmts,
Catches: Catches,
Finally: Finally,
}
} | go | func NewTry(Stmts []node.Node, Catches []node.Node, Finally node.Node) *Try {
return &Try{
FreeFloating: nil,
Stmts: Stmts,
Catches: Catches,
Finally: Finally,
}
} | [
"func",
"NewTry",
"(",
"Stmts",
"[",
"]",
"node",
".",
"Node",
",",
"Catches",
"[",
"]",
"node",
".",
"Node",
",",
"Finally",
"node",
".",
"Node",
")",
"*",
"Try",
"{",
"return",
"&",
"Try",
"{",
"FreeFloating",
":",
"nil",
",",
"Stmts",
":",
"Stmts",
",",
"Catches",
":",
"Catches",
",",
"Finally",
":",
"Finally",
",",
"}",
"\n",
"}"
] | // NewTry node constructor | [
"NewTry",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_try.go#L20-L27 |
5,970 | z7zmey/php-parser | node/expr/n_include.go | NewInclude | func NewInclude(Expression node.Node) *Include {
return &Include{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewInclude(Expression node.Node) *Include {
return &Include{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewInclude",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"Include",
"{",
"return",
"&",
"Include",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewInclude node constructor | [
"NewInclude",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_include.go#L18-L23 |
5,971 | z7zmey/php-parser | errors/error.go | NewError | func NewError(msg string, p *position.Position) *Error {
return &Error{
Msg: msg,
Pos: p,
}
} | go | func NewError(msg string, p *position.Position) *Error {
return &Error{
Msg: msg,
Pos: p,
}
} | [
"func",
"NewError",
"(",
"msg",
"string",
",",
"p",
"*",
"position",
".",
"Position",
")",
"*",
"Error",
"{",
"return",
"&",
"Error",
"{",
"Msg",
":",
"msg",
",",
"Pos",
":",
"p",
",",
"}",
"\n",
"}"
] | // NewError creates and returns new Error | [
"NewError",
"creates",
"and",
"returns",
"new",
"Error"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/errors/error.go#L16-L21 |
5,972 | z7zmey/php-parser | node/expr/n_array_item.go | NewArrayItem | func NewArrayItem(Key node.Node, Val node.Node) *ArrayItem {
return &ArrayItem{
FreeFloating: nil,
Key: Key,
Val: Val,
}
} | go | func NewArrayItem(Key node.Node, Val node.Node) *ArrayItem {
return &ArrayItem{
FreeFloating: nil,
Key: Key,
Val: Val,
}
} | [
"func",
"NewArrayItem",
"(",
"Key",
"node",
".",
"Node",
",",
"Val",
"node",
".",
"Node",
")",
"*",
"ArrayItem",
"{",
"return",
"&",
"ArrayItem",
"{",
"FreeFloating",
":",
"nil",
",",
"Key",
":",
"Key",
",",
"Val",
":",
"Val",
",",
"}",
"\n",
"}"
] | // NewArrayItem node constructor | [
"NewArrayItem",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_array_item.go#L19-L25 |
5,973 | z7zmey/php-parser | node/stmt/n_default.go | NewDefault | func NewDefault(Stmts []node.Node) *Default {
return &Default{
FreeFloating: nil,
Stmts: Stmts,
}
} | go | func NewDefault(Stmts []node.Node) *Default {
return &Default{
FreeFloating: nil,
Stmts: Stmts,
}
} | [
"func",
"NewDefault",
"(",
"Stmts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Default",
"{",
"return",
"&",
"Default",
"{",
"FreeFloating",
":",
"nil",
",",
"Stmts",
":",
"Stmts",
",",
"}",
"\n",
"}"
] | // NewDefault node constructor | [
"NewDefault",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_default.go#L18-L23 |
5,974 | z7zmey/php-parser | node/expr/n_const_fetch.go | NewConstFetch | func NewConstFetch(Constant node.Node) *ConstFetch {
return &ConstFetch{
FreeFloating: nil,
Constant: Constant,
}
} | go | func NewConstFetch(Constant node.Node) *ConstFetch {
return &ConstFetch{
FreeFloating: nil,
Constant: Constant,
}
} | [
"func",
"NewConstFetch",
"(",
"Constant",
"node",
".",
"Node",
")",
"*",
"ConstFetch",
"{",
"return",
"&",
"ConstFetch",
"{",
"FreeFloating",
":",
"nil",
",",
"Constant",
":",
"Constant",
",",
"}",
"\n",
"}"
] | // NewConstFetch node constructor | [
"NewConstFetch",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_const_fetch.go#L18-L23 |
5,975 | z7zmey/php-parser | node/expr/n_isset.go | NewIsset | func NewIsset(Variables []node.Node) *Isset {
return &Isset{
FreeFloating: nil,
Variables: Variables,
}
} | go | func NewIsset(Variables []node.Node) *Isset {
return &Isset{
FreeFloating: nil,
Variables: Variables,
}
} | [
"func",
"NewIsset",
"(",
"Variables",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Isset",
"{",
"return",
"&",
"Isset",
"{",
"FreeFloating",
":",
"nil",
",",
"Variables",
":",
"Variables",
",",
"}",
"\n",
"}"
] | // NewIsset node constructor | [
"NewIsset",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_isset.go#L18-L23 |
5,976 | z7zmey/php-parser | node/scalar/node_encapsed.go | NewEncapsed | func NewEncapsed(Parts []node.Node) *Encapsed {
return &Encapsed{
FreeFloating: nil,
Parts: Parts,
}
} | go | func NewEncapsed(Parts []node.Node) *Encapsed {
return &Encapsed{
FreeFloating: nil,
Parts: Parts,
}
} | [
"func",
"NewEncapsed",
"(",
"Parts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Encapsed",
"{",
"return",
"&",
"Encapsed",
"{",
"FreeFloating",
":",
"nil",
",",
"Parts",
":",
"Parts",
",",
"}",
"\n",
"}"
] | // NewEncapsed node constructor | [
"NewEncapsed",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/scalar/node_encapsed.go#L18-L23 |
5,977 | z7zmey/php-parser | node/stmt/n_alt_for.go | NewAltFor | func NewAltFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *AltFor {
return &AltFor{
FreeFloating: nil,
Init: Init,
Cond: Cond,
Loop: Loop,
Stmt: Stmt,
}
} | go | func NewAltFor(Init []node.Node, Cond []node.Node, Loop []node.Node, Stmt node.Node) *AltFor {
return &AltFor{
FreeFloating: nil,
Init: Init,
Cond: Cond,
Loop: Loop,
Stmt: Stmt,
}
} | [
"func",
"NewAltFor",
"(",
"Init",
"[",
"]",
"node",
".",
"Node",
",",
"Cond",
"[",
"]",
"node",
".",
"Node",
",",
"Loop",
"[",
"]",
"node",
".",
"Node",
",",
"Stmt",
"node",
".",
"Node",
")",
"*",
"AltFor",
"{",
"return",
"&",
"AltFor",
"{",
"FreeFloating",
":",
"nil",
",",
"Init",
":",
"Init",
",",
"Cond",
":",
"Cond",
",",
"Loop",
":",
"Loop",
",",
"Stmt",
":",
"Stmt",
",",
"}",
"\n",
"}"
] | // NewAltFor node constructor | [
"NewAltFor",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_alt_for.go#L21-L29 |
5,978 | z7zmey/php-parser | node/stmt/n_property_list.go | NewPropertyList | func NewPropertyList(Modifiers []node.Node, Properties []node.Node) *PropertyList {
return &PropertyList{
FreeFloating: nil,
Modifiers: Modifiers,
Properties: Properties,
}
} | go | func NewPropertyList(Modifiers []node.Node, Properties []node.Node) *PropertyList {
return &PropertyList{
FreeFloating: nil,
Modifiers: Modifiers,
Properties: Properties,
}
} | [
"func",
"NewPropertyList",
"(",
"Modifiers",
"[",
"]",
"node",
".",
"Node",
",",
"Properties",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"PropertyList",
"{",
"return",
"&",
"PropertyList",
"{",
"FreeFloating",
":",
"nil",
",",
"Modifiers",
":",
"Modifiers",
",",
"Properties",
":",
"Properties",
",",
"}",
"\n",
"}"
] | // NewPropertyList node constructor | [
"NewPropertyList",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_property_list.go#L19-L25 |
5,979 | z7zmey/php-parser | node/expr/n_yield_from.go | NewYieldFrom | func NewYieldFrom(Expression node.Node) *YieldFrom {
return &YieldFrom{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewYieldFrom(Expression node.Node) *YieldFrom {
return &YieldFrom{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewYieldFrom",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"YieldFrom",
"{",
"return",
"&",
"YieldFrom",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewYieldFrom node constructor | [
"NewYieldFrom",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_yield_from.go#L18-L23 |
5,980 | z7zmey/php-parser | node/stmt/n_return.go | NewReturn | func NewReturn(Expr node.Node) *Return {
return &Return{
FreeFloating: nil,
Expr: Expr,
}
} | go | func NewReturn(Expr node.Node) *Return {
return &Return{
FreeFloating: nil,
Expr: Expr,
}
} | [
"func",
"NewReturn",
"(",
"Expr",
"node",
".",
"Node",
")",
"*",
"Return",
"{",
"return",
"&",
"Return",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expr",
",",
"}",
"\n",
"}"
] | // NewReturn node constructor | [
"NewReturn",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_return.go#L18-L23 |
5,981 | z7zmey/php-parser | node/stmt/n_trait_use.go | NewTraitUse | func NewTraitUse(Traits []node.Node, InnerAdaptationList node.Node) *TraitUse {
return &TraitUse{
FreeFloating: nil,
Traits: Traits,
TraitAdaptationList: InnerAdaptationList,
}
} | go | func NewTraitUse(Traits []node.Node, InnerAdaptationList node.Node) *TraitUse {
return &TraitUse{
FreeFloating: nil,
Traits: Traits,
TraitAdaptationList: InnerAdaptationList,
}
} | [
"func",
"NewTraitUse",
"(",
"Traits",
"[",
"]",
"node",
".",
"Node",
",",
"InnerAdaptationList",
"node",
".",
"Node",
")",
"*",
"TraitUse",
"{",
"return",
"&",
"TraitUse",
"{",
"FreeFloating",
":",
"nil",
",",
"Traits",
":",
"Traits",
",",
"TraitAdaptationList",
":",
"InnerAdaptationList",
",",
"}",
"\n",
"}"
] | // NewTraitUse node constructor | [
"NewTraitUse",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_trait_use.go#L19-L25 |
5,982 | z7zmey/php-parser | node/stmt/n_interface.go | NewInterface | func NewInterface(InterfaceName node.Node, Extends *InterfaceExtends, Stmts []node.Node, PhpDocComment string) *Interface {
return &Interface{
FreeFloating: nil,
PhpDocComment: PhpDocComment,
InterfaceName: InterfaceName,
Extends: Extends,
Stmts: Stmts,
}
} | go | func NewInterface(InterfaceName node.Node, Extends *InterfaceExtends, Stmts []node.Node, PhpDocComment string) *Interface {
return &Interface{
FreeFloating: nil,
PhpDocComment: PhpDocComment,
InterfaceName: InterfaceName,
Extends: Extends,
Stmts: Stmts,
}
} | [
"func",
"NewInterface",
"(",
"InterfaceName",
"node",
".",
"Node",
",",
"Extends",
"*",
"InterfaceExtends",
",",
"Stmts",
"[",
"]",
"node",
".",
"Node",
",",
"PhpDocComment",
"string",
")",
"*",
"Interface",
"{",
"return",
"&",
"Interface",
"{",
"FreeFloating",
":",
"nil",
",",
"PhpDocComment",
":",
"PhpDocComment",
",",
"InterfaceName",
":",
"InterfaceName",
",",
"Extends",
":",
"Extends",
",",
"Stmts",
":",
"Stmts",
",",
"}",
"\n",
"}"
] | // NewInterface node constructor | [
"NewInterface",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_interface.go#L21-L29 |
5,983 | z7zmey/php-parser | node/expr/n_class_const_fetch.go | NewClassConstFetch | func NewClassConstFetch(Class node.Node, ConstantName node.Node) *ClassConstFetch {
return &ClassConstFetch{
FreeFloating: nil,
Class: Class,
ConstantName: ConstantName,
}
} | go | func NewClassConstFetch(Class node.Node, ConstantName node.Node) *ClassConstFetch {
return &ClassConstFetch{
FreeFloating: nil,
Class: Class,
ConstantName: ConstantName,
}
} | [
"func",
"NewClassConstFetch",
"(",
"Class",
"node",
".",
"Node",
",",
"ConstantName",
"node",
".",
"Node",
")",
"*",
"ClassConstFetch",
"{",
"return",
"&",
"ClassConstFetch",
"{",
"FreeFloating",
":",
"nil",
",",
"Class",
":",
"Class",
",",
"ConstantName",
":",
"ConstantName",
",",
"}",
"\n",
"}"
] | // NewClassConstFetch node constructor | [
"NewClassConstFetch",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_class_const_fetch.go#L19-L25 |
5,984 | z7zmey/php-parser | node/stmt/n_echo.go | NewEcho | func NewEcho(Exprs []node.Node) *Echo {
return &Echo{
FreeFloating: nil,
Exprs: Exprs,
}
} | go | func NewEcho(Exprs []node.Node) *Echo {
return &Echo{
FreeFloating: nil,
Exprs: Exprs,
}
} | [
"func",
"NewEcho",
"(",
"Exprs",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Echo",
"{",
"return",
"&",
"Echo",
"{",
"FreeFloating",
":",
"nil",
",",
"Exprs",
":",
"Exprs",
",",
"}",
"\n",
"}"
] | // NewEcho node constructor | [
"NewEcho",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_echo.go#L18-L23 |
5,985 | z7zmey/php-parser | node/expr/n_unary_minus.go | NewUnaryMinus | func NewUnaryMinus(Expression node.Node) *UnaryMinus {
return &UnaryMinus{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewUnaryMinus(Expression node.Node) *UnaryMinus {
return &UnaryMinus{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewUnaryMinus",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"UnaryMinus",
"{",
"return",
"&",
"UnaryMinus",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewUnaryMinus node constructor | [
"NewUnaryMinus",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_unary_minus.go#L18-L23 |
5,986 | z7zmey/php-parser | node/expr/assign/n_assign.go | NewAssign | func NewAssign(Variable node.Node, Expression node.Node) *Assign {
return &Assign{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | go | func NewAssign(Variable node.Node, Expression node.Node) *Assign {
return &Assign{
FreeFloating: nil,
Variable: Variable,
Expression: Expression,
}
} | [
"func",
"NewAssign",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"Assign",
"{",
"return",
"&",
"Assign",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"Expression",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewAssign node constructor | [
"NewAssign",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/assign/n_assign.go#L19-L25 |
5,987 | z7zmey/php-parser | node/expr/n_bitwise_not.go | NewBitwiseNot | func NewBitwiseNot(Expression node.Node) *BitwiseNot {
return &BitwiseNot{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewBitwiseNot(Expression node.Node) *BitwiseNot {
return &BitwiseNot{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewBitwiseNot",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"BitwiseNot",
"{",
"return",
"&",
"BitwiseNot",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewBitwiseNot node constructor | [
"NewBitwiseNot",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_bitwise_not.go#L18-L23 |
5,988 | z7zmey/php-parser | node/stmt/n_case.go | NewCase | func NewCase(Cond node.Node, Stmts []node.Node) *Case {
return &Case{
FreeFloating: nil,
Cond: Cond,
Stmts: Stmts,
}
} | go | func NewCase(Cond node.Node, Stmts []node.Node) *Case {
return &Case{
FreeFloating: nil,
Cond: Cond,
Stmts: Stmts,
}
} | [
"func",
"NewCase",
"(",
"Cond",
"node",
".",
"Node",
",",
"Stmts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Case",
"{",
"return",
"&",
"Case",
"{",
"FreeFloating",
":",
"nil",
",",
"Cond",
":",
"Cond",
",",
"Stmts",
":",
"Stmts",
",",
"}",
"\n",
"}"
] | // NewCase node constructor | [
"NewCase",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_case.go#L19-L25 |
5,989 | z7zmey/php-parser | node/stmt/n_while.go | NewWhile | func NewWhile(Cond node.Node, Stmt node.Node) *While {
return &While{
FreeFloating: nil,
Cond: Cond,
Stmt: Stmt,
}
} | go | func NewWhile(Cond node.Node, Stmt node.Node) *While {
return &While{
FreeFloating: nil,
Cond: Cond,
Stmt: Stmt,
}
} | [
"func",
"NewWhile",
"(",
"Cond",
"node",
".",
"Node",
",",
"Stmt",
"node",
".",
"Node",
")",
"*",
"While",
"{",
"return",
"&",
"While",
"{",
"FreeFloating",
":",
"nil",
",",
"Cond",
":",
"Cond",
",",
"Stmt",
":",
"Stmt",
",",
"}",
"\n",
"}"
] | // NewWhile node constructor | [
"NewWhile",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_while.go#L19-L25 |
5,990 | z7zmey/php-parser | node/expr/n_new.go | NewNew | func NewNew(Class node.Node, ArgumentList *node.ArgumentList) *New {
return &New{
FreeFloating: nil,
Class: Class,
ArgumentList: ArgumentList,
}
} | go | func NewNew(Class node.Node, ArgumentList *node.ArgumentList) *New {
return &New{
FreeFloating: nil,
Class: Class,
ArgumentList: ArgumentList,
}
} | [
"func",
"NewNew",
"(",
"Class",
"node",
".",
"Node",
",",
"ArgumentList",
"*",
"node",
".",
"ArgumentList",
")",
"*",
"New",
"{",
"return",
"&",
"New",
"{",
"FreeFloating",
":",
"nil",
",",
"Class",
":",
"Class",
",",
"ArgumentList",
":",
"ArgumentList",
",",
"}",
"\n",
"}"
] | // NewNew node constructor | [
"NewNew",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_new.go#L19-L25 |
5,991 | z7zmey/php-parser | node/stmt/n_class_extends.go | NewClassExtends | func NewClassExtends(className node.Node) *ClassExtends {
return &ClassExtends{
FreeFloating: nil,
ClassName: className,
}
} | go | func NewClassExtends(className node.Node) *ClassExtends {
return &ClassExtends{
FreeFloating: nil,
ClassName: className,
}
} | [
"func",
"NewClassExtends",
"(",
"className",
"node",
".",
"Node",
")",
"*",
"ClassExtends",
"{",
"return",
"&",
"ClassExtends",
"{",
"FreeFloating",
":",
"nil",
",",
"ClassName",
":",
"className",
",",
"}",
"\n",
"}"
] | // NewClassExtends node constructor | [
"NewClassExtends",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_class_extends.go#L18-L23 |
5,992 | z7zmey/php-parser | node/expr/n_require_once.go | NewRequireOnce | func NewRequireOnce(Expression node.Node) *RequireOnce {
return &RequireOnce{
FreeFloating: nil,
Expr: Expression,
}
} | go | func NewRequireOnce(Expression node.Node) *RequireOnce {
return &RequireOnce{
FreeFloating: nil,
Expr: Expression,
}
} | [
"func",
"NewRequireOnce",
"(",
"Expression",
"node",
".",
"Node",
")",
"*",
"RequireOnce",
"{",
"return",
"&",
"RequireOnce",
"{",
"FreeFloating",
":",
"nil",
",",
"Expr",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewRequireOnce node constructor | [
"NewRequireOnce",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_require_once.go#L18-L23 |
5,993 | z7zmey/php-parser | node/stmt/n_catch.go | NewCatch | func NewCatch(Types []node.Node, Variable node.Node, Stmts []node.Node) *Catch {
return &Catch{
FreeFloating: nil,
Types: Types,
Variable: Variable,
Stmts: Stmts,
}
} | go | func NewCatch(Types []node.Node, Variable node.Node, Stmts []node.Node) *Catch {
return &Catch{
FreeFloating: nil,
Types: Types,
Variable: Variable,
Stmts: Stmts,
}
} | [
"func",
"NewCatch",
"(",
"Types",
"[",
"]",
"node",
".",
"Node",
",",
"Variable",
"node",
".",
"Node",
",",
"Stmts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Catch",
"{",
"return",
"&",
"Catch",
"{",
"FreeFloating",
":",
"nil",
",",
"Types",
":",
"Types",
",",
"Variable",
":",
"Variable",
",",
"Stmts",
":",
"Stmts",
",",
"}",
"\n",
"}"
] | // NewCatch node constructor | [
"NewCatch",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_catch.go#L20-L27 |
5,994 | z7zmey/php-parser | node/scalar/node_heredoc.go | NewHeredoc | func NewHeredoc(Label string, Parts []node.Node) *Heredoc {
return &Heredoc{
FreeFloating: nil,
Label: Label,
Parts: Parts,
}
} | go | func NewHeredoc(Label string, Parts []node.Node) *Heredoc {
return &Heredoc{
FreeFloating: nil,
Label: Label,
Parts: Parts,
}
} | [
"func",
"NewHeredoc",
"(",
"Label",
"string",
",",
"Parts",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"Heredoc",
"{",
"return",
"&",
"Heredoc",
"{",
"FreeFloating",
":",
"nil",
",",
"Label",
":",
"Label",
",",
"Parts",
":",
"Parts",
",",
"}",
"\n",
"}"
] | // NewHeredoc node constructor | [
"NewHeredoc",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/scalar/node_heredoc.go#L19-L25 |
5,995 | z7zmey/php-parser | node/expr/n_method_call.go | NewMethodCall | func NewMethodCall(Variable node.Node, Method node.Node, ArgumentList *node.ArgumentList) *MethodCall {
return &MethodCall{
FreeFloating: nil,
Variable: Variable,
Method: Method,
ArgumentList: ArgumentList,
}
} | go | func NewMethodCall(Variable node.Node, Method node.Node, ArgumentList *node.ArgumentList) *MethodCall {
return &MethodCall{
FreeFloating: nil,
Variable: Variable,
Method: Method,
ArgumentList: ArgumentList,
}
} | [
"func",
"NewMethodCall",
"(",
"Variable",
"node",
".",
"Node",
",",
"Method",
"node",
".",
"Node",
",",
"ArgumentList",
"*",
"node",
".",
"ArgumentList",
")",
"*",
"MethodCall",
"{",
"return",
"&",
"MethodCall",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"Method",
":",
"Method",
",",
"ArgumentList",
":",
"ArgumentList",
",",
"}",
"\n",
"}"
] | // NewMethodCall node constructor | [
"NewMethodCall",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_method_call.go#L20-L27 |
5,996 | z7zmey/php-parser | node/stmt/n_trait_method_ref.go | NewTraitMethodRef | func NewTraitMethodRef(Trait node.Node, Method node.Node) *TraitMethodRef {
return &TraitMethodRef{
FreeFloating: nil,
Trait: Trait,
Method: Method,
}
} | go | func NewTraitMethodRef(Trait node.Node, Method node.Node) *TraitMethodRef {
return &TraitMethodRef{
FreeFloating: nil,
Trait: Trait,
Method: Method,
}
} | [
"func",
"NewTraitMethodRef",
"(",
"Trait",
"node",
".",
"Node",
",",
"Method",
"node",
".",
"Node",
")",
"*",
"TraitMethodRef",
"{",
"return",
"&",
"TraitMethodRef",
"{",
"FreeFloating",
":",
"nil",
",",
"Trait",
":",
"Trait",
",",
"Method",
":",
"Method",
",",
"}",
"\n",
"}"
] | // NewTraitMethodRef node constructor | [
"NewTraitMethodRef",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/stmt/n_trait_method_ref.go#L19-L25 |
5,997 | z7zmey/php-parser | node/expr/binary/n_smaller_or_equal.go | NewSmallerOrEqual | func NewSmallerOrEqual(Variable node.Node, Expression node.Node) *SmallerOrEqual {
return &SmallerOrEqual{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | go | func NewSmallerOrEqual(Variable node.Node, Expression node.Node) *SmallerOrEqual {
return &SmallerOrEqual{
FreeFloating: nil,
Left: Variable,
Right: Expression,
}
} | [
"func",
"NewSmallerOrEqual",
"(",
"Variable",
"node",
".",
"Node",
",",
"Expression",
"node",
".",
"Node",
")",
"*",
"SmallerOrEqual",
"{",
"return",
"&",
"SmallerOrEqual",
"{",
"FreeFloating",
":",
"nil",
",",
"Left",
":",
"Variable",
",",
"Right",
":",
"Expression",
",",
"}",
"\n",
"}"
] | // NewSmallerOrEqual node constructor | [
"NewSmallerOrEqual",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/binary/n_smaller_or_equal.go#L19-L25 |
5,998 | z7zmey/php-parser | node/expr/n_property_fetch.go | NewPropertyFetch | func NewPropertyFetch(Variable node.Node, Property node.Node) *PropertyFetch {
return &PropertyFetch{
FreeFloating: nil,
Variable: Variable,
Property: Property,
}
} | go | func NewPropertyFetch(Variable node.Node, Property node.Node) *PropertyFetch {
return &PropertyFetch{
FreeFloating: nil,
Variable: Variable,
Property: Property,
}
} | [
"func",
"NewPropertyFetch",
"(",
"Variable",
"node",
".",
"Node",
",",
"Property",
"node",
".",
"Node",
")",
"*",
"PropertyFetch",
"{",
"return",
"&",
"PropertyFetch",
"{",
"FreeFloating",
":",
"nil",
",",
"Variable",
":",
"Variable",
",",
"Property",
":",
"Property",
",",
"}",
"\n",
"}"
] | // NewPropertyFetch node constructor | [
"NewPropertyFetch",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_property_fetch.go#L19-L25 |
5,999 | z7zmey/php-parser | node/expr/n_closure_use.go | NewClosureUse | func NewClosureUse(Uses []node.Node) *ClosureUse {
return &ClosureUse{
FreeFloating: nil,
Uses: Uses,
}
} | go | func NewClosureUse(Uses []node.Node) *ClosureUse {
return &ClosureUse{
FreeFloating: nil,
Uses: Uses,
}
} | [
"func",
"NewClosureUse",
"(",
"Uses",
"[",
"]",
"node",
".",
"Node",
")",
"*",
"ClosureUse",
"{",
"return",
"&",
"ClosureUse",
"{",
"FreeFloating",
":",
"nil",
",",
"Uses",
":",
"Uses",
",",
"}",
"\n",
"}"
] | // NewClosureUse node constructor | [
"NewClosureUse",
"node",
"constructor"
] | 394f8821001f38fe5b4c4aaffd4fa20e50927a3f | https://github.com/z7zmey/php-parser/blob/394f8821001f38fe5b4c4aaffd4fa20e50927a3f/node/expr/n_closure_use.go#L18-L23 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.