MCPcopy Create free account
hub / github.com/OpenAtomFoundation/SmartIDE / peek

Method peek

cli/pkg/ssh_config/parser.go:48–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46}
47
48func (p *sshParser) peek() *token {
49 if len(p.tokensBuffer) != 0 {
50 return &(p.tokensBuffer[0])
51 }
52
53 tok, ok := <-p.flow
54 if !ok {
55 return nil
56 }
57 p.tokensBuffer = append(p.tokensBuffer, tok)
58 return &tok
59}
60
61func (p *sshParser) getToken() *token {
62 if len(p.tokensBuffer) != 0 {

Callers 2

parseStartMethod · 0.95
parseKVMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected