Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for parseGoStmt (0.12 sec)

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

    	x := p.parseRhs()
    	if call, isCall := x.(*ast.CallExpr); isCall {
    		return call
    	}
    	p.errorExpected(x.Pos(), "function/method call")
    	return nil
    }
    
    func (p *parser) parseGoStmt() ast.Stmt {
    	if p.trace {
    		defer un(trace(p, "GoStmt"))
    	}
    
    	pos := p.expect(token.GO)
    	call := p.parseCallExpr()
    	p.expectSemi()
    	if call == nil {
    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

    		// only report error if it's a new one
    		p.error(p.safePos(x.End()), fmt.Sprintf("expression in %s must be function call", callType))
    	}
    	return nil
    }
    
    func (p *parser) parseGoStmt() ast.Stmt {
    	if p.trace {
    		defer un(trace(p, "GoStmt"))
    	}
    
    	pos := p.expect(token.GO)
    	call := p.parseCallExpr("go")
    	p.expectSemi()
    	if call == nil {
    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