Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 55 of 55 for fileText (0.12 sec)

  1. 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)
  2. 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)
  3. src/runtime/align_test.go

    	}
    
    	// Analyze all atomic.*64 callsites.
    	v := Visitor{t: t, fset: fset, types: info.Types, checked: checked}
    	ast.Walk(&v, pkg)
    }
    
    type Visitor struct {
    	fset    *token.FileSet
    	types   map[ast.Expr]types.TypeAndValue
    	checked map[string]bool
    	t       *testing.T
    }
    
    func (v *Visitor) Visit(n ast.Node) ast.Visitor {
    	c, ok := n.(*ast.CallExpr)
    	if !ok {
    		return v
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 08 14:52:12 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. src/go/types/eval_test.go

    	"fmt"
    	"go/ast"
    	"go/importer"
    	"go/parser"
    	"go/token"
    	"go/types"
    	"internal/godebug"
    	"internal/testenv"
    	"strings"
    	"testing"
    
    	. "go/types"
    )
    
    func testEval(t *testing.T, fset *token.FileSet, pkg *Package, pos token.Pos, expr string, typ Type, typStr, valStr string) {
    	gotTv, err := Eval(fset, pkg, pos, expr)
    	if err != nil {
    		t.Errorf("Eval(%q) failed: %s", expr, err)
    		return
    	}
    	if gotTv.Type == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 19:56:15 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go

    //
    // The Run function should not call any of the Pass functions concurrently.
    type Pass struct {
    	Analyzer *Analyzer // the identity of the current analyzer
    
    	// 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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top