- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for printError (0.37 sec)
-
src/cmd/fix/main.go
var gofmtBuf strings.Builder if err := format.Node(&gofmtBuf, fset, n); err != nil { return "<" + err.Error() + ">" } return gofmtBuf.String() } func report(err error) { scanner.PrintError(os.Stderr, err) exitCode = 2 } func walkDir(path string) { filepath.WalkDir(path, visitFile) } func visitFile(path string, f fs.DirEntry, err error) error { if err == nil && isGoFile(f) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 5.4K bytes - Viewed (0) -
src/cmd/gofmt/gofmt.go
// changing its exit code to a nonzero value. func (r *reporter) Report(err error) { if err == nil { panic("Report with nil error") } st := r.getState() scanner.PrintError(st.err, err) st.exitCode = 2 } func (r *reporter) ExitCode() int { return r.getState().exitCode } // If info == nil, we are formatting stdin instead of a file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 15.1K bytes - Viewed (0) -
maven-compat/src/test/java/org/apache/maven/artifact/resolver/ArtifactResolverTest.java
set, projectArtifact, remoteRepositories(), localRepository(), mds); printErrors(result); i = result.getArtifacts().iterator(); assertEquals(m, i.next(), "m should be first"); assertEquals(n, i.next(), "n should be second"); } private void printErrors(ArtifactResolutionResult result) { if (result.hasMissingArtifacts()) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu Apr 25 05:46:50 UTC 2024 - 10.1K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"(ErrorList).Swap", Method, 0}, {"Error", Type, 0}, {"Error.Msg", Field, 0}, {"Error.Pos", Field, 0}, {"ErrorHandler", Type, 0}, {"ErrorList", Type, 0}, {"Mode", Type, 0}, {"PrintError", Func, 0}, {"ScanComments", Const, 0}, {"Scanner", Type, 0}, {"Scanner.ErrorCount", Field, 0}, }, "go/token": { {"(*File).AddLine", Method, 0}, {"(*File).AddLineColumnInfo", Method, 11},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)