Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,192 for assignTo (0.36 sec)

  1. src/internal/reflectlite/value.go

    func ValueOf(i any) Value {
    	if i == nil {
    		return Value{}
    	}
    	return unpackEface(i)
    }
    
    // assignTo returns a value v that can be assigned directly to typ.
    // It panics if v is not assignable to typ.
    // For a conversion to an interface type, target is a suggested scratch space to use.
    func (v Value) assignTo(context string, dst *abi.Type, target unsafe.Pointer) Value {
    	// if v.flag&flagMethod != 0 {
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-07 17:01
    - 13.6K bytes
    - Viewed (0)
  2. src/reflect/value.go

    			//
    			// If/when this happens, take note of the following:
    			//
    			// We must clear the destination before calling assignTo,
    			// in case assignTo writes (with memory barriers) to the
    			// target location used as scratch space. See issue 39541.
    			v = v.assignTo("reflect.MakeFunc", typ, nil)
    		stepsLoop:
    			for _, st := range abid.ret.stepsForValue(i) {
    				switch st.kind {
    				case abiStepStack:
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-22 21:17
    - 119.9K bytes
    - Viewed (0)
  3. src/go/internal/gccgoimporter/testdata/v1reflect.gox

     func (v <type 1>) TrySend (x <type 1>) <type -15>;
     func (v <type 1>) Type () <type 26>;
     func (v <type 1>) Uint () <type -8>;
     func (v <type 1>) UnsafeAddr () <type -13>;
     func (v <type 1>) .reflect.assignTo (context <type -16>, dst <type 3>, target <type 57 *<type 58 interface { }>>) <type 1>;
    >, x ...<type 1>) <type 1>;
    func AppendSlice (s <type 1>, t <type 1>) <type 1>;
    const Array <type 28> = 17 ;
    const Bool <type 28> = 1 ;
    Registered: 2024-06-12 16:32
    - Last Modified: 2021-09-30 21:33
    - 10.3K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/assign/assign.go

    	"golang.org/x/tools/go/ast/inspector"
    )
    
    //go:embed doc.go
    var doc string
    
    var Analyzer = &analysis.Analyzer{
    	Name:     "assign",
    	Doc:      analysisutil.MustExtractDoc(doc, "assign"),
    	URL:      "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/assign",
    	Requires: []*analysis.Analyzer{inspect.Analyzer},
    	Run:      run,
    }
    
    func run(pass *analysis.Pass) (interface{}, error) {
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-10-19 23:33
    - 2.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/assign.go

    	}
    	return nn
    }
    
    // check assign expression list to
    // an expression list. called in
    //
    //	expr-list = expr-list
    func ascompatee(op ir.Op, nl, nr []ir.Node) []ir.Node {
    	// cannot happen: should have been rejected during type checking
    	if len(nl) != len(nr) {
    		base.Fatalf("assignment operands mismatch: %+v / %+v", ir.Nodes(nl), ir.Nodes(nr))
    	}
    
    	var assigned ir.NameSet
    	var memWrite, deferResultWrite bool
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-08 17:09
    - 20.3K bytes
    - Viewed (0)
  6. src/cmd/vet/testdata/assign/assign.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file contains tests for the useless-assignment checker.
    
    package assign
    
    import "math/rand"
    
    type ST struct {
    	x int
    	l []int
    }
    
    func (s *ST) SetX(x int, ch chan int) {
    	// Accidental self-assignment; it should be "s.x = x"
    	x = x // ERROR "self-assignment of x to x"
    Registered: 2024-06-12 16:32
    - Last Modified: 2019-02-20 15:46
    - 804 bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc

        }
        info.execute_output_index = execute_output.index();
        info.assign = assign_op;
        if (!last_assign || last_assign->isBeforeInBlock(assign_op)) {
          last_assign = assign_op;
        }
        VLOG(2) << "Adding assign op to merge candidates: "
                << debugString(assign_op);
        all_assigns.insert(assign_op);
        output_merged[execute_output.index()] = true;
      }
    
      if (last_assign != nullptr) {
    Registered: 2024-06-16 05:45
    - Last Modified: 2024-02-29 17:52
    - 27K bytes
    - Viewed (0)
  8. .github/workflows/auto-assign-pr-to-author.yml

    name: 'Auto Assign PR to Author'
    on:
      pull_request:
        types: [opened]
    
    permissions: {}
    
    jobs:
      add-reviews:
        permissions:
          contents: read  # for kentaro-m/auto-assign-action to fetch config file
          pull-requests: write  # for kentaro-m/auto-assign-action to assign PR reviewers
        runs-on: ubuntu-latest
        steps:
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-05-02 09:13
    - 381 bytes
    - Viewed (0)
  9. src/reflect/abi.go

    		panic("unknown type kind")
    	}
    	panic("unhandled register assignment path")
    }
    
    // assignIntN assigns n values to registers, each "size" bytes large,
    // from the data at [offset, offset+n*size) in memory. Each value at
    // [offset+i*size, offset+(i+1)*size) for i < n is assigned to the
    // next n integer registers.
    //
    // Bit i in ptrMap indicates whether the i'th value is a pointer.
    // n must be <= 8.
    //
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-07 17:08
    - 15K bytes
    - Viewed (0)
  10. test/assign1.go

    Rob Pike <******@****.***> 1329617983 +1100
    Registered: 2024-06-12 16:32
    - Last Modified: 2012-02-19 02:19
    - 5.6K bytes
    - Viewed (0)
Back to top