- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 69 for Fset (0.08 sec)
-
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
"go/token" "go/types" "os" "strconv" "golang.org/x/tools/go/analysis" "golang.org/x/tools/internal/aliases" ) func TypeErrorEndPos(fset *token.FileSet, src []byte, start token.Pos) token.Pos { // Get the end position for the type error. offset, end := fset.PositionFor(start, false).Offset, start if offset >= len(src) { return end } if width := bytes.IndexAny(src[offset:], " \n,():;[]+-*"); width > 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/diagnostic.go
// which should be a constant, may be used to classify them. // It is primarily intended to make it easy to look up documentation. // // All Pos values are interpreted relative to Pass.Fset. If End is // provided, the diagnostic is specified to apply to the range between // Pos and End. type Diagnostic struct { Pos token.Pos End token.Pos // optional Category string // optional
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 2.6K bytes - Viewed (0) -
src/go/internal/gcimporter/iimport.go
// name (name with subscript). tparamIndex: make(map[ident]*types.TypeParam), fake: fakeFileSet{ fset: fset, files: make(map[string]*fileInfo), }, } defer p.fake.setLines() // set lines for files in fset for i, pt := range predeclared { p.typCache[uint64(i)] = pt } // Special handling for "any", whose representation may be changed by the
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
src/go/types/check.go
errpos positioner // if set, identifier position of a constant with inherited initializer inTParamList bool // set if inside a type parameter list sig *Signature // function signature if inside a function; nil otherwise isPanic map[*ast.CallExpr]bool // set of panic call expressions (used for termination check)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 23.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/analysis.go
// just as export data enables separate compilation of several passes, // facts enable "separate analysis". // // Each pass (a, p) starts with the set of facts produced by the // same analyzer a applied to the packages directly imported by p. // The analysis may add facts to the set, and they may be exported in turn. // An analysis's Run function may retrieve facts by calling // Pass.Import{Object,Package}Fact and update them using
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 9.1K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
} // readUnifiedPackage reads a package description from the given // unified IR export data decoder. func readUnifiedPackage(fset *token.FileSet, ctxt *types.Context, imports map[string]*types.Package, input pkgbits.PkgDecoder) *types.Package { pr := pkgReader{ PkgDecoder: input, fake: fakeFileSet{ fset: fset, files: make(map[string]*fileInfo), }, ctxt: ctxt, imports: imports,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 16.6K bytes - Viewed (0) -
src/go/types/resolver.go
obj = scope.Lookup(ident.Name) } } // If Config.go115UsesCgo is set, the typechecker will resolve Cgo // selectors to their cgo name. We must do the same here. if pname, _ := obj.(*PkgName); pname != nil { if pname.imported.cgo { // only set if Config.go115UsesCgo is set name = "_Ctype_" + typ.Sel.Name } } } if name == "" { return false, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 16:22:59 UTC 2024 - 26.1K bytes - Viewed (0) -
src/go/build/deps_test.go
continue } if !strings.HasSuffix(name, ".go") || strings.HasSuffix(name, "_test.go") { continue } info := fileInfo{ name: filepath.Join(dir, name), fset: fset, } f, err := os.Open(info.name) if err != nil { return nil, err } err = readGoInfo(f, &info) f.Close() if err != nil { return nil, fmt.Errorf("reading %v: %v", name, err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 16:41:13 UTC 2024 - 19.2K bytes - Viewed (0) -
src/go/types/labels.go
if t := s.lstmt; t != nil && t.Label.Name == name { return t } } return nil } // blockBranches processes a block's statement list and returns the set of outgoing forward jumps. // all is the scope of all declared labels, parent the set of labels declared in the immediately // enclosing block, and lstmt is the labeled statement this block is associated with (or nil).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 7.2K bytes - Viewed (0) -
src/go/types/generate_test.go
dstDir = "/src/go/types/" ) // TestGenerate verifies that generated files in go/types match their types2 // counterpart. If -write is set, this test actually writes the expected // content to go/types; otherwise, it just compares with the existing content. func TestGenerate(t *testing.T) { // If filesToWrite is set, write the generated content to disk. // In the special case of "all", write all files in filemap. write := *filesToWrite != ""
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 16.5K bytes - Viewed (0)