MCPcopy Index your code
hub / github.com/as/edit / parseArg

Function parseArg

parse.go:144–150  ·  view source on GitHub ↗
(p *parser)

Source from the content-addressed store, hash-verified

142}
143
144func parseArg(p *parser) (arg string) {
145 p.Next()
146 if p.tok.kind != kindArg {
147 p.fatal(fmt.Errorf("want arg, have %q", p.tok.value))
148 }
149 return p.tok.value
150}
151
152func (p *parser) Dot(f Editor) (q0, q1 int64) {
153 return f.Dot()

Callers 1

parseCmdFunction · 0.85

Calls 2

fatalMethod · 0.80
NextMethod · 0.45

Tested by

no test coverage detected