NewArrowFunction node constructor
(Params []node.Node, ReturnType node.Node, Stmt node.Node, Static bool, ReturnsRef bool, PhpDocComment string)
| 21 | |
| 22 | // NewArrowFunction node constructor |
| 23 | func 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 |
| 36 | func (n *ArrowFunction) SetPosition(p *position.Position) { |
no outgoing calls
no test coverage detected
searching dependent graphs…