Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 144 for mexpr (0.14 sec)

  1. src/cmd/compile/internal/types2/expr.go

    func (check *Checker) binary(x *operand, e syntax.Expr, lhs, rhs syntax.Expr, op syntax.Operator) {
    	var y operand
    
    	check.expr(nil, x, lhs)
    	check.expr(nil, &y, rhs)
    
    	if x.mode == invalid {
    		return
    	}
    	if y.mode == invalid {
    		x.mode = invalid
    		x.expr = y.expr
    		return
    	}
    
    	if isShift(op) {
    		check.shift(x, &y, e, op)
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  2. src/go/types/expr.go

    func (check *Checker) binary(x *operand, e ast.Expr, lhs, rhs ast.Expr, op token.Token, opPos token.Pos) {
    	var y operand
    
    	check.expr(nil, x, lhs)
    	check.expr(nil, &y, rhs)
    
    	if x.mode == invalid {
    		return
    	}
    	if y.mode == invalid {
    		x.mode = invalid
    		x.expr = y.expr
    		return
    	}
    
    	if isShift(op) {
    		check.shift(x, &y, e, op)
    		return
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/call.go

    	var inst *syntax.IndexExpr // function instantiation, if any
    	if iexpr, _ := call.Fun.(*syntax.IndexExpr); iexpr != nil {
    		if check.indexExpr(x, iexpr) {
    			// Delay function instantiation to argument checking,
    			// where we combine type and value arguments for type
    			// inference.
    			assert(x.mode == value)
    			inst = iexpr
    		}
    		x.expr = iexpr
    		check.record(x)
    	} else {
    		check.exprOrType(x, call.Fun, true)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/parser.go

    func (p *parser) pexpr(x Expr, keep_parens bool) Expr {
    	if trace {
    		defer p.trace("pexpr")()
    	}
    
    	if x == nil {
    		x = p.operand(keep_parens)
    	}
    
    loop:
    	for {
    		pos := p.pos()
    		switch p.tok {
    		case _Dot:
    			p.next()
    			switch p.tok {
    			case _Name:
    				// pexpr '.' sym
    				t := new(SelectorExpr)
    				t.pos = pos
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    	case *types.Struct:
    		texpr := TypeExpr(f, pkg, typ) // typ because we want the name here.
    		if texpr == nil {
    			return nil
    		}
    		return &ast.CompositeLit{
    			Type: texpr,
    		}
    	}
    	return nil
    }
    
    // IsZeroValue checks whether the given expression is a 'zero value' (as determined by output of
    // analysisinternal.ZeroValue)
    func IsZeroValue(expr ast.Expr) bool {
    	switch e := expr.(type) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/resolver.go

    	for {
    		// check if we have a pointer type
    		// if pexpr, _ := typ.(*ast.StarExpr); pexpr != nil {
    		if pexpr, _ := typ.(*syntax.Operation); pexpr != nil && pexpr.Op == syntax.Mul && pexpr.Y == nil {
    			// if we've already seen a pointer, we're done
    			if ptr {
    				return false, nil
    			}
    			ptr = true
    			typ = syntax.Unparen(pexpr.X) // continue with pointer base type
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  7. src/go/types/resolver.go

    		// var decl w/o init expr
    		if s.Type == nil {
    			check.error(s, code, "missing type or init expr")
    		}
    	case l < r:
    		if l < len(s.Values) {
    			// init exprs from s
    			n := s.Values[l]
    			check.errorf(n, code, "extra init expr %s", n)
    			// TODO(gri) avoid declared and not used error here
    		} else {
    			// init exprs "inherited"
    			check.errorf(s, code, "extra init expr at %s", check.fset.Position(init.Pos()))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. tensorflow/c/tf_status_helper.h

    }  // namespace tensorflow
    
    #define TF_STATUS_ASSIGN_OR_RETURN(lhs, rexpr, c_status) \
      _TF_STATUS_ASSIGN_OR_RETURN_IMPL(                      \
          _TF_STATUS_CONCAT(_status_or_value, __COUNTER__), lhs, rexpr, c_status);
    
    #define _TF_STATUS_ASSIGN_OR_RETURN_IMPL(statusor, lhs, rexpr, c_status) \
      auto statusor = (rexpr);                                               \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go

    			expr:        `isQuantity("20Mi")`,
    			expectValue: trueVal,
    		},
    		{
    			name:        "isQuantity_invalidSuffix",
    			expr:        `isQuantity("20Mo")`,
    			expectValue: falseVal,
    		},
    		{
    			name:        "isQuantity_passingRegex",
    			expr:        `isQuantity("10Mm")`,
    			expectValue: falseVal,
    		},
    		{
    			name:               "isQuantity_noOverload",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    			expr:               "'abc 123 def 123'.replace('123', '456', 1)",
    			expectEsimatedCost: checker.CostEstimate{Min: 3, Max: 3},
    			expectRuntimeCost:  3,
    		},
    		{
    			name:               "split",
    			expr:               "'abc 123 def 123'.split(' ')",
    			expectEsimatedCost: checker.CostEstimate{Min: 3, Max: 3},
    			expectRuntimeCost:  3,
    		},
    		{
    			name:               "split with limit",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
Back to top