Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for syntaxErrorAt (0.42 sec)

  1. src/cmd/compile/internal/syntax/parser.go

    	err := Error{pos, msg}
    	if p.first == nil {
    		p.first = err
    	}
    	p.errcnt++
    	if p.errh == nil {
    		panic(p.first)
    	}
    	p.errh(err)
    }
    
    // syntaxErrorAt reports a syntax error at the given position.
    func (p *parser) syntaxErrorAt(pos Pos, msg string) {
    	if trace {
    		p.print("syntax error: " + msg)
    	}
    
    	if p.tok == _EOF && p.first != nil {
    		return // avoid meaningless follow-up errors
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
Back to top