MCPcopy Create free account
hub / github.com/z7zmey/php-parser / NewArrowFunction

Function NewArrowFunction

node/expr/n_arrow_function.go:23–33  ·  view source on GitHub ↗

NewArrowFunction node constructor

(Params []node.Node, ReturnType node.Node, Stmt node.Node, Static bool, ReturnsRef bool, PhpDocComment string)

Source from the content-addressed store, hash-verified

21
22// NewArrowFunction node constructor
23func NewArrowFunction(Params []node.Node, ReturnType node.Node, Stmt node.Node, Static bool, ReturnsRef bool, PhpDocComment string) *ArrowFunction {
24 return &ArrowFunction{
25 FreeFloating: nil,
26 ReturnsRef: ReturnsRef,
27 Static: Static,
28 PhpDocComment: PhpDocComment,
29 Params: Params,
30 ReturnType: ReturnType,
31 Expr: Stmt,
32 }
33}
34
35// SetPosition sets node position
36func (n *ArrowFunction) SetPosition(p *position.Position) {

Callers 1

ParseMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…