Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for CallType (0.07 sec)

  1. src/go/parser/parser.go

    	}
    
    	// expression
    	return &ast.ExprStmt{X: x[0]}, false
    }
    
    func (p *parser) parseCallExpr(callType string) *ast.CallExpr {
    	x := p.parseRhs() // could be a conversion: (some type)(x)
    	if t := ast.Unparen(x); t != x {
    		p.error(x.Pos(), fmt.Sprintf("expression in %s must not be parenthesized", callType))
    		x = t
    	}
    	if call, isCall := x.(*ast.CallExpr); isCall {
    		return call
    	}
    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