- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 55 for fileText (0.29 sec)
-
src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go
import ( "bytes" "fmt" "go/ast" "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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 11.7K bytes - Viewed (0) -
platforms/documentation/docs/src/docs/userguide/authoring-builds/other/ant.adoc
You execute an Ant task by calling a method on the `AntBuilder` instance. You use the task name as the method name: .build.gradle [source,groovy] ---- ant.mkdir(dir: "$STAGE") ant.copy(todir: "$STAGE/bin") { ant.fileset(dir: 'bin', includes: "**") } ant.gzip(destfile:"build/file-${VERSION}.tar.gz", src: "build/file-${VERSION}.tar") ---- For example, you execute the Ant `echo` task using the `ant.echo()` method.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 10 15:23:52 UTC 2024 - 13.1K bytes - Viewed (0) -
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/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) -
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) -
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) -
subprojects/core-api/src/main/java/org/gradle/api/Project.java
* Consider following example of ant target: * <pre> * <target name='printChecksum'> * <checksum property='checksumOut'> * <fileset dir='.'> * <include name='agile.txt'/> * </fileset> * </checksum> * <echo>The checksum is: ${checksumOut}</echo> * </target> * </pre> *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 04:56:22 UTC 2024 - 74.3K bytes - Viewed (0) -
api/maven-api-model/src/main/mdo/maven.mdo
return "Scm {connection=" + getConnection() + "}"; } ]]> </code> </codeSegment> </codeSegments> </class> <class> <name>FileSet</name> <version>3.0.0+</version> <superClass>PatternSet</superClass> <description>A PatternSet for files.</description> <fields> <field> <name>directory</name>
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Apr 23 13:29:46 UTC 2024 - 115.1K bytes - Viewed (0)