Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FileStart (0.91 sec)

  1. src/runtime/metrics/description_test.go

    	}
    	if updated {
    		fmt.Fprintf(os.Stderr, "go test -generate: writing new doc.go\n")
    		var buf bytes.Buffer
    		buf.Write(src[:fdoc.Pos()-f.FileStart])
    		buf.WriteString("/*\n")
    		buf.Write(new(comment.Printer).Comment(doc))
    		buf.WriteString("*/")
    		buf.Write(src[fdoc.End()-f.FileStart:])
    		src, err := format.Source(buf.Bytes())
    		if err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 20 22:54:22 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  2. src/go/types/version.go

    	assert(pos.IsValid())
    	// Eval and CheckExpr tests may not have any source files.
    	if len(check.files) == 0 {
    		return nil
    	}
    	for _, file := range check.files {
    		if file.FileStart <= pos && pos < file.FileEnd {
    			return file
    		}
    	}
    	panic(check.sprintf("file not found for pos = %d (%s)", int(pos), check.fset.Position(pos)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 23:12:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  3. src/go/ast/example_test.go

    	//     43  .  .  .  .  .  .  }
    	//     44  .  .  .  .  .  }
    	//     45  .  .  .  .  }
    	//     46  .  .  .  .  Rbrace: 5:1
    	//     47  .  .  .  }
    	//     48  .  .  }
    	//     49  .  }
    	//     50  .  FileStart: 1:1
    	//     51  .  FileEnd: 5:3
    	//     52  .  Scope: *ast.Scope {
    	//     53  .  .  Objects: map[string]*ast.Object (len = 1) {
    	//     54  .  .  .  "main": *(obj @ 11)
    	//     55  .  .  }
    	//     56  .  }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:44:50 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go

    	ResultOf map[*Analyzer]interface{}
    
    	// ReadFile returns the contents of the named file.
    	//
    	// The only valid file names are the elements of OtherFiles
    	// and IgnoredFiles, and names returned by
    	// Fset.File(f.FileStart).Name() for each f in Files.
    	//
    	// Analyzers must use this function (if provided) instead of
    	// accessing the file system directly. This allows a driver to
    	// provide a virtualized file tree (including, for example,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top