Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 117 for fileText (0.2 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/gofmt/long_test.go

    	ngo     = flag.Int("n", runtime.NumCPU(), "number of goroutines used")
    	verbose = flag.Bool("verbose", false, "verbose mode")
    	nfiles  int // number of files processed
    )
    
    func gofmt(fset *token.FileSet, filename string, src *bytes.Buffer) error {
    	f, _, _, err := parse(fset, filename, src.Bytes(), false)
    	if err != nil {
    		return err
    	}
    	ast.SortImports(fset, f)
    	src.Reset()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 20:27:28 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. src/go/internal/gcimporter/support.go

    // We use -64 because it is rare; see issue 20080 and CL 41619.
    // -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)
  6. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go

    	if err != nil {
    		return nil, err
    	}
    	for _, f := range cgofiles {
    		checkCgo(pass.Fset, f, info, pass.Reportf)
    	}
    	return nil, nil
    }
    
    func checkCgo(fset *token.FileSet, f *ast.File, info *types.Info, reportf func(token.Pos, string, ...interface{})) {
    	ast.Inspect(f, func(n ast.Node) bool {
    		call, ok := n.(*ast.CallExpr)
    		if !ok {
    			return true
    		}
    
    		// Is this a C.f() call?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/project/DefaultAntBuilderTest.groovy

                'f1$$$$$$Some$OtherText',
                'f1$${Some}OtherText',
                'f1$${SomeOther$$$Text',
                'f1$$${my.property}Text',
                '${my.property}'],
                [AntType.FileSet, AntType.ResourceCollection]
            ].combinations()
        }
    
    
    }
    
    public class TestTask extends Task {
        @Override
        void execute() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 11 16:17:40 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  8. 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)
  9. cmd/preferredimports/preferredimports.go

    	isTerminal    = term.IsTerminal(int(os.Stdout.Fd()))
    	logPrefix     = ""
    	aliases       = map[*regexp.Regexp]string{}
    )
    
    type analyzer struct {
    	fset      *token.FileSet // positions are relative to fset
    	ctx       build.Context
    	failed    bool
    	donePaths map[string]interface{}
    }
    
    func newAnalyzer() *analyzer {
    	ctx := build.Default
    	ctx.CgoEnabled = true
    
    	a := &analyzer{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  10. platforms/jvm/testing-jvm/src/test/groovy/org/gradle/api/tasks/testing/TestTest.groovy

        private Test test
    
        def setup() {
            classesDir = temporaryFolder.createDir("classes")
            File classfile = new File(classesDir, "FileTest.class")
            FileUtils.touch(classfile)
            resultsDir = temporaryFolder.createDir("testResults")
            binResultsDir = temporaryFolder.createDir("binResults")
            reportDir = temporaryFolder.createDir("report")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 11.1K bytes
    - Viewed (0)
Back to top