Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for validGoDeferCall (0.11 sec)

  1. src/cmd/compile/internal/walk/stmt.go

    	}
    
    	n.Post = walkStmt(n.Post)
    	walkStmtList(n.Body)
    	return n
    }
    
    // validGoDeferCall reports whether call is a valid call to appear in
    // a go or defer statement; that is, whether it's a regular function
    // call without arguments or results.
    func validGoDeferCall(call ir.Node) bool {
    	if call, ok := call.(*ir.CallExpr); ok && call.Op() == ir.OCALLFUNC && len(call.KeepAlive) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
Back to top