Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 343 for Map (0.07 sec)

  1. src/runtime/plugin.go

    // license that can be found in the LICENSE file.
    
    package runtime
    
    import (
    	"internal/abi"
    	"unsafe"
    )
    
    //go:linkname plugin_lastmoduleinit plugin.lastmoduleinit
    func plugin_lastmoduleinit() (path string, syms map[string]any, initTasks []*initTask, errstr string) {
    	var md *moduledata
    	for pmd := firstmoduledata.next; pmd != nil; pmd = pmd.next {
    		if pmd.bad {
    			md = nil // we only want the last module
    			continue
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 15:10:48 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. src/go/types/methodset.go

    	// We must use a lookup on identity rather than a simple map[*Named]bool as
    	// instantiated types may be identical but not equal.
    	var seen instanceLookup
    
    	// collect methods at current depth
    	for len(current) > 0 {
    		var next []embeddedType // embedded types found at current depth
    
    		// field and method sets at current depth, indexed by names (Id's), and allocated lazily
    		var fset map[string]bool // we only care about the field names
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. src/internal/trace/reader.go

    			go121Events: convertOldFormat(tr),
    		}, nil
    	case version.Go122, version.Go123:
    		return &Reader{
    			r: br,
    			order: ordering{
    				mStates:     make(map[ThreadID]*mState),
    				pStates:     make(map[ProcID]*pState),
    				gStates:     make(map[GoID]*gState),
    				activeTasks: make(map[TaskID]taskState),
    			},
    			// Don't emit a sync event when we first go to emit events.
    			emittedSync: true,
    		}, nil
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. src/go/ast/scope.go

    //
    // Deprecated: use the type checker [go/types] instead; see [Object].
    type Scope struct {
    	Outer   *Scope
    	Objects map[string]*Object
    }
    
    // NewScope creates a new scope nested in the outer scope.
    func NewScope(outer *Scope) *Scope {
    	const n = 4 // initial scope capacity
    	return &Scope{outer, make(map[string]*Object, n)}
    }
    
    // Lookup returns the object with the given name if it is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. test/linknameasm.dir/x.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Test that a linkname applied on an assembly declaration
    // does not affect stack map generation.
    
    package main
    
    import (
    	"runtime"
    	_ "unsafe"
    )
    
    //go:linkname asm
    func asm(*int)
    
    func main() {
    	x := new(int)
    	asm(x)
    }
    
    // called from asm
    func callback() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 451 bytes
    - Viewed (0)
  6. src/cmd/fix/main.go

    		os.Exit(exitCode)
    	}
    
    	sort.Sort(byDate(fixes))
    
    	if *allowedRewrites != "" {
    		allowed = make(map[string]bool)
    		for _, f := range strings.Split(*allowedRewrites, ",") {
    			allowed[f] = true
    		}
    	}
    
    	if *forceRewrites != "" {
    		force = make(map[string]bool)
    		for _, f := range strings.Split(*forceRewrites, ",") {
    			force[f] = true
    		}
    	}
    
    	if flag.NArg() == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue66878.go

    package p
    
    func _[T bool](ch chan T) {
    	var _, _ T = <-ch
    }
    
    // offending code snippets from issue
    
    func _[T ~bool](ch <-chan T) {
    	var x, ok T = <-ch
    	println(x, ok)
    }
    
    func _[T ~bool](m map[int]T) {
    	var x, ok T = m[0]
    	println(x, ok)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 17:42:47 UTC 2024
    - 399 bytes
    - Viewed (0)
  8. src/cmd/link/internal/loadxcoff/ldxcoff.go

    			return sym.Sxxx, fmt.Sprintf("getSymbolType for Storage class 0x%x and Storage Map 0x%x not implemented", s.StorageClass, s.AuxCSect.StorageMappingClass)
    
    		// Program Code
    		case xcoff.XMC_PR:
    			if sectType == xcoff.STYP_TEXT {
    				return sym.STEXT, ""
    			}
    			return sym.Sxxx, fmt.Sprintf("unrecognised Section Type 0x%x for Storage Class 0x%x with Storage Map XMC_PR", sectType, s.StorageClass)
    
    		// Read/Write Data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  9. src/go/internal/gcimporter/gcimporter.go

    }
    
    // Import imports a gc-generated package given its import path and srcDir, adds
    // the corresponding package object to the packages map, and returns the object.
    // The packages map must contain all packages already imported.
    func Import(fset *token.FileSet, packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error) {
    	var rc io.ReadCloser
    	var id string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  10. src/go/ast/print.go

    // not cycles that are created via slices or maps containing the
    // same slice or map. Code for general data structures probably
    // should catch those as well.
    
    func (p *printer) print(x reflect.Value) {
    	if !NotNilFilter("", x) {
    		p.printf("nil")
    		return
    	}
    
    	switch x.Kind() {
    	case reflect.Interface:
    		p.print(x.Elem())
    
    	case reflect.Map:
    		p.printf("%s (len = %d) {", x.Type(), x.Len())
    		if x.Len() > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 21:32:41 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top