(dst node.Node, p freefloating.Position, strings []freefloating.String)
| 110 | } |
| 111 | |
| 112 | func (l *Parser) setFreeFloating(dst node.Node, p freefloating.Position, strings []freefloating.String) { |
| 113 | if l.Lexer.GetWithFreeFloating() == false { |
| 114 | return |
| 115 | } |
| 116 | |
| 117 | if len(strings) == 0 { |
| 118 | return |
| 119 | } |
| 120 | |
| 121 | dstCollection := dst.GetFreeFloating() |
| 122 | if *dstCollection == nil { |
| 123 | *dstCollection = make(freefloating.Collection) |
| 124 | } |
| 125 | |
| 126 | (*dstCollection)[p] = strings |
| 127 | } |
| 128 | |
| 129 | func (l *Parser) GetFreeFloatingToken(t *scanner.Token) []freefloating.String { |
| 130 | if l.Lexer.GetWithFreeFloating() == false { |
no test coverage detected