- Sort Score
- Result 10 results
- Languages All
Results 111 - 120 of 274 for Fset (0.04 sec)
-
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go
if err := checkOtherFile(pass, name); err != nil { return nil, err } } for _, name := range pass.IgnoredFiles { if strings.HasSuffix(name, ".go") { f, err := parser.ParseFile(pass.Fset, name, nil, parser.ParseComments) if err != nil { // Not valid Go source code - not our job to diagnose, so ignore. return nil, nil } checkGoFile(pass, f) } else {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 4.3K bytes - Viewed (0) -
src/go/types/version.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 23:12:40 UTC 2024 - 3.2K bytes - Viewed (0) -
src/cmd/gofmt/rewrite.go
r.Comments = cmap.Filter(r).Comments() // recreate comments list return r } // set is a wrapper for x.Set(y); it protects the caller from panics if x cannot be changed to y. func set(x, y reflect.Value) { // don't bother if x cannot be set or y is invalid if !x.CanSet() || !y.IsValid() { return } defer func() { if x := recover(); x != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 27 22:07:13 UTC 2023 - 8.1K 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/cmd/vendor/golang.org/x/tools/go/analysis/passes/shift/shift.go
sizes[size] = struct{}{} } minSize := int64(math.MaxInt64) for size := range sizes { if size < minSize { minSize = size } } if amt >= minSize { ident := analysisutil.Format(pass.Fset, x) qualifier := "" if len(sizes) > 1 { qualifier = "may be " } pass.ReportRangef(node, "%s (%s%d bits) too small for shift of %d", ident, qualifier, minSize, amt) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K 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/cmd/go/internal/modindex/build.go
if ext != ".go" && fileListForExt(&dummyPkg, ext) == nil { // skip return nil, errNonSource } info := &fileInfo{name: filepath.Join(dir, name), fset: fset} if ext == ".syso" { // binary, no reading return info, nil } f, err := fsys.Open(info.name) if err != nil { return nil, err } // TODO(matloob) should we decide whether to ignore binary only here or earlier
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Aug 25 17:39:23 UTC 2023 - 26.8K bytes - Viewed (0) -
src/cmd/cgo/out.go
fmt.Fprintf(&gccgoInit, "\t%s = &%s;\n", n.Mangle, n.C) fmt.Fprintf(fc, "\n") } fmt.Fprintf(fgo2, "var %s ", n.Mangle) conf.Fprint(fgo2, fset, node) if !*gccgo { fmt.Fprintf(fgo2, " = (") conf.Fprint(fgo2, fset, node) fmt.Fprintf(fgo2, ")(unsafe.Pointer(&__cgo_%s))", n.C) } fmt.Fprintf(fgo2, "\n") } if *gccgo { fmt.Fprintf(fc, "\n") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 29 16:41:10 UTC 2024 - 59.6K bytes - Viewed (0)