Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 329 for Map (0.02 sec)

  1. src/cmd/internal/obj/line_test.go

    package obj
    
    import (
    	"cmd/internal/src"
    	"fmt"
    	"testing"
    )
    
    func TestGetFileSymbolAndLine(t *testing.T) {
    	ctxt := new(Link)
    	ctxt.hash = make(map[string]*LSym)
    	ctxt.statichash = make(map[string]*LSym)
    
    	afile := src.NewFileBase("a.go", "a.go")
    	bfile := src.NewFileBase("b.go", "/foo/bar/b.go")
    	lfile := src.NewLinePragmaBase(src.MakePos(afile, 8, 1), "linedir", "linedir", 100, 1)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:52:41 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/go/types/objset.go

    // object name.
    
    package types
    
    // An objset is a set of objects identified by their unique id.
    // The zero value for objset is a ready-to-use empty objset.
    type objset map[string]Object // initialized lazily
    
    // insert attempts to insert an object obj into objset s.
    // If s already contains an alternative object alt with
    // the same name, insert leaves s unchanged and returns alt.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 1K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/util.go

    func localFunctionDecls(info *types.Info, files []*ast.File) func(*types.Func) *ast.FuncDecl {
    	var fnDecls map[*types.Func]*ast.FuncDecl // computed lazily
    	return func(f *types.Func) *ast.FuncDecl {
    		if f != nil && fnDecls == nil {
    			fnDecls = make(map[*types.Func]*ast.FuncDecl)
    			for _, file := range files {
    				for _, decl := range file.Decls {
    					if fnDecl, ok := decl.(*ast.FuncDecl); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. src/go/ast/resolve.go

    	return false
    }
    
    // An Importer resolves import paths to package Objects.
    // The imports map records the packages already imported,
    // indexed by package id (canonical import path).
    // An Importer must determine the canonical import path and
    // check the map to see if it is already present in the imports map.
    // If so, the Importer can return the map entry. Otherwise, the
    // Importer should load the package data for the given path into
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. src/internal/fmtsort/sort.go

    // that are valid map keys.
    package fmtsort
    
    import (
    	"cmp"
    	"reflect"
    	"slices"
    )
    
    // Note: Throughout this package we avoid calling reflect.Value.Interface as
    // it is not always legal to do so and it's easier to avoid the issue than to face it.
    
    // SortedMap is a slice of KeyValue pairs that simplifies sorting
    // and iterating over map entries.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:31:45 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. src/internal/trace/base.go

    type evTable struct {
    	freq    frequency
    	strings dataTable[stringID, string]
    	stacks  dataTable[stackID, stack]
    	pcs     map[uint64]frame
    
    	// extraStrings are strings that get generated during
    	// parsing but haven't come directly from the trace, so
    	// they don't appear in strings.
    	extraStrings   []string
    	extraStringIDs map[string]extraStringID
    	nextExtra      extraStringID
    
    	// expData contains extra unparsed data that is accessible
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/net/internal/socktest/switch.go

    // A Switch represents a callpath point switch for socket system
    // calls.
    type Switch struct {
    	once sync.Once
    
    	fmu   sync.RWMutex
    	fltab map[FilterType]Filter
    
    	smu   sync.RWMutex
    	sotab Sockets
    	stats stats
    }
    
    func (sw *Switch) init() {
    	sw.fltab = make(map[FilterType]Filter)
    	sw.sotab = make(Sockets)
    	sw.stats = make(stats)
    }
    
    // Stats returns a list of per-cookie socket statistics.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. test/fixedbugs/issue47185.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Another test to verify compiler and linker handling of multiple
    // competing map.zero symbol definitions.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 315 bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/search.go

    // a global) for tags, can include or exclude packages in the standard library,
    // and is restricted to the given list of modules.
    func matchPackages(ctx context.Context, m *search.Match, tags map[string]bool, filter stdFilter, modules []module.Version) {
    	ctx, span := trace.StartSpan(ctx, "modload.matchPackages")
    	defer span.Done()
    
    	m.Pkgs = []string{}
    
    	isMatch := func(string) bool { return true }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:15 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  10. src/runtime/pprof/label.go

    	parentLabels := labelValue(ctx)
    	childLabels := make(labelMap, len(parentLabels))
    	// TODO(matloob): replace the map implementation with something
    	// more efficient so creating a child context WithLabels doesn't need
    	// to clone the map.
    	for k, v := range parentLabels {
    		childLabels[k] = v
    	}
    	for _, label := range labels.list {
    		childLabels[label.key] = label.value
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top