Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for newBar2 (0.13 sec)

  1. src/cmd/compile/internal/rangefunc/rewrite.go

    	return x
    }
    
    func (r *rewriter) stateVar(pos syntax.Pos) (*types2.Var, *syntax.VarDecl) {
    	r.stateVarCount++
    
    	name := fmt.Sprintf("#state%d", r.stateVarCount)
    	typ := r.int.Type()
    	obj := types2.NewVar(pos, r.pkg, name, typ)
    	n := syntax.NewName(pos, name)
    	setValueType(n, typ)
    	r.info.Defs[n] = obj
    
    	return obj, &syntax.VarDecl{NameList: []*syntax.Name{n}, Values: r.stateConst(abi.RF_READY)}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/object.go

    	isField  bool // var is struct field
    	used     bool // set if the variable was used
    	origin   *Var // if non-nil, the Var from which this one was instantiated
    }
    
    // NewVar returns a new variable.
    // The arguments set the attributes found with all Objects.
    func NewVar(pos syntax.Pos, pkg *Package, name string, typ Type) *Var {
    	return &Var{object: object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  3. src/go/types/check.go

    	if m := check.Types; m != nil {
    		for {
    			tv := m[x]
    			assert(tv.Type != nil) // should have been recorded already
    			pos := x.Pos()
    			tv.Type = NewTuple(
    				NewVar(pos, check.pkg, "", t0),
    				NewVar(pos, check.pkg, "", t1),
    			)
    			m[x] = tv
    			// if x is a parenthesized expression (p.X), update p.X
    			p, _ := x.(*ast.ParenExpr)
    			if p == nil {
    				break
    			}
    			x = p.X
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf_communication.cc

      assert(!new_args.empty());
    
      ReplaceWithTupleResult(builder, old_args, new_args, /*flatten_tuple=*/true);
      auto new_arg = new_args[new_args.size() - 1];
    
      block.eraseArguments(0, old_args_size);
    
      return new_arg;
    }
    
    // Updates control flow op terminator with an extra element `token`.
    void RewriteControlFlowTerminator(OpBuilder& builder, Operation* terminator,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 40.5K bytes
    - Viewed (0)
  5. src/go/types/builtins.go

    func makeSig(res Type, args ...Type) *Signature {
    	list := make([]*Var, len(args))
    	for i, param := range args {
    		list[i] = NewVar(nopos, nil, "", Default(param))
    	}
    	params := NewTuple(list...)
    	var result *Tuple
    	if res != nil {
    		assert(!isUntyped(res))
    		result = NewTuple(NewVar(nopos, nil, "", res))
    	}
    	return &Signature{params: params, results: result}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/rsc.io/markdown/parse.go

    	for _, fn := range news {
    		if l, ok := fn(p, s); ok {
    			s = l
    			if s.isBlank() {
    				return
    			}
    			p.lineDepth++
    			goto Prefixes
    		}
    	}
    
    	newPara(p, s)
    }
    
    func (c *rootBuilder) extend(p *parseState, s line) (line, bool) {
    	panic("root extend")
    }
    
    var news = []func(*parseState, line) (line, bool){
    	newQuote,
    	newATXHeading,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/builtins.go

    func makeSig(res Type, args ...Type) *Signature {
    	list := make([]*Var, len(args))
    	for i, param := range args {
    		list[i] = NewVar(nopos, nil, "", Default(param))
    	}
    	params := NewTuple(list...)
    	var result *Tuple
    	if res != nil {
    		assert(!isUntyped(res))
    		result = NewTuple(NewVar(nopos, nil, "", res))
    	}
    	return &Signature{params: params, results: result}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/call.go

    				} else {
    					check.versionErrorf(instErrPos, go1_21, "implicitly instantiated function in assignment")
    				}
    			}
    			gsig := NewSignatureType(nil, nil, nil, sig.params, sig.results, sig.variadic)
    			params = []*Var{NewVar(x.Pos(), check.pkg, "", gsig)}
    			// The type of the argument operand is tsig, which is the type of the LHS in an assignment
    			// or the result type in a return statement. Create a pseudo-expression for that operand
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
  9. src/go/types/call.go

    				} else {
    					check.versionErrorf(instErrPos, go1_21, "implicitly instantiated function in assignment")
    				}
    			}
    			gsig := NewSignatureType(nil, nil, nil, sig.params, sig.results, sig.variadic)
    			params = []*Var{NewVar(x.Pos(), check.pkg, "", gsig)}
    			// The type of the argument operand is tsig, which is the type of the LHS in an assignment
    			// or the result type in a return statement. Create a pseudo-expression for that operand
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/resolver.go

    					d1 = &declInfo{file: fileScope, lhs: lhs, vtyp: s.Type, init: s.Values}
    				}
    
    				// declare all variables
    				values := syntax.UnpackListExpr(s.Values)
    				for i, name := range s.NameList {
    					obj := NewVar(name.Pos(), pkg, name.Value, nil)
    					lhs[i] = obj
    
    					d := d1
    					if d == nil {
    						// individual assignments
    						var init syntax.Expr
    						if i < len(values) {
    							init = values[i]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 14:10:44 UTC 2024
    - 26.3K bytes
    - Viewed (0)
Back to top