Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for Unary (0.04 sec)

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

    func underIs(typ Type, f func(Type) bool) bool {
    	typ = Unalias(typ)
    	if tpar, _ := typ.(*TypeParam); tpar != nil {
    		return tpar.underIs(f)
    	}
    	return f(under(typ))
    }
    
    func (check *Checker) unary(x *operand, e *syntax.Operation) {
    	check.expr(nil, x, e.X)
    	if x.mode == invalid {
    		return
    	}
    
    	op := e.Op
    	switch op {
    	case syntax.And:
    		// spec: "As an exception to the addressability
    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

    	typ = Unalias(typ)
    	if tpar, _ := typ.(*TypeParam); tpar != nil {
    		return tpar.underIs(f)
    	}
    	return f(under(typ))
    }
    
    // The unary expression e may be nil. It's passed in for better error messages only.
    func (check *Checker) unary(x *operand, e *ast.UnaryExpr) {
    	check.expr(nil, x, e.X)
    	if x.mode == invalid {
    		return
    	}
    
    	op := e.Op
    	switch op {
    	case token.AND:
    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/go/parser/parser.go

    		arrow := p.pos
    		p.next()
    
    		// If the next token is token.CHAN we still don't know if it
    		// is a channel type or a receive operation - we only know
    		// once we have found the end of the unary expression. There
    		// are two cases:
    		//
    		//   <- type  => (<-type) must be channel type
    		//   <- expr  => <-(expr) is a receive from an expression
    		//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/github.com/ianlancetaylor/demangle/demangle.go

    	} else if isLower(c) {
    		a, _ = st.operatorName(false)
    		if _, ok := a.(*Cast); ok {
    			isCast = true
    		}
    		if op, ok := a.(*Operator); ok && op.Name == `operator"" ` {
    			n := st.sourceName()
    			a = &Unary{Op: op, Expr: n, Suffix: false, SizeofType: false}
    		}
    	} else if c == 'D' && len(st.str) > 1 && st.str[1] == 'C' {
    		var bindings []AST
    		st.advance(2)
    		for {
    			binding := st.sourceName()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 94.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/parser.go

    	switch x := x.(type) {
    	case *Name:
    		return x, nil
    	case *Operation:
    		if x.Y == nil {
    			break // unary expr
    		}
    		switch x.Op {
    		case Mul:
    			if name, _ := x.X.(*Name); name != nil && (force || isTypeElem(x.Y)) {
    				// x = name *x.Y
    				op := *x
    				op.X, op.Y = op.Y, nil // change op into unary *op.Y
    				return name, &op
    			}
    		case Or:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  6. src/go/printer/testdata/parser.go

    			return &ast.ChanType{pos, ast.RECV, value}
    		}
    
    		x := p.parseUnaryExpr(false)
    		return &ast.UnaryExpr{pos, token.ARROW, p.checkExpr(x)}
    
    	case token.MUL:
    		// pointer type or unary "*" expression
    		pos := p.pos
    		p.next()
    		x := p.parseUnaryExpr(false)
    		return &ast.StarExpr{pos, p.checkExprOrType(x)}
    	}
    
    	return p.parsePrimaryExpr(lhs)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  7. src/go/printer/nodes.go

    // There are never spaces at level 6 (unary), and always spaces at levels 3 and below.
    //
    // To choose the cutoff, look at the whole expression but excluding primary
    // expressions (function calls, parenthesized exprs), and apply these rules:
    //
    //  1. If there is a binary operator with a right side unary operand
    //     that would clash without a space, the cutoff must be (in order):
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 17 18:53:17 UTC 2023
    - 52.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SetsTest.java

        }
      }
    
      /** The 0-ary cartesian product is a single empty list. */
      public void testCartesianProduct_zeroary() {
        assertThat(Sets.cartesianProduct()).containsExactly(list());
      }
    
      /** A unary cartesian product is one list of size 1 for each element in the input set. */
      public void testCartesianProduct_unary() {
        assertThat(Sets.cartesianProduct(set(1, 2))).containsExactly(list(1), list(2));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KaFirResolver.kt

                    )
                }
                KaCompoundAccess.IncOrDecOperation.Precedence.POSTFIX -> {
                    // For postfix case, the last argument is the operation call invoked on a synthetic local variable `<unary>`. This local
                    // variable is initialized by calling the `get` function.
                    val operationCall = lastArg as? FirFunctionCall ?: return null
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 73K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/S390XOps.go

    		{name: "RISBGZ", argLength: 1, reg: gp11, asm: "RISBGZ", aux: "S390XRotateParams", clobberFlags: true},                   // rotate then insert selected bits [into zero]
    
    		// unary ops
    		{name: "NEG", argLength: 1, reg: gp11, asm: "NEG", clobberFlags: true},   // -arg0
    		{name: "NEGW", argLength: 1, reg: gp11, asm: "NEGW", clobberFlags: true}, // -arg0
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 52.5K bytes
    - Viewed (0)
Back to top