Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. 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)
  2. src/go/ast/filter.go

    		filenames[i] = filename
    		i++
    		if f.Doc != nil {
    			ndocs += len(f.Doc.List) + 1 // +1 for separator
    		}
    		ncomments += len(f.Comments)
    		ndecls += len(f.Decls)
    		if i == 0 || f.FileStart < minPos {
    			minPos = f.FileStart
    		}
    		if i == 0 || f.FileEnd > maxPos {
    			maxPos = f.FileEnd
    		}
    	}
    	slices.Sort(filenames)
    
    	// Collect package comments from all package files into a single
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    	if slicesContains(pass.OtherFiles, filename) ||
    		slicesContains(pass.IgnoredFiles, filename) {
    		return nil
    	}
    	for _, f := range pass.Files {
    		// TODO(adonovan): use go1.20 f.FileStart
    		if pass.Fset.File(f.Pos()).Name() == filename {
    			return nil
    		}
    	}
    	return fmt.Errorf("Pass.ReadFile: %s is not among OtherFiles, IgnoredFiles, or names of Files", filename)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top