Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 65 for fileset (0.11 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/internal/modindex/build.go

    func (e *NoGoError) Error() string {
    	return "no buildable Go source files in " + e.Dir
    }
    
    // MultiplePackageError describes a directory containing
    // multiple buildable Go source files for multiple packages.
    type MultiplePackageError struct {
    	Dir      string   // directory containing files
    	Packages []string // package names found
    	Files    []string // corresponding files: Files[i] declares package Packages[i]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 25 17:39:23 UTC 2023
    - 26.8K bytes
    - Viewed (0)
  9. src/go/types/typestring.go

    				if isTypes2 {
    					w.string(fmt.Sprintf(" /* with %s declared at %v */", t.obj.name, t.obj.Pos()))
    				} else {
    					// Can't print position information because
    					// we don't have a token.FileSet accessible.
    					w.string("/* type parameter */")
    				}
    			}
    		}
    
    	case *Alias:
    		w.typeName(t.obj)
    		if list := t.targs.list(); len(list) != 0 {
    			// instantiated type
    			w.typeList(list)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/typestring.go

    				if isTypes2 {
    					w.string(fmt.Sprintf(" /* with %s declared at %v */", t.obj.name, t.obj.Pos()))
    				} else {
    					// Can't print position information because
    					// we don't have a token.FileSet accessible.
    					w.string("/* type parameter */")
    				}
    			}
    		}
    
    	case *Alias:
    		w.typeName(t.obj)
    		if list := t.targs.list(); len(list) != 0 {
    			// instantiated type
    			w.typeList(list)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top