- Sort Score
- Result 10 results
- Languages All
Results 31 - 39 of 39 for fileText (0.5 sec)
-
src/go/types/check_test.go
for _, err := range list { errlist = append(errlist, err) } } else { errlist = append(errlist, err) } } } return files, errlist } func unpackError(fset *token.FileSet, err error) (token.Position, string) { switch err := err.(type) { case *scanner.Error: return err.Pos, err.Msg case Error: return fset.Position(err.Pos), err.Msg } panic("unreachable") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 19:45:33 UTC 2024 - 14.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/doc.go
package being analyzed, and provides operations to the Run function for reporting diagnostics and other information back to the driver. type Pass struct { Fset *token.FileSet Files []*ast.File OtherFiles []string IgnoredFiles []string Pkg *types.Package TypesInfo *types.Info ResultOf map[*Analyzer]interface{} Report func(Diagnostic)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13.3K bytes - Viewed (0) -
src/go/types/generate_test.go
n.Values[0].(*ast.CompositeLit).Type.(*ast.ArrayType).Len = nil return false } } return true }) } // fixSprintf adds an extra nil argument for the *token.FileSet parameter in sprintf calls. func fixSprintf(f *ast.File) { ast.Inspect(f, func(n ast.Node) bool { switch n := n.(type) { case *ast.CallExpr: if isIdent(n.Fun, "sprintf") && len(n.Args) >= 4 /* ... args */ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 16.5K bytes - Viewed (0) -
src/go/internal/gcimporter/ureader.go
func (pr *pkgReader) later(fn func()) { pr.laterFns = append(pr.laterFns, fn) } // 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),
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/internal/gcimporter/iimport.go
// and returns the number of bytes consumed and a reference to the package. // If the export data version is not recognized or the format is otherwise // compromised, an error is returned. func iImportData(fset *token.FileSet, imports map[string]*types.Package, dataReader *bufio.Reader, path string) (pkg *types.Package, err error) { const currentVersion = iexportVersionCurrent version := int64(-1) defer func() { if e := recover(); e != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 19.2K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/releases/migrating/migrating_from_ant.adoc
The chapter on <<ant#ant,Ant integration>> has examples that use both `<path>` and `<fileset>`. There is also link:{javadocPath}/org/gradle/api/file/FileCollection.html#addToAntBuilder-java.lang.Object-java.lang.String-org.gradle.api.file.FileCollection.AntType-[a method on `FileCollection`] that will convert a file collection to a fileset or similar Ant type. -- [[migant:properties]] == Migrating Ant properties
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Mar 23 22:37:03 UTC 2024 - 37.7K bytes - Viewed (0) -
src/cmd/doc/pkg.go
doc *doc.Package build *build.Package typedValue map[*doc.Value]bool // Consts and vars related to types. constructor map[*doc.Func]bool // Constructors. fs *token.FileSet // Needed for printing. buf pkgBuffer } func (pkg *Package) ToText(w io.Writer, text, prefix, codePrefix string) { d := pkg.doc.Parser().Parse(text) pr := pkg.doc.Printer() pr.TextPrefix = prefix
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 08 20:15:52 UTC 2024 - 32K bytes - Viewed (0) -
src/go/types/issues_test.go
const w = 1 // defs w x, y := 2, 3 // defs x, y w, x, z := 4, 5, 6 // uses w, x, defs z; error: cannot assign to w _, _, _ = x, y, z // uses x, y, z } ` // We need a specific fileset in this test below for positions. // Cannot use typecheck helper. fset := token.NewFileSet() f := mustParse(fset, src) const want = `L3 defs func p._() L4 defs const w untyped int L5 defs var x int
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 28.1K bytes - Viewed (0) -
src/cmd/cover/cover.go
counterVar string } // File is a wrapper for the state of a file used in the parser. // The basic parse tree walker is a method of this type. type File struct { fset *token.FileSet name string // Name of file. astFile *ast.File blocks []Block content []byte edit *edit.Buffer mdb *encodemeta.CoverageMetaDataBuilder fn Func pkg *Package }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 34.5K bytes - Viewed (0)