Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 103 for indexer (2.81 sec)

  1. doc/next/6-stdlib/3-iter.md

    The new [iter] package provides the basic definitions for working with
    user-defined iterators.
    
    The [slices] package adds several functions that work with iterators:
    - [All](/pkg/slices#All) returns an iterator over slice indexes and values.
    - [Values](/pkg/slices#Values) returns an iterator over slice elements.
    - [Backward](/pkg/slices#Backward) returns an iterator that loops over
      a slice backward.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:13 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/compiler_internal.go

    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"fmt"
    )
    
    // This file should not be copied to go/types.  See go.dev/issue/67477
    
    // RenameResult takes an array of (result) fields and an index, and if the indexed field
    // does not have a name and if the result in the signature also does not have a name,
    // then the signature and field are renamed to
    //
    //	fmt.Sprintf("#rv%d", i+1)`
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/op.go

    	auxInt8                   // auxInt is an 8-bit integer
    	auxInt16                  // auxInt is a 16-bit integer
    	auxInt32                  // auxInt is a 32-bit integer
    	auxInt64                  // auxInt is a 64-bit integer
    	auxInt128                 // auxInt represents a 128-bit integer.  Always 0.
    	auxUInt8                  // auxInt is an 8-bit unsigned integer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/link.go

    // The general forms and their encodings are:
    //
    //	sym±offset(symkind)(reg)(index*scale)
    //		Memory reference at address &sym(symkind) + offset + reg + index*scale.
    //		Any of sym(symkind), ±offset, (reg), (index*scale), and *scale can be omitted.
    //		If (reg) and *scale are both omitted, the resulting expression (index) is parsed as (reg).
    //		To force a parsing as index*scale, write (index*1).
    //		Encoding:
    //			type = TYPE_MEM
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modindex/scan.go

    		return nil
    	})
    	if err != nil {
    		return nil, err
    	}
    	return encodeModuleBytes(packages), nil
    }
    
    // indexPackage indexes the package at the given directory and returns its
    // encoded representation. It returns ErrNotIndexed if the package can't
    // be indexed.
    func indexPackage(modroot, pkgdir string) []byte {
    	fsys.Trace("indexPackage", pkgdir)
    	p := importRaw(modroot, relPath(pkgdir, modroot))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. src/cmd/vendor/github.com/google/pprof/profile/merge.go

    // locationIDMap is like a map[uint64]*Location, but provides efficiency for
    // ids that are densely numbered, which is often the case.
    type locationIDMap struct {
    	dense  []*Location          // indexed by id for id < len(dense)
    	sparse map[uint64]*Location // indexed by id for id >= len(dense)
    }
    
    func makeLocationIDMap(n int) locationIDMap {
    	return locationIDMap{
    		dense:  make([]*Location, n),
    		sparse: map[uint64]*Location{},
    	}
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/assign.go

    func walkAssignMapRead(init *ir.Nodes, n *ir.AssignListStmt) ir.Node {
    	init.Append(ir.TakeInit(n)...)
    
    	r := n.Rhs[0].(*ir.IndexExpr)
    	walkExprListSafe(n.Lhs, init)
    	r.X = walkExpr(r.X, init)
    	r.Index = walkExpr(r.Index, init)
    	t := r.X.Type()
    
    	fast := mapfast(t)
    	key := mapKeyArg(fast, r, r.Index, false)
    
    	// from:
    	//   a,b = m[i]
    	// to:
    	//   var,b = mapaccess2*(t, m, i)
    	//   a = *var
    	a := n.Lhs[0]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/syntax/positions.go

    		case *KeyValueExpr:
    			m = n.Value
    		case *FuncLit:
    			m = n.Body
    		case *ParenExpr:
    			m = n.X
    		case *SelectorExpr:
    			m = n.Sel
    		case *IndexExpr:
    			m = n.Index
    		case *SliceExpr:
    			for i := len(n.Index) - 1; i >= 0; i-- {
    				if x := n.Index[i]; x != nil {
    					m = x
    					continue
    				}
    			}
    			m = n.X
    		case *AssertExpr:
    			m = n.Type
    		case *TypeSwitchGuard:
    			m = n.X
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/ssa.go

    			// These appear to be fine, but they fail the
    			// integer constraint below, so okay them here.
    			// Sample non-integer conversion: map[string]string -> *uint8
    			return v
    		}
    
    		if etypesign(from.Kind()) == 0 {
    			s.Fatalf("CONVNOP unrecognized non-integer %v -> %v\n", from, to)
    			return nil
    		}
    
    		// integer, same width, same sign
    		return v
    
    	case ir.OCONV:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/api_test.go

    		}
    
    		if argErr.Index != test.wantAt {
    			t.Errorf("Instantiate(%v, %v): error at index %d, want index %d", T, test.targs, argErr.Index, test.wantAt)
    		}
    	}
    }
    
    func TestArgumentErrorUnwrapping(t *testing.T) {
    	var err error = &ArgumentError{
    		Index: 1,
    		Err:   Error{Msg: "test"},
    	}
    	var e Error
    	if !errors.As(err, &e) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 93.3K bytes
    - Viewed (0)
Back to top