(flow chan token, system bool, depth uint8)
| 183 | } |
| 184 | |
| 185 | func parseSSH(flow chan token, system bool, depth uint8) *Config { |
| 186 | // Ensure we consume tokens to completion even if parser exits early |
| 187 | defer func() { |
| 188 | for range flow { |
| 189 | } |
| 190 | }() |
| 191 | |
| 192 | result := newConfig() |
| 193 | result.position = Position{1, 1} |
| 194 | parser := &sshParser{ |
| 195 | flow: flow, |
| 196 | config: result, |
| 197 | tokensBuffer: make([]token, 0), |
| 198 | currentTable: make([]string, 0), |
| 199 | seenTableKeys: make([]string, 0), |
| 200 | system: system, |
| 201 | depth: depth, |
| 202 | } |
| 203 | parser.run() |
| 204 | return result |
| 205 | } |
no test coverage detected