Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 138 for fileset (0.24 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/go/types/eval_test.go

    		case "", "1":
    			if strings.Contains(src, "interface{R}.Read") {
    				continue
    			}
    		}
    
    		files = append(files, file)
    	}
    
    	conf := Config{Importer: importer.Default()}
    	pkg, err := conf.Check("p", fset, files, nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	for _, file := range files {
    		for _, group := range file.Comments {
    			for _, comment := range group.List {
    				s := comment.Text
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/file-collections/src/main/java/org/gradle/api/internal/file/AbstractFileCollection.java

                // This is just a super simple implementation for now
                Set<File> files = fileCollection.getFiles();
                ImmutableSet.Builder<FileSystemLocation> builder = ImmutableSet.builderWithExpectedSize(files.size());
                for (File file : files) {
                    builder.add(new DefaultFileSystemLocation(file));
                }
                return builder.build();
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:50 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go

    	// syntax and type information
    	Fset         *token.FileSet // file position information; Run may add new files
    	Files        []*ast.File    // the abstract syntax tree of each file
    	OtherFiles   []string       // names of non-Go files of this package
    	IgnoredFiles []string       // names of ignored source files in this package
    	Pkg          *types.Package // type information about the package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  10. src/go/types/check.go

    	seenPkgMap map[*Package]bool
    
    	// information collected during type-checking of a set of package files
    	// (initialized by Files, valid only for the duration of check.Files;
    	// maps and lists are allocated on demand)
    	files         []*ast.File               // package files
    	versions      map[*ast.File]string      // maps files to version strings (each file has an entry); shared with Info.FileVersions if present
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top