Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for original (0.41 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/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)
  3. src/os/exec/exec_test.go

    		t.Fatal(err)
    	}
    	if err := os.Chdir(dir); err != nil {
    		t.Fatal(err)
    	}
    	t.Logf("Chdir(%#q)", dir)
    
    	t.Cleanup(func() {
    		if err := os.Chdir(prev); err != nil {
    			// Couldn't chdir back to the original working directory.
    			// panic instead of t.Fatal so that we don't run other tests
    			// in an unexpected location.
    			panic("couldn't restore working directory: " + err.Error())
    		}
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types2/unify.go

    		}
    
    	case *Named:
    		// Two named types unify if their type names originate in the same type declaration.
    		// If they are instantiated, their type argument lists must unify.
    		if y := asNamed(y); y != nil {
    			// Check type arguments before origins so they unify
    			// even if the origins don't match; for better error
    			// messages (see go.dev/issue/53692).
    			xargs := x.TypeArgs().list()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. 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)
  6. src/go/types/unify.go

    		}
    
    	case *Named:
    		// Two named types unify if their type names originate in the same type declaration.
    		// If they are instantiated, their type argument lists must unify.
    		if y := asNamed(y); y != nil {
    			// Check type arguments before origins so they unify
    			// even if the origins don't match; for better error
    			// messages (see go.dev/issue/53692).
    			xargs := x.TypeArgs().list()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  7. src/math/big/float.go

    		// Below we set z.neg = x.neg, and when z aliases y this will
    		// change the y operand's sign. This is fine, because if an
    		// operand aliases the receiver it'll be overwritten, but we still
    		// want the original x.neg and y.neg values when we evaluate
    		// x.neg != y.neg, so we need to save y.neg before setting z.neg.
    		yneg := y.neg
    
    		z.neg = x.neg
    		if x.neg == yneg {
    			// x + y == x + y
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  8. src/os/exec/exec.go

    // The output of String may vary across Go releases.
    func (c *Cmd) String() string {
    	if c.Err != nil || c.lookPathErr != nil {
    		// failed to resolve path; report the original requested path (plus args)
    		return strings.Join(c.Args, " ")
    	}
    	// report the exact executable path (plus args)
    	b := new(strings.Builder)
    	b.WriteString(c.Path)
    	for _, a := range c.Args[1:] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/fsys/fsys.go

    			} else if fi.IsDir() {
    				return nil, &fs.PathError{Op: "Stat", Path: filepath.Join(dir, name), Err: nonFileInOverlayError(to.actualFilePath)}
    			}
    			// Add a fileinfo for the overlaid file, so that it has
    			// the original file's name, but the overlaid file's metadata.
    			files[name] = fakeFile{name, fi}
    		}
    	}
    	sortedFiles := diskfis[:0]
    	for _, f := range files {
    		sortedFiles = append(sortedFiles, f)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:35:34 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/func.go

    		return true
    	}
    	sym := f.fe.Func().Sym()
    	return base.DebugHashMatchPkgFunc(sym.Pkg.Path, sym.Name)
    }
    
    func (f *Func) spSb() (sp, sb *Value) {
    	initpos := src.NoXPos // These are originally created with no position in ssa.go; if they are optimized out then recreated, should be the same.
    	for _, v := range f.Entry.Values {
    		if v.Op == OpSB {
    			sb = v
    		}
    		if v.Op == OpSP {
    			sp = v
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top