- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 241 for fileset (0.25 sec)
-
src/go/format/format.go
// nodes representing partial source files (for instance, if the node is // not an *[ast.File] or a *[printer.CommentedNode] not wrapping an *[ast.File]). // // The function may return early (before the entire result is written) // and return a formatting error, for instance due to an incorrect AST. func Node(dst io.Writer, fset *token.FileSet, node any) error {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 4.3K bytes - Viewed (0) -
src/go/ast/commentmap.go
// } // return cmp.Compare(a.End(), b.End()) // }) return list } // A commentListReader helps iterating through a list of comment groups. type commentListReader struct { fset *token.FileSet list []*CommentGroup index int comment *CommentGroup // comment group at current index pos, end token.Position // source interval of comment group at current index }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/gofmt/long_test.go
nfiles++ } return nil } // test Go files provided via -files, if any if *files != "" { for _, filename := range strings.Split(*files, ",") { fi, err := os.Stat(filename) handleFile(filename, fs.FileInfoToDirEntry(fi), err) } return // ignore files under -root } // otherwise, test all Go files under *root goroot := *root if goroot == "" {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 20:27:28 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/internal/analysisflags/flags.go
} // ---- output helpers common to all drivers ---- // PrintPlain prints a diagnostic in plain text form, // with context specified by the -c flag. func PrintPlain(fset *token.FileSet, diag analysis.Diagnostic) { posn := fset.Position(diag.Pos) fmt.Fprintf(os.Stderr, "%s: %s\n", posn, diag.Message) // -c=N: show offending line plus N lines of context. if Context >= 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 12.1K bytes - Viewed (0) -
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) -
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)