Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 36 of 36 for callExpr (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/apis/apiserver/validation/validation.go

    		if s == nil {
    			return false
    		}
    		if isIdentOperand(s.Operand, operand) && s.Field == field {
    			return true
    		}
    		return hasSelectExp(s.Operand, operand, field)
    	case *exprpb.Expr_CallExpr:
    		c := e.CallExpr
    		if c == nil {
    			return false
    		}
    		if c.Target == nil && c.Function == operators.OptSelect && len(c.Args) == 2 &&
    			isIdentOperand(c.Args[0], operand) && isConstField(c.Args[1], field) {
    			return true
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 31.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/infer.go

    	case *Tuple:
    		// This case does not occur from within isParameterized
    		// because tuples only appear in signatures where they
    		// are handled explicitly. But isParameterized is also
    		// called by Checker.callExpr with a function result tuple
    		// if instantiation failed (go.dev/issue/59890).
    		return t != nil && w.varList(t.vars)
    
    	case *Signature:
    		// t.tparams may not be nil if we are looking at a signature
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.4K bytes
    - Viewed (0)
  3. src/go/types/infer.go

    	case *Tuple:
    		// This case does not occur from within isParameterized
    		// because tuples only appear in signatures where they
    		// are handled explicitly. But isParameterized is also
    		// called by Checker.callExpr with a function result tuple
    		// if instantiation failed (go.dev/issue/59890).
    		return t != nil && w.varList(t.vars)
    
    	case *Signature:
    		// t.tparams may not be nil if we are looking at a signature
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 13:54:20 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  4. src/go/types/stmt.go

    	if token.ADD_ASSIGN <= op && op <= token.AND_NOT_ASSIGN {
    		return op + (token.ADD - token.ADD_ASSIGN)
    	}
    	return token.ILLEGAL
    }
    
    func (check *Checker) suspendedCall(keyword string, call *ast.CallExpr) {
    	var x operand
    	var msg string
    	var code Code
    	switch check.rawExpr(nil, &x, call, nil, false) {
    	case conversion:
    		msg = "requires function call, not conversion"
    		code = InvalidDefer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stmt.go

    }
    
    func (check *Checker) suspendedCall(keyword string, call syntax.Expr) {
    	code := InvalidDefer
    	if keyword == "go" {
    		code = InvalidGo
    	}
    
    	if _, ok := call.(*syntax.CallExpr); !ok {
    		check.errorf(call, code, "expression in %s must be function call", keyword)
    		check.use(call)
    		return
    	}
    
    	var x operand
    	var msg string
    	switch check.rawExpr(nil, &x, call, nil, false) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 30.7K bytes
    - Viewed (0)
  6. src/cmd/cover/cover.go

    		// We really should verify that "panic" is the predefined function,
    		// but without type checking we can't and the likelihood of it being
    		// an actual problem is vanishingly small.
    		if call, ok := s.X.(*ast.CallExpr); ok {
    			if ident, ok := call.Fun.(*ast.Ident); ok && ident.Name == "panic" && len(call.Args) == 1 {
    				return true
    			}
    		}
    	}
    	found, _ := hasFuncLiteral(s)
    	return found
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top