- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 117 for fileText (0.24 sec)
-
src/go/importer/importer_test.go
pkg, err := imp.Import(thePackage) if err != nil { t.Fatal(err) } if pkg.Path() != thePackage { t.Fatalf("Path() = %q, want %q", pkg.Path(), thePackage) } // Check that the fileset positions are accurate. // https://github.com/golang/go#28995 mathBigInt := pkg.Scope().Lookup("Int") posn := fset.Position(mathBigInt.Pos()) // "$GOROOT/src/math/big/int.go:25:1"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 25 21:16:32 UTC 2023 - 2.8K bytes - Viewed (0) -
src/go/doc/doc_test.go
t.Funcs(template.FuncMap{ "node": nodeFmt, "synopsis": synopsisFmt, "indent": indentFmt, }) return template.Must(t.ParseFiles(filepath.Join(dataDir, filename))) } func nodeFmt(node any, fset *token.FileSet) string { var buf bytes.Buffer printer.Fprint(&buf, fset, node) return strings.ReplaceAll(strings.TrimSpace(buf.String()), "\n", "\n\t") } func synopsisFmt(s string) string { const n = 64 if len(s) > n {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 11 16:31:52 UTC 2022 - 6.7K bytes - Viewed (0) -
src/go/types/example_test.go
package fib type S string var a, b, c = len(b), S(c), "hello" func fib(x int) int { if x < 2 { return x } return fib(x-1) - fib(x-2) }` // We need a specific fileset in this test below for positions. // Cannot use typecheck helper. fset := token.NewFileSet() f := mustParse(fset, input) // Type-check the package. // We create an empty map for each kind of input
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 8.9K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go
// (Note that the eventual API will likely be quite different.) // // The defaults honor a Config in a manner compatible with 'go vet'. var ( makeTypesImporter = func(cfg *Config, fset *token.FileSet) types.Importer { compilerImporter := importer.ForCompiler(fset, cfg.Compiler, func(path string) (io.ReadCloser, error) { // path is a resolved package path, not an import path. file, ok := cfg.PackageFile[path]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
src/go/doc/example_test.go
} if got != want { t.Errorf("%s mismatch:\n%s", sectionName, diff.Diff("want", []byte(want), "got", []byte(got))) } } }) } } func formatFile(t *testing.T, fset *token.FileSet, n *ast.File) string { t.Helper() if n == nil { return "<nil>" } var buf bytes.Buffer if err := format.Node(&buf, fset, n); err != nil { t.Fatal(err) } return buf.String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 10 16:17:51 UTC 2022 - 9.6K bytes - Viewed (0) -
maven-core/src/test/resources-project-builder/foo/sub/pom.xml
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Sep 22 08:59:31 UTC 2023 - 15.6K bytes - Viewed (0) -
src/go/internal/srcimporter/srcimporter.go
"strings" "sync" _ "unsafe" // for go:linkname ) // An Importer provides the context for importing packages from source code. type Importer struct { ctxt *build.Context fset *token.FileSet sizes types.Sizes packages map[string]*types.Package } // New returns a new Importer for the given context, file set, and map // of packages. The context is used to resolve import paths to package paths,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:54:32 UTC 2022 - 8.2K bytes - Viewed (0) -
maven-core/src/test/java/org/apache/maven/project/PomConstructionTest.java
assertEquals("target", pom.getValue("build/plugins[1]/configuration/domParam/copy/fileset/@dir")); assertNull(pom.getValue("build/plugins[1]/configuration/domParam/copy/fileset/@todir")); assertNull(pom.getValue("build/plugins[1]/configuration/domParam/copy/fileset/@overwrite")); } /** MNG-4053*/ @Test
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Apr 12 10:50:18 UTC 2024 - 93.2K bytes - Viewed (0) -
src/debug/macho/file_test.go
package macho import ( "bytes" "internal/obscuretestdata" "io" "reflect" "testing" ) type fileTest struct { file string hdr FileHeader loads []any sections []*SectionHeader relocations map[string][]Reloc } var fileTests = []fileTest{ { "testdata/gcc-386-darwin-exec.base64", FileHeader{0xfeedface, Cpu386, 0x3, 0x2, 0xc, 0x3c0, 0x85}, []any{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Dec 13 18:45:54 UTC 2021 - 12.4K bytes - Viewed (0) -
src/go/format/format.go
// // The function may return early (before the entire result is written) // and return a formatting error, for instance due to an incorrect AST. func Node(dst io.Writer, fset *token.FileSet, node any) error { // Determine if we have a complete source file (file != nil). var file *ast.File var cnode *printer.CommentedNode switch n := node.(type) { case *ast.File: file = n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 4.3K bytes - Viewed (0)