- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 708 for positioned (0.24 sec)
-
src/go/internal/gcimporter/support.go
func (s *fakeFileSet) pos(file string, line, column int) token.Pos { // TODO(mdempsky): Make use of column. // Since we don't know the set of needed file positions, we reserve // maxlines positions per file. We delay calling token.File.SetLines until // all positions have been calculated (by way of fakeFileSet.setLines), so // that we can avoid setting unnecessary lines. See also golang/go#46586. f := s.files[file] if f == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 07 20:08:23 UTC 2024 - 4.1K bytes - Viewed (0) -
src/cmd/cgo/internal/testerrors/argposition_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 19 01:37:31 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/gofmt/rewrite.go
if isWildcard(name) { if old, ok := m[name]; ok { return subst(nil, old, reflect.Value{}) } } } if pos.IsValid() && pattern.Type() == positionType { // use new position only if old position was valid in the first place if old := pattern.Interface().(token.Pos); !old.IsValid() { return pattern } return pos } // Otherwise copy. switch p := pattern; p.Kind() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 27 22:07:13 UTC 2023 - 8.1K bytes - Viewed (0) -
src/go/types/example_test.go
for id, obj := range info.Uses { posn := fset.Position(id.Pos()) lineCol := fmt.Sprintf("%d:%d", posn.Line, posn.Column) usesByObj[obj] = append(usesByObj[obj], lineCol) } var items []string for obj, uses := range usesByObj { slices.Sort(uses) item := fmt.Sprintf("%s:\n defined at %s\n used at %s", types.ObjectString(obj, types.RelativeTo(pkg)), fset.Position(obj.Pos()), strings.Join(uses, ", "))
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/internal/fuzz/mutators_byteslice.go
// some extra working space b = b[:end+(n*2)] // Copy the block of bytes we want to duplicate to the end of the // slice copy(b[end+n:], b[src:src+n]) // Shift the bytes after the splice point n positions to the right // to make room for the new block copy(b[dst+n:end+n], b[dst:end]) // Insert the duplicate block into the splice point copy(b[dst:], b[end+n:]) b = b[:end+n] return b }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 19 18:23:43 UTC 2021 - 7.7K bytes - Viewed (0) -
src/runtime/pprof/proto_other.go
b.addMappingEntry(0, 0, 0, "", "", true) // TODO(hyangah): make addMapping return *memMap or // take a memMap struct, and get rid of addMappingEntry // that takes a bunch of positional arguments. } } func readMainModuleMapping() (start, end uint64, exe, buildID string, err error) { return 0, 0, "", "", errors.New("not implemented")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 03 16:07:59 UTC 2023 - 928 bytes - Viewed (0) -
guava/src/com/google/common/base/Ascii.java
* printing space backward on the same printing line. (Applicable also to display devices.) * * @since 8.0 */ public static final byte BS = 8; /** * Horizontal Tabulation ('\t'): A format effector which controls the movement of the printing * position to the next in a series of predetermined positions along the printing line.
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Jul 19 15:43:07 UTC 2021 - 21.6K bytes - Viewed (0) -
src/go/printer/printer_test.go
i2 := <-i2range if i2.Name != i1.Name { t.Errorf("got ident %s; want %s", i2.Name, i1.Name) } // here we care about the relative (line-directive adjusted) positions l1 := fset.Position(i1.Pos()).Line l2 := fset.Position(i2.Pos()).Line if l2 != l1 { t.Errorf("got line %d; want %d for %s", l2, l1, i1.Name) } } if t.Failed() { t.Logf("\n%s", buf.Bytes()) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jun 03 14:56:25 UTC 2024 - 20.4K bytes - Viewed (0) -
src/fmt/errors_test.go
}, { err: fmt.Errorf("%s %w %v", "prefix", wrapped, "suffix"), wantText: "prefix inner error suffix", wantUnwrap: wrapped, }, { err: fmt.Errorf("%[2]s: %[1]w", wrapped, "positional verb"), wantText: "positional verb: inner error", wantUnwrap: wrapped, }, { err: fmt.Errorf("%v", wrapped), wantText: "inner error", }, { err: fmt.Errorf("added context: %v", wrapped),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 29 18:40:40 UTC 2022 - 3.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java
*/ protected AbstractIndexedListIterator(int size, int position) { checkPositionIndex(position, size); this.size = size; this.position = position; } @Override public final boolean hasNext() { return position < size; } @Override @ParametricNullness public final E next() { if (!hasNext()) { throw new NoSuchElementException();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Jul 09 17:31:04 UTC 2021 - 3.2K bytes - Viewed (0)