Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for original (0.13 sec)

  1. src/go/printer/printer_test.go

    		// ...
    		c*t.z
    }
    `
    
    	// parse original
    	f1, err := parser.ParseFile(fset, "src", src, parser.ParseComments)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// pretty-print original
    	var buf bytes.Buffer
    	err = (&Config{Mode: UseSpaces | SourcePos, Tabwidth: 8}).Fprint(&buf, fset, f1)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// parse pretty printed original
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/labels.go

    		}
    		if x == 20 {
    			continue L1 /* ERROR "invalid continue label L1" */
    		}
    		if x == 21 {
    			goto L1
    		}
    	}
    }
    
    // Additional tests not in the original files.
    
    func f2() {
    L1 /* ERROR "label L1 declared and not used" */ :
    	if x == 0 {
    		for {
    			continue L1 /* ERROR "invalid continue label L1" */
    		}
    	}
    }
    
    func f3() {
    L1:
    L2:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/typeset.go

    	// if a method is embedded via multiple overlapping embedded interfaces, we
    	// don't provide a guarantee which "original m" got chosen for the embedding
    	// interface. See also go.dev/issue/34421.
    	//
    	// If we don't care to provide this identity guarantee anymore, instead of
    	// reusing the original method in embeddings, we can clone the method's Func
    	// Object and give it the position of a corresponding embedded interface. Then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. src/vendor/golang.org/x/crypto/sha3/sha3_s390x.go

    // It does not change the underlying hash state.
    func (s *asmState) Sum(b []byte) []byte {
    	if s.state != spongeAbsorbing {
    		panic("sha3: Sum after Read")
    	}
    
    	// Copy the state to preserve the original.
    	a := s.a
    
    	// Hash the buffer. Note that we don't clear it because we
    	// aren't updating the state.
    	switch s.function {
    	case sha3_224, sha3_256, sha3_384, sha3_512:
    		klmd(s.function, &a, nil, s.buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  5. src/syscall/rlimit.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix
    
    package syscall
    
    import (
    	"sync/atomic"
    )
    
    // origRlimitNofile, if non-nil, is the original soft RLIMIT_NOFILE.
    var origRlimitNofile atomic.Pointer[Rlimit]
    
    // Some systems set an artificially low soft limit on open file count, for compatibility
    // with code that uses select and its hard-coded maximum file descriptor
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:57 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. src/go/types/typeset.go

    	// if a method is embedded via multiple overlapping embedded interfaces, we
    	// don't provide a guarantee which "original m" got chosen for the embedding
    	// interface. See also go.dev/issue/34421.
    	//
    	// If we don't care to provide this identity guarantee anymore, instead of
    	// reusing the original method in embeddings, we can clone the method's Func
    	// Object and give it the position of a corresponding embedded interface. Then
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. src/runtime/extern.go

    	the lock. But instead of the value corresponding to the amount of contention that call
    	stack caused, it corresponds to the amount of time the caller of unlock had to wait in its
    	original call to lock. A future release is expected to align those and remove this setting.
    
    	invalidptr: invalidptr=1 (the default) causes the garbage collector and stack
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. src/cmd/go/internal/modget/get.go

    }
    
    type resolver struct {
    	localQueries      []*query // queries for absolute or relative paths
    	pathQueries       []*query // package path literal queries in original order
    	wildcardQueries   []*query // path wildcard queries in original order
    	patternAllQueries []*query // queries with the pattern "all"
    
    	// Indexed "none" queries. These are also included in the slices above;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/rsc.io/markdown/inline.go

    	Plain
    	i int // position in input where bracket is
    }
    
    type emphPlain struct {
    	Plain
    	canOpen  bool
    	canClose bool
    	i        int // position in output where emph is
    	n        int // length of original span
    }
    
    type Escaped struct {
    	Plain
    }
    
    func (x *Escaped) printMarkdown(buf *bytes.Buffer) {
    	buf.WriteByte('\\')
    	x.Plain.printMarkdown(buf)
    }
    
    type Code struct {
    	Text string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  10. src/os/signal/doc.go

    flag and otherwise keep the signal handler. If Notify is called for an
    asynchronous signal, a Go signal handler will be installed for that
    signal. If, later, Reset is called for that signal, the original
    handling for that signal will be reinstalled, restoring the non-Go
    signal handler if any.
    
    Go code built without -buildmode=c-archive or -buildmode=c-shared will
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:11:00 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top