Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseReturnStmt (0.18 sec)

  1. src/go/printer/testdata/parser.go

    	call := p.parseCallExpr()
    	p.expectSemi()
    	if call == nil {
    		return &ast.BadStmt{pos, pos + 5} // len("defer")
    	}
    
    	return &ast.DeferStmt{pos, call}
    }
    
    func (p *parser) parseReturnStmt() *ast.ReturnStmt {
    	if p.trace {
    		defer un(trace(p, "ReturnStmt"))
    	}
    
    	pos := p.pos
    	p.expect(token.RETURN)
    	var x []ast.Expr
    	if p.tok != token.SEMICOLON && p.tok != token.RBRACE {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  2. src/go/parser/parser.go

    	p.expectSemi()
    	if call == nil {
    		return &ast.BadStmt{From: pos, To: pos + 5} // len("defer")
    	}
    
    	return &ast.DeferStmt{Defer: pos, Call: call}
    }
    
    func (p *parser) parseReturnStmt() *ast.ReturnStmt {
    	if p.trace {
    		defer un(trace(p, "ReturnStmt"))
    	}
    
    	pos := p.pos
    	p.expect(token.RETURN)
    	var x []ast.Expr
    	if p.tok != token.SEMICOLON && p.tok != token.RBRACE {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
Back to top