MCPcopy Create free account
hub / github.com/google/syzkaller / parseInt

Method parseInt

pkg/ast/parser.go:574–588  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

572}
573
574func (p *parser) parseInt() *Int {
575 i := &Int{
576 Pos: p.pos,
577 }
578 switch p.tok {
579 case tokInt:
580 i.Value, i.ValueFmt = p.parseIntValue()
581 case tokIdent:
582 i.Ident = p.lit
583 default:
584 p.expect(tokInt, tokIdent)
585 }
586 p.next()
587 return i
588}
589
590func (p *parser) parseIntValue() (uint64, IntFmt) {
591 if p.lit[0] == '\'' {

Callers 6

parseDefineMethod · 0.95
parseResourceMethod · 0.95
parseIntFlagsMethod · 0.95
_updateIntervalMethod · 0.80
_getOffsetMethod · 0.80
_getOffsetMethod · 0.80

Calls 3

parseIntValueMethod · 0.95
expectMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected