Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for Hines (0.84 sec)

  1. src/cmd/covdata/tool_test.go

    	lines := runToolOp(t, s, "pkglist", dargs)
    
    	want := []string{mainPkgPath, mainPkgPath + "/dep"}
    	bad := false
    	if len(lines) != 2 {
    		t.Errorf("expect pkglist to return two lines")
    		bad = true
    	} else {
    		for i := 0; i < 2; i++ {
    			lines[i] = strings.TrimSpace(lines[i])
    			if want[i] != lines[i] {
    				t.Errorf("line %d want %s got %s", i, want[i], lines[i])
    				bad = true
    			}
    		}
    	}
    	if bad {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag.go

    	return nil
    }
    
    type checker struct {
    	pass         *analysis.Pass
    	plusBuildOK  bool            // "+build" lines still OK
    	goBuildOK    bool            // "go:build" lines still OK
    	crossCheck   bool            // cross-check go:build and +build lines when done reading file
    	inStar       bool            // currently in a /* */ comment
    	goBuildPos   token.Pos       // position of first go:build line found
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    	content, tf, err := analysisutil.ReadFile(pass, filename)
    	if err != nil {
    		return err
    	}
    
    	// We must look at the raw lines, as build tags may appear in non-Go
    	// files such as assembly files.
    	lines := bytes.SplitAfter(content, nl)
    
    	// Determine cutpoint where +build comments are no longer valid.
    	// They are valid in leading // comments in the file followed by
    	// a blank line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  4. src/cmd/fix/buildtag.go

    		return false
    	}
    
    	// File is already gofmt-ed, so we know that if there are +build lines,
    	// they are in a comment group that starts with a //go:build line followed
    	// by a blank line. While we cannot delete comments from an AST and
    	// expect consistent output in general, this specific case - deleting only
    	// some lines from a comment block - does format correctly.
    	fixed := false
    	for _, g := range f.Comments {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/envcmd/env.go

    		base.Fatalf("go: reading go env config: %v", err)
    	}
    	lines := strings.SplitAfter(string(data), "\n")
    	if lines[len(lines)-1] == "" {
    		lines = lines[:len(lines)-1]
    	} else {
    		lines[len(lines)-1] += "\n"
    	}
    	return lines
    }
    
    func updateEnvFile(add map[string]string, del map[string]bool) {
    	lines := readEnvFileLines(len(add) == 0)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/telemetry/internal/counter/parse.go

    	if i := bytes.IndexByte(meta, 0); i >= 0 {
    		meta = meta[:i]
    	}
    	m := &mappedFile{
    		meta:    string(meta),
    		hdrLen:  hdrLen,
    		mapping: &mmap.Data{Data: data},
    	}
    
    	lines := strings.Split(m.meta, "\n")
    	for _, line := range lines {
    		if line == "" {
    			continue
    		}
    		k, v, ok := strings.Cut(line, ": ")
    		if !ok {
    			return corrupt()
    		}
    		f.Meta[k] = v
    	}
    
    	for i := uint32(0); i < numHash; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 14:38:01 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go

    	// -c=N: show offending line plus N lines of context.
    	if Context >= 0 {
    		posn := fset.Position(diag.Pos)
    		end := fset.Position(diag.End)
    		if !end.IsValid() {
    			end = posn
    		}
    		data, _ := os.ReadFile(posn.Filename)
    		lines := strings.Split(string(data), "\n")
    		for i := posn.Line - Context; i <= end.Line+Context; i++ {
    			if 1 <= i && i <= len(lines) {
    				fmt.Fprintf(os.Stderr, "%d\t%s\n", i, lines[i-1])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 19:00:13 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. src/cmd/dist/testjson.go

    	w       io.Writer // Underlying writer
    	variant string    // Add ":variant" to Package field
    
    	lineBuf bytes.Buffer // Buffer for incomplete lines
    }
    
    func (f *testJSONFilter) Write(b []byte) (int, error) {
    	bn := len(b)
    
    	// Process complete lines, and buffer any incomplete lines.
    	for len(b) > 0 {
    		nl := bytes.IndexByte(b, '\n')
    		if nl < 0 {
    			f.lineBuf.Write(b)
    			break
    		}
    		var line []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 20:46:32 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. doc/next/4-runtime.md

    ## Runtime {#runtime}
    
    The traceback printed by the runtime after an unhandled panic or other
    fatal error now indents the second and subsequent lines of the error
    message (for example, the argument to panic) by a single tab, so that
    it can be unambiguously distinguished from the stack trace of the
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 19:10:41 UTC 2024
    - 359 bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/work_errors_pos.txt

    # Test case for #67623 in go.work files: make sure the errors are
    # printed on lines starting with file and line number so they
    # can be easily parsed by tools.
    
    cp go.work.repeated.txt go.work
    ! go list
    stderr '^go.work:4: path .* appears multiple times in workspace$'
    
    cp go.work.badgodebug.txt go.work
    ! go list
    stderr '^go.work:3: unknown godebug "foo"$'
    
    cp go.work.unparsable.txt go.work
    ! go list
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 926 bytes
    - Viewed (0)
Back to top