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

Method MoveFreeFloating

php5/parser.go:100–111  ·  view source on GitHub ↗
(src node.Node, dst node.Node)

Source from the content-addressed store, hash-verified

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