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

Method MoveFreeFloating

php7/parser.go:99–110  ·  view source on GitHub ↗
(src node.Node, dst node.Node)

Source from the content-addressed store, hash-verified

97}
98
99func (l *Parser) MoveFreeFloating(src node.Node, dst node.Node) {
100 if l.Lexer.GetWithFreeFloating() == false {
101 return
102 }
103
104 if src.GetFreeFloating() == nil {
105 return
106 }
107
108 l.setFreeFloating(dst, freefloating.Start, (*src.GetFreeFloating())[freefloating.Start])
109 delete((*src.GetFreeFloating()), freefloating.Start)
110}
111
112func (l *Parser) setFreeFloating(dst node.Node, p freefloating.Position, strings []freefloating.String) {
113 if l.Lexer.GetWithFreeFloating() == false {

Callers 1

ParseMethod · 0.45

Implementers 2

Parserphp7/parser.go
Parserphp5/parser.go

Calls 3

setFreeFloatingMethod · 0.95
GetWithFreeFloatingMethod · 0.65
GetFreeFloatingMethod · 0.65

Tested by

no test coverage detected