- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 282 for fileset (0.2 sec)
-
src/go/doc/doc.go
// // NewFromFiles takes ownership of the AST files and may edit them, // unless the PreserveAST Mode bit is on. func NewFromFiles(fset *token.FileSet, files []*ast.File, importPath string, opts ...any) (*Package, error) { // Check for invalid API usage. if fset == nil { panic(fmt.Errorf("doc.NewFromFiles: no token.FileSet provided (fset == nil)")) } var mode Mode
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 11.2K bytes - Viewed (0) -
src/go/internal/gcimporter/support.go
// -64 is the smallest int that fits in a single byte as a varint. const deltaNewFile = -64 // Synthesize a token.Pos type fakeFileSet struct { fset *token.FileSet files map[string]*fileInfo } type fileInfo struct { file *token.File lastline int } const maxlines = 64 * 1024 func (s *fakeFileSet) pos(file string, line, column int) token.Pos {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go
// analyses on raw cgo files. One could synthesize a "C" package so that // C.f would resolve to "·this·"._C_func_f, for example. But we have // limited ourselves here to preserving function bodies and initializer // expressions since that is all that the cgocall analyzer needs.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 11.2K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultAntBuilderTest.groovy
File fileWithDollars = project.file(dirAndFile) fileWithDollars << "Some Text" FileCollection files = project.getLayout().files(dirAndFile) when: ant.property(name: "my.property", value: "doesNotExist") ant.delete { files.addToAntBuilder(delegate, null, antType) } then: !fileWithDollars.exists() where:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Aug 11 16:17:40 UTC 2022 - 7.7K bytes - Viewed (0) -
src/cmd/cover/func.go
startLine int startCol int endLine int endCol int } // FuncVisitor implements the visitor that builds the function position list for a file. type FuncVisitor struct { fset *token.FileSet name string // Name of file. astFile *ast.File funcs []*FuncExtent } // Visit implements the ast.Visitor interface. func (v *FuncVisitor) Visit(node ast.Node) ast.Visitor {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 17:49:12 UTC 2022 - 6.3K bytes - Viewed (0) -
cmd/preferredimports/preferredimports.go
if id.Name == old { id.Name = new } } return true }) } func (a *analyzer) filterFiles(fs map[string]*ast.File) []*ast.File { var files []*ast.File for _, f := range fs { files = append(files, f) } return files } type collector struct { dirs []string regex *regexp.Regexp } // handlePath walks the filesystem recursively, collecting directories,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 01 06:06:44 UTC 2024 - 7.1K bytes - Viewed (0) -
src/go/printer/printer.go
wsbuf: make([]whiteSpace, 0, 16), // We start the printer with a 16K output buffer, which is currently // larger than about 80% of Go files in the standard library. output: make([]byte, 0, 16<<10), } }, } func newPrinter(cfg *Config, fset *token.FileSet, nodeSizes map[ast.Node]int) *printer { p := printerPool.Get().(*printer) *p = printer{ Config: *cfg, fset: fset,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 41.6K bytes - Viewed (0) -
src/go/internal/gcimporter/gcimporter.go
// the corresponding package object to the packages map, and returns the object. // The packages map must contain all packages already imported. func Import(fset *token.FileSet, packages map[string]*types.Package, path, srcDir string, lookup func(path string) (io.ReadCloser, error)) (pkg *types.Package, err error) { var rc io.ReadCloser var id string if lookup != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.4K bytes - Viewed (0) -
src/runtime/align_test.go
} pkg := m["runtime"] // Note: ignore runtime_test and main packages // Filter files by those for the current architecture/os being tested. fileMap := map[string]bool{} for _, f := range buildableFiles(t, ".") { fileMap[f] = true } var files []*ast.File for fname, f := range pkg.Files { if fileMap[fname] { files = append(files, f) } } // Call go/types to analyze the runtime package. var info types.Info
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 5.4K bytes - Viewed (0) -
src/go/types/api.go
// errors. // // The package is specified by a list of *ast.Files and corresponding // file set, and the package path the package is identified with. // The clean path must not be empty or dot ("."). func (conf *Config) Check(path string, fset *token.FileSet, files []*ast.File, info *Info) (*Package, error) { pkg := NewPackage(path, "") return pkg, NewChecker(conf, fset, pkg, info).Files(files)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 19:57:43 UTC 2024 - 17.2K bytes - Viewed (0)