Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for Reference (3.27 sec)

  1. doc/next/6-stdlib/2-unique.md

    The new [unique] package provides facilities for
    canonicalizing values (like "interning" or "hash-consing").
    
    Any value of comparable type may be canonicalized with the new
    `Make[T]` function, which produces a reference to a canonical copy of
    the value in the form of a `Handle[T]`.
    Two `Handle[T]` are equal if and only if the values used to produce the
    handles are equal, allowing programs to deduplicate values and reduce
    their memory footprint.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:13 UTC 2024
    - 566 bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/pos.go

    //
    // Keep this consistent with maxLineCol in go/scanner.
    const PosMax = 1 << 30
    
    // A Pos represents an absolute (line, col) source position
    // with a reference to position base for computing relative
    // (to a file, or line directive) position information.
    // Pos values are intentionally light-weight so that they
    // can be created without too much concern about space use.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 20:44:57 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  3. src/cmd/go/internal/workcmd/edit.go

    		DiskPath   string
    		ModulePath string
    	}
    
    	type Replace struct {
    		Old Module
    		New Module
    	}
    
    	type Module struct {
    		Path    string
    		Version string
    	}
    
    See the workspaces reference at https://go.dev/ref/mod#workspaces
    for more information.
    `,
    }
    
    var (
    	editFmt       = cmdEdit.Flag.Bool("fmt", false, "")
    	editGo        = cmdEdit.Flag.String("go", "", "")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/cmd/cgo/doc.go

    	void _cgo_reginit(void) { }
    
    The extra functions here are stubs to satisfy the references in the C
    code generated for gcc. The build process links this stub, along with
    _cgo_export.c and *.cgo2.c, into a dynamic executable and then lets
    cgo examine the executable. Cgo records the list of shared library
    references and resolved names and writes them into a new file
    _cgo_import.go, which looks like:
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 17:12:16 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/rangefunc/rewrite.go

    		Fun:     runtimeSym(r.info, "panicrangestate"),
    		ArgList: []syntax.Expr{arg},
    	}
    	setValueType(callPanicExpr, nil) // no result type
    	return &syntax.ExprStmt{X: callPanicExpr}
    }
    
    // next returns a reference to the #next variable.
    func (r *rewriter) next() *syntax.Name {
    	if r.nextVar == nil {
    		r.nextVar = r.declVar("#next", r.int.Type(), nil)
    	}
    	return r.useObj(r.nextVar)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/instantiate.go

    	// The order of the contexts below matters: we always prefer instances in the
    	// expanding instance context in order to preserve reference cycles.
    	//
    	// Invariant: if expanding != nil, the returned instance will be the instance
    	// recorded in expanding.inst.ctxt.
    	var ctxts []*Context
    	if expanding != nil {
    		ctxts = append(ctxts, expanding.inst.ctxt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. src/cmd/doc/main.go

    // of error is minute and even on Windows people will use ./
    // sometimes.
    var dotPaths = []string{
    	`./`,
    	`../`,
    	`.\`,
    	`..\`,
    }
    
    // isDotSlash reports whether the path begins with a reference
    // to the local . or .. directory.
    func isDotSlash(arg string) bool {
    	if arg == "." || arg == ".." {
    		return true
    	}
    	for _, dotPath := range dotPaths {
    		if strings.HasPrefix(arg, dotPath) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssagen/abi.go

    			}
    			// Add the ABI argument.
    			*pprag = append(*pprag, fn.ABI.String())
    		}
    
    		// Apply references.
    		if abis, ok := s.refs[symName]; ok {
    			fn.ABIRefs |= abis
    		}
    		// Assume all functions are referenced at least as
    		// ABIInternal, since they may be referenced from
    		// other packages.
    		fn.ABIRefs.Set(obj.ABIInternal, true)
    
    		// If a symbol is defined in this package (either in
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ir/func.go

    //
    // There are multiple nodes that represent a Func in the IR.
    //
    // The ONAME node (Func.Nname) is used for plain references to it.
    // The ODCLFUNC node (the Func itself) is used for its declaration code.
    // The OCLOSURE node (Func.OClosure) is used for a reference to a
    // function literal.
    //
    // An imported function will have an ONAME node which points to a Func
    // with an empty body.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/named.go

    	obj := NewTypeName(pos, orig.obj.pkg, orig.obj.name, nil)
    	inst := &instance{orig: orig, targs: newTypeList(targs)}
    
    	// Only pass the expanding context to the new instance if their packages
    	// match. Since type reference cycles are only possible within a single
    	// package, this is sufficient for the purposes of short-circuiting cycles.
    	// Avoiding passing the context in other cases prevents unnecessary coupling
    	// of types across packages.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 20:03:31 UTC 2024
    - 23.9K bytes
    - Viewed (0)
Back to top