Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Errcnt (0.28 sec)

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

    }
    
    func (p *parser) funcBody() *BlockStmt {
    	p.fnest++
    	errcnt := p.errcnt
    	body := p.blockStmt("")
    	p.fnest--
    
    	// Don't check branches if there were syntax errors in the function
    	// as it may lead to spurious errors (e.g., see test/switch2.go) or
    	// possibly crashes due to incomplete syntax trees.
    	if p.mode&CheckBranches != 0 && errcnt == p.errcnt {
    		checkBranches(body, p.errh)
    	}
    
    	return body
    }
    
    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