Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for newRule (0.12 sec)

  1. src/cmd/fix/main.go

    	newSrc, err := gofmtFile(file)
    	if err != nil {
    		return err
    	}
    	if !bytes.Equal(newSrc, src) {
    		newFile, err := parser.ParseFile(fset, filename, newSrc, parserMode)
    		if err != nil {
    			return err
    		}
    		file = newFile
    		fmt.Fprintf(&fixlog, " fmt")
    	}
    
    	// Apply all fixes to file.
    	newFile := file
    	fixed := false
    	for _, fix := range fixes {
    		if allowed != nil && !allowed[fix.name] {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. src/os/file_unix.go

    	}
    
    	return uintptr(f.pfd.Sysfd)
    }
    
    // NewFile returns a new File with the given file descriptor and
    // name. The returned value will be nil if fd is not a valid file
    // descriptor. On Unix systems, if the file descriptor is in
    // non-blocking mode, NewFile will attempt to return a pollable File
    // (one for which the SetDeadline methods work).
    //
    // After passing it to NewFile, fd may become invalid under the same
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 13:52:34 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. src/debug/buildinfo/buildinfo.go

    	}
    
    	var x exe
    	switch {
    	case bytes.HasPrefix(ident, []byte("\x7FELF")):
    		f, err := elf.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    		x = &elfExe{f}
    	case bytes.HasPrefix(ident, []byte("MZ")):
    		f, err := pe.NewFile(r)
    		if err != nil {
    			return "", "", errUnrecognizedFormat
    		}
    		x = &peExe{f}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. src/runtime/debug/stack.go

    			return err
    		}
    		runtime.KeepAlive(f) // prevent finalization before dup
    		fd = uintptr(fd2)
    	}
    	if prev := runtime_setCrashFD(fd); prev != ^uintptr(0) {
    		// We use NewFile+Close because it is portable
    		// unlike syscall.Close, whose parameter type varies.
    		os.NewFile(prev, "").Close() // ignore error
    	}
    	return nil
    }
    
    //go:linkname runtime_setCrashFD runtime.setCrashFD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 15:19:04 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. testing/soak/src/integTest/kotlin/org/gradle/kotlin/dsl/caching/AbstractScriptCachingIntegrationTest.kt

            gradleExecuterFor(
                arrayOf(
                    "--debug", // Required to verify script compilation via log messages
                    "-Dorg.gradle.internal.operations.trace=${newFile("operation-trace")}",
                    *arguments
                )
            )
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 11:33:23 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  6. internal/logger/logrotate.go

    				Level:   ErrorKind,
    				Message: msg,
    				Time:    time.Now().UTC(),
    				Trace:   &log.Trace{Message: msg},
    			})
    		}
    	}
    
    	path := filepath.Join(w.opts.Directory, w.opts.FileNameFunc())
    	f, err := newFile(path)
    	if err != nil {
    		return fmt.Errorf("unable to create new file at %v: %w", path, err)
    	}
    
    	w.f = f
    
    	return nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. src/cmd/link/internal/ld/elf_test.go

    		t.Fatalf("%v: %v:\n%s", cmd.Args, err, out)
    	}
    
    	fi, err := os.Open(binFile)
    	if err != nil {
    		t.Fatalf("failed to open built file: %v", err)
    	}
    	defer fi.Close()
    
    	elfFile, err := elf.NewFile(fi)
    	if err != nil {
    		t.Skip("The system may not support ELF, skipped.")
    	}
    
    	section := elfFile.Section(".dynsym")
    	if section == nil {
    		t.Fatal("no dynsym")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 10 13:44:07 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. src/os/os_test.go

    	assertPathError(t, path, err)
    }
    
    // Use TempDir (via newFile) to make sure we're on a local file system,
    // so that timings are not distorted by latency and caching.
    // On NFS, timings can be off due to caching of meta-data on
    // NFS servers (Issue 848).
    func TestChtimes(t *testing.T) {
    	t.Parallel()
    
    	f := newFile("TestChtimes", t)
    	defer Remove(f.Name())
    
    	f.Write([]byte("hello, world\n"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  9. src/os/removeall_at.go

    			continue
    		}
    
    		return nil, e
    	}
    
    	if !supportsCloseOnExec {
    		syscall.CloseOnExec(r)
    	}
    
    	// We use kindNoPoll because we know that this is a directory.
    	return newFile(r, name, kindNoPoll, false), nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:09:26 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/call.go

    			reverse = true
    		}
    
    		// Rename type parameters to avoid problems with recursive instantiations.
    		// Note that NewTuple(params...) below is (*Tuple)(nil) if len(params) == 0, as desired.
    		tparams, params2 := check.renameTParams(pos, sig.TypeParams().list(), NewTuple(params...))
    
    		err := check.newError(CannotInferTypeArgs)
    		targs = check.infer(pos, tparams, targs, params2.(*Tuple), args, reverse, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31.5K bytes
    - Viewed (0)
Back to top