MCPcopy Create free account
hub / github.com/nsf/gocode / parse_int

Method parse_int

package_text.go:304–310  ·  view source on GitHub ↗

int_lit = [ "-" | "+" ] { "0" ... "9" } .

()

Source from the content-addressed store, hash-verified

302
303// int_lit = [ "-" | "+" ] { "0" ... "9" } .
304func (p *gc_parser) parse_int() {
305 switch p.tok {
306 case '-', '+':
307 p.next()
308 }
309 p.expect(scanner.Int)
310}
311
312// number = int_lit [ "p" int_lit ] .
313func (p *gc_parser) parse_number() {

Callers 1

parse_numberMethod · 0.95

Calls 2

nextMethod · 0.95
expectMethod · 0.95

Tested by

no test coverage detected